-
Make sure you're running at least Node version 18. You can run
node -v
to check your current Node version. -
Install Docker Desktop for your platform.
-
Clone the repo or download the ZIP
git clone [github https url]
- Install packages
npm i
- Set up your
.env
file
- Copy
.env.example
into.env
- Your
.env
file should look like this:
OPENAI_API_KEY=
COLLECTION_NAME=
- Visit Openai to retrieve API keys and insert into your
.env
file. - Choose a collection name where you'd like to store your embeddings in Chroma. This collection will later be used for queries and retrieval.
- In a new terminal window, run Chroma in the Docker container:
docker run -p 8000:8000 ghcr.io/chroma-core/chroma:0.3.22
-
Inside
docs
folder is the document we want to 'ingest`. -
Run the script
npm run ingest
to 'ingest' and embed your doc. -
Run the app
npm run dev
to launch the local dev environment, and then type a question in the chat interface.
- What did the president say about Justice Breyer?
- Was that nice?