Skip to content

exhaler/flowgpt

Repository files navigation

Getting Started

  1. Make sure you're running at least Node version 18. You can run node -v to check your current Node version.

  2. Install Docker Desktop for your platform.

  3. Clone the repo or download the ZIP

git clone [github https url]
  1. Install packages
npm i
  1. 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.
  1. In a new terminal window, run Chroma in the Docker container:
docker run -p 8000:8000 ghcr.io/chroma-core/chroma:0.3.22
  1. Inside docs folder is the document we want to 'ingest`.

  2. Run the script npm run ingest to 'ingest' and embed your doc.

  3. Run the app npm run dev to launch the local dev environment, and then type a question in the chat interface.

Sample Questions

  • What did the president say about Justice Breyer?
  • Was that nice?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published