If your data aren't too large, you can use faiss-cpu and pickle https://pypi.org/project/faiss-cpu/
For the uneducated, how large is too large? Curious.
Ask HN: How are you doing RAG locally?
21–30 of 166 posts
Re: Ask HN: How are you doing RAG locally?
#22Re: Ask HN: How are you doing RAG locally?
#23I built a lib for myself https://pypi.org/project/piragi/
Re: Ask HN: How are you doing RAG locally?
#24Don't use a vector database for code, embeddings are slow and bad for code. Code likes bm25+trigram, that gets better results while keeping search responses snappy.
For all intents and purposes, running gpt-oss 20B in a while loop with access to ripgrep works pretty dang well. gpt-oss is a tool calling god compared to everything else i've tried, and fast.
Re: Ask HN: How are you doing RAG locally?
#25Re: Ask HN: How are you doing RAG locally?
#26Don't use a vector database for code, embeddings are slow and bad for code. Code likes bm25+trigram, that gets better results while keeping search responses snappy.
Re: Ask HN: How are you doing RAG locally?
#27Re: Ask HN: How are you doing RAG locally?
#28For local deployments, Qdrant supports storing embeddings in memory as well as in a local directory (similar to sqlite) - for larger deployments Qdrant supports running as a standalone service/sidecar and can be made available over the network.
Re: Ask HN: How are you doing RAG locally?
#29Works well, but I didn't tested on larger scale
Re: Ask HN: How are you doing RAG locally?
#30Don't use a vector database for code, embeddings are slow and bad for code. Code likes bm25+trigram, that gets better results while keeping search responses snappy.