alesanchezr/simple-rag

★ 0Forks 1PythonGitHub ↗Compare

README

Simple RAG

Minimal RAG API with FastAPI, Ollama, and Qdrant.

Requirements

Setup

1. Ollama models

ollama pull nomic-embed-text
ollama pull llama3

2. Qdrant

docker compose up -d

3. Python dependencies

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

4. Start the API

uvicorn api:app --reload

API runs at http://localhost:8000 (docs at http://localhost:8000/docs).

Try it

curl -X POST http://localhost:8000/ask \
  -H "Content-Type: application/json" \
  -d '{"query": "What is Rigobot?"}'

Contributors

alesanchezr

Issues