Live data from Hacker News

Ask HN: How are you doing RAG locally?

news.ycombinator.com

91–100 of 166 posts

Re: Ask HN: How are you doing RAG locally?

#91
post #51
post #40

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.

LSP is not great for non-editor use cases. Everything is cursor position oriented.

Yes, something like TreeSitter would seem to be of more value - able to lookup symbols by name, and find the spans of source code where they are defined and used.

Re: Ask HN: How are you doing RAG locally?

#92
Kiln wraps up all the parts in on app. Just drag and drop in files. You can easily compare different configs on your dataset: extraction methods, embedding model, search method (BM25, hybrid, vector), etc.

It uses LanceDB and has dozens of different extraction/embedding models to choose from. It even has evals for checking retrieval accuracy, including automatically generating the eval dataset.

You can use its UI, or call the RAG via MCP.

https://github.com/kiln-ai/kiln

https://docs.kiln.tech/docs/documents-and-search-rag

Re: Ask HN: How are you doing RAG locally?

#93
Built discovery using - Qwen-3-VL-8B for Document Ocr + Prompts + Tool Call - ChromaDB for Vector storage. - BM25 + Embedding model for Hybrid RAG. - Backend- FastAPI + Python - Frontend- React + Typescript - vllm + docker for model deployment on L40 GPU

Demo: https://app.dwani.ai

GitHub: https://github.com/dwani-ai/discovery

Now working on added Agentic features, by continuous analysis of Document with Generated prompts.

Re: Ask HN: How are you doing RAG locally?

#94
post #86

I made, and use this: https://github.com/libragen/libragen It’s a CLI tool and MCP server for creating discrete, versioned “libraries” of RAG-able content. Under the hood, it uses an embedding model locally. It chunks your content and stores embeddings in SQLite. The search functionality uses vector + keyword search + a re-ranking model. You can also point it at any GitHub repo and it will create a RAG DB out of it.…

Your README references a file named LICENSE which doesn't seem to exist on the main branch.

Re: Ask HN: How are you doing RAG locally?

#96
post #26

Don'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.

I've gotten great results applying it to file paths + signatures. Even better if you also fuse those results with BM25.

I like embeddings for natural language documents where your query terms are unlikely to be unique, and overall document direction is a good disambiguator.

Re: Ask HN: How are you doing RAG locally?

#97
We started with PGVector just because we already knew Postgres and it was easy to hand over to the operations people.

After some time we noticed a semi-structured field in the prompt had a 100% match with the content needed to process the prompt.

Turns out operators started puting tags both in the input and the documents that needed to match on every use case (not much, about 50 docs).

Now we look for the field first and put the corresponding file in the prompt, then we look for matches in the database using the embedding.

85% of the time we don't need the vectordb.

Re: Ask HN: How are you doing RAG locally?

#98
I built https://github.com/juanre/llmemory and I use it both locally and as part of company apps. Quite happy with the performance.

It uses PostgreSQL with pgvector, hybrid BM25, multi-query expansion, and reranking.

(It's the first time I share it publicly, so I am sure there'll be quirks.)

Re: Ask HN: How are you doing RAG locally?

#100
post #63

Anyone use these approaches with academic pdfs?

Anyone using them for electronics datasheets?

I would like to. I haven't yet found a solution that works well.

The problems with datasheets is tables which span multiple pages, embedded images for diagrams and plots, they're generally PDFs, and only sometimes are they 2-column layout.

Converting from PDF to markdown while retaining tables correctly seems to work well for me with Mistral's latest OCR model, but this isn't an open model. Using docling with different models has produced much worse results.

Post reply on HN