RAG

  • ai
  • in current work

Retrieval-augmented generation is the idea behind most useful LLM products: instead of hoping the model knows the answer, you find the relevant pieces of your own data first and hand them to the model along with the question.

I've built it in three shapes: with Pinecone in the Companies Summary Generator, with embeddings of 30,000+ wines kept in their own table next to the catalogue in the AI Wine Sommelier, and with the team at Ark Networks in the Meeting Intelligence Platform, where pgvector and full-text search run side by side in PostgreSQL and I moved the embeddings to bge-m3.

The model is rarely the hard part. Chunking, embeddings, filters and ranking decide whether retrieval brings back the right passage or just one that sounds related.