← Back

LangChain RAG

AI Patterns LangChain Chroma
📚

Problem

AI can't answer questions about your company's documents, policies, or internal knowledge. Most RAG tutorials are oversimplified—they work in demos but fail with real documents or at scale.

Solution

A production-ready pipeline that lets you ask questions about your own documents.

  • Ingest a folder of documents (PDF, TXT, MD)
  • Automatically chunk and index
  • Ask natural language questions
  • Get answers with source citations

Demo

Point it at your policy documents. Ask "What is the refund policy for enterprise customers?" Get an accurate answer with a citation showing exactly where it came from.

Ingest documents
Get answers

Run it

git clone https://github.com/freshveejay/langchain-rag-example
cd langchain-rag-example
pip install -r requirements.txt
export OPENAI_API_KEY=sk-...
python main.py