Skip to content

brendon-codes/ai-rag-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple AI RAG example in Rust

Resources

Stars

Watchers

Forks

Contributors

Languages