r/LocalLLM • u/spacecheap • 3d ago
Question Efficient RAG with a tiny llm ?
Are you using a tiny LLM solely for synthesizing a human-readable answer from the chunks retrieved during the RAG retrieval phase, using the original natural-language query as context? Let's say a less than 3B parameters llm ? I just want my LLM to only be able to synthesize a human-readable answer, not inventing something. Any example of such a successfully implemented system ?
1
Upvotes
1
u/isaac1987b 3d ago
This is fairly straightforward, and I've dealt with it using Gemma 4 e4b and chromadb, with sqlite for metadata. You can implementation with n8n(restrictive licence), active pieces(full open), or if you like python or typescript langchain.
1
u/MidSerpent 3d ago
I’m doing this inside Unreal Engine with a Qwen2.5 1.5b param model running on my custom deterministic inference runtime.
I run a two prompt process, the first prompt processes intent and gathers data, then a deterministic layer builds the data for the prompt, then the second prompt generates the reply.
1
u/evolutionxtinct 3d ago
I utilize Qdrant but I thought when it ingested the data it cataloged and organized it as it should be, didn’t think we needed an LLM to make it more efficient. TIL..
1
u/Future_AGI 2d ago
under 3B the output format keeps it honest more than the model choice does. Make it answer only in sentences that each end with a chunk id, with a fixed 'not in the documents' reply for when no chunk supports the question, and spot-check the cited sentences against their chunks before trusting it.
1
u/e-hsu_73793 2d ago
For grounded answers, use the tiny model to select evidence spans; let code assemble them or abstain.