Retrieval-Augmented Generation (RAG)
- Python >= 3.13
- An OpenAI API key set as
OPENAI_API_KEY(put it in a.envfile at the project root)
Recommended (Poetry):
-
Install dependencies:
poetry install
-
Run the API:
./run.sh
Alternatively (pip):
-
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate
-
Install the package in editable mode and run:
pip install -e . python -m src.main
- The API server defaults to host
0.0.0.0and port8000(seesrc/config.py). test_queries.shposts tohttp://localhost:8001by default — either update theAPI_URLin that script or run the service on port8001before using it.test_queries.shexpectsjqandcurlto be available.
MIT