Ask HN: Local RAG with private knowledge base
1–10 of 41 posts
Re: Ask HN: Local RAG with private knowledge base
#2Not surprising!
The LLM itself is the least important bit as long as it’s serviceable.
Depending on your goal you need to have a specific RAG strategy.
How are you breaking up the documents? Are the documents consistently formatted to make breaking them up uniform? Do you need to do some preprocessing to make them uniform?
When you retrieve documents how many do you stuff into your prompt as context?
Do you stuff the same top N chunks from a single prompt or do you have a tailored prompt chain retrieving different resourced based on the prompt and desired output?
Re: Ask HN: Local RAG with private knowledge base
#3Re: Ask HN: Local RAG with private knowledge base
#4Re: Ask HN: Local RAG with private knowledge base
#5Re: Ask HN: Local RAG with private knowledge base
#6Langchain, llamaindex have good resources on building such a pipeline the last I checked
Re: Ask HN: Local RAG with private knowledge base
#7Re: Ask HN: Local RAG with private knowledge base
#8https://github.com/Azure-Samples/rag-postgres-openai-python
I’d like to make that version when I have the time, probably just using Llamaindex for the ingestion.
My tips for getting SLMs working well for RAG: http://blog.pamelafox.org/2024/08/making-ollama-compatible-r...
Re: Ask HN: Local RAG with private knowledge base
#9Check out Khoj. https://github.com/khoj-ai/khoj
You can make it as 'fancy' as you want, and use speech-to-text, image generation, web scraping, custom agents.
Let me know if you run into any issues? I'd love to get this setup for senior citizens! You can reach me at saba at khoj.dev.
Re: Ask HN: Local RAG with private knowledge base
#10Here is that that thread. https://news.ycombinator.com/item?id=41981907