Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 644 Bytes

File metadata and controls

50 lines (34 loc) · 644 Bytes

SIMPLE AI RAG EXAMPLE

SETUP

uv sync
cp .env.example .env

DEVELOPMENT

Create pinecone index

uv run -m rag.bin.make_db

Create embeddings

uv run -m rag.bin.make_embeddings

Upload to Pinecone

uv run -m rag.bin.upload_embeddings

Query Pinecone For Similarity Matches

echo "tested on animals?" | uv run -m rag.bin.find_similar

Code quality checks

uv run ruff check
uv run basedpyright

END USER USAGE

Get Full Agent Response to Question

echo "tested on animals?" | uv run -m rag.bin.ask
echo "main ingredient? tell me in spanish" | uv run -m rag.bin.ask