News for hackers. Stuff that matters.
Re:So you wanna build a local RAG? by scosman on Saturday November 29, 2025 @11:55AM (#46088951)
Alternative advice: just test and see what works best for your use case. Totally agreed embeddings are often overkill. However, sometimes they really help. The flow is something like:

- Iterate over your docs to build eval data: hundreds of pairs of [synthetic query, correct answer]. Focus on content from the docs not general LLM knowledge.

- Kick off a few parallel evaluations of different RAG configurations to see what works best for your use case: BM25, Vector, Hybrid. You can do a second pass to tune parameters: embedding model, top k, re-ranking, etc.

I build a free system that does all this (synthetic data from docs, evals, test various RAG configs without coding each version). https://docs.kiln.tech/docs/evaluations/evaluate-rag-accurac...

Re:So you wanna build a local RAG? by simonw on Saturday November 29, 2025 @12:52PM (#46089377)
That's excellent advice, the only downside being that collecting that eval data remains difficult and time-consuming.

But if you want to build truly great search that's the approach to take.

Re:So you wanna build a local RAG? by scosman on Saturday November 29, 2025 @07:58PM (#46092438)
Agree totally. I’m spending half my time focused that problem (mostly synthetic data gen with guidance), and the other half on how to optimize once it works.
Re:So you wanna build a local RAG? by sbene970 on Saturday November 29, 2025 @01:53PM (#46089815)
At this point you could also optimize your agentic flow directly in DSPy using a colbert model / Ratatouille for retrieval.
Re:So you wanna build a local RAG? by scosman on Saturday November 29, 2025 @08:00PM (#46092460)
Not there yet. The biggest vectors for optimizing aren’t in the agents yet (RAG method, embedding model, etc)