CrateDB
CrateDB is a distributed and scalable SQL database for storing and analyzing massive amounts of data in near real-time, even with complex queries. It is PostgreSQL-compatible, based on Lucene, and inheriting from Elasticsearch.
Installation and Setupโ
Setup CrateDBโ
There are two ways to get started with CrateDB quickly. Alternatively, choose other CrateDB installation options.
Start CrateDB on your local machineโ
Example: Run a single-node CrateDB instance with security disabled, using Docker or Podman. This is not recommended for production use.
docker run --name=cratedb --rm \
--publish=4200:4200 --publish=5432:5432 --env=CRATE_HEAP_SIZE=2g \
crate:latest -Cdiscovery.type=single-node
Deploy cluster on CrateDB Cloudโ
CrateDB Cloud is a managed CrateDB service. Sign up for a free trial.
Install Clientโ
Install the most recent version of the langchain-cratedb
package
and a few others that are needed for this tutorial.
pip install --upgrade langchain-cratedb langchain-openai unstructured
Documentationโ
For a more detailed walkthrough of the CrateDB wrapper, see using LangChain with CrateDB. See also all features of CrateDB to learn about other functionality provided by CrateDB.