A production-grade Retrieval-Augmented Generation pipeline that handles document ingestion, intelligent chunking, embedding via OpenAI, and vector search via Pinecone.
Architecture
- Document Ingestion: PDF, Markdown, and plain text support
- Chunking Strategy: Recursive character splitting with overlap
- Embedding: OpenAI
text-embedding-3-small - Vector Store: Pinecone serverless with metadata filtering
- Retrieval: Hybrid search combining dense and sparse vectors
- Generation: Claude 3.5 Sonnet with retrieved context
Results
- 92% retrieval accuracy on benchmark dataset
- <200ms average query latency
- 10K+ documents indexed and searchable
Tags: RAG, LLM, Pipeline, Python