I am surprised to see very few setups leveraging LSP support. (Language Server Protocol) It has been added to Claude Code last month. Most setups rely on naive grep.
Ask HN: How are you doing RAG locally?
51–60 of 166 posts
Re: Ask HN: How are you doing RAG locally?
#52Re: Ask HN: How are you doing RAG locally?
#53Re: Ask HN: How are you doing RAG locally?
#54For retrieval I load all the vectors from the SQlite database into a numpy.array and hand it to FAISS. Faiss-gpu was impressively fast on the RTX6000 and faiss-cpu is slower on the M1 Ultra but still fast enough for my purposes (I'm firing a few queries per day, not per minute). For 5 million chunks memory usage is around 40 GB which both fit into the A6000 and easily fits into the 128GB of the M1 Ultra. It works, I'm happy.
Re: Ask HN: How are you doing RAG locally?
#55[flagged]
A new account, named after the thinking you're linking just looks like spam. Also I've got no idea what this product does, this is just a generic page of topical ai buzzwords Don't tell me what it is, /show me why/ you built it. Then go back and keep that reasoning in, show me why I should care
Re: Ask HN: How are you doing RAG locally?
#56Re: Ask HN: How are you doing RAG locally?
#57Anyone use these approaches with academic pdfs?
Re: Ask HN: How are you doing RAG locally?
#58https://aws.amazon.com/blogs/machine-learning/use-language-e...
The code for it is here: https://github.com/aws-samples/rss-aggregator-using-cohere-e...
The example link no longer works, as I no longer work at AWS.
Re: Ask HN: How are you doing RAG locally?
#59The real lightbulb moment is when you realise the ONLY thing a RAG passes to the LLM is a short string of search results with small chunks of text. This changes it from 'magic' to 'ahh, ok - I need better search results'. With small models you cannot pass a lot of search results ( TOP_K=5 is probably the limit ), otherwise the small models 'forget context'.
It is fun trying to get decent results - and it is a rabbithole, next step I am going into is pre-summarising files and folders.
I open sourced the code I was using - https://github.com/acutesoftware/lifepim-ai-core