# RAG from First Principles, Part 6: Build Your First RAG # Loose upper bounds guard against a future major release breaking these snippets. # For anything real, pin exact versions (e.g. `pip freeze > requirements.lock`). # Core: local embeddings + the math sentence-transformers>=2.2,<4 numpy>=1.24 # Hosted LLM example (skip if you use the local Ollama version of generate()) openai>=1.0,<2 # Optional: the "real vector database" upgrade section chromadb>=0.4,<0.7 # Optional: only for the local Ollama generation path requests>=2.28