Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 890 Bytes

DEVELOPMENT.md

File metadata and controls

49 lines (32 loc) · 890 Bytes

Development Documentation

Setup

  1. Install uv:

    curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Install all development dependencies to a new virtual environment:

    uv sync --group lint
  3. Set up your environment variables:

    cp .env.example .env

    Then edit .env and add e.g. your OpenAI API key.

Usage

Create the vector database and fill it with the text embeddings for search:

uv run rag-doctor create-database

Now you can query the documentation from the command line:

uv run rag-doctor query --database_dir="./qdrant_data" --question="what is a dataset?"

Or start an interactive chat session:

uv run rag-doctor chat  --database_dir="./qdrant_data"

If you want to enable debugging logging, set the DEBUG environment variable:

DEBUG=1 uv run ...