DRAG, a Document Search API
A lightweight, cost-effective Retrieval-Augmented Generation (RAG) API built for efficient document search and context-aware LLM responses.
- Framework: FastAPI
- Orchestration: LlamaIndex
- Database: PostgreSQL with
pgvectorextension - Dependency Management:
uv - Hosting: Render
-
Clone the repository:
git clone https://github.com/your-username/your-repo.git cd your-repo -
Install dependencies using
uv:uv sync
-
Configure environment variables: Create a
.envfile in the root directory and add your credentials:OPEN_API_KEY=your_open_api_key_here DATABASE_URL=postgresql://user:password@localhost:5432/dbname MODEL=model_name
-
Add custom documents to
data/raw_docsdirectory (optional) -
Run the development server:
uv run
