r/Rag • • Sep 02 '25

Showcase 🚀 Weekly /RAG Launch Showcase

34 Upvotes

Share anything you launched this week related to RAG—projects, repos, demos, blog posts, or products 👇

Big or small, all launches are welcome.


r/Rag • • 6h ago

Showcase I built a free interactive path for learning RAG, from chunking to evals. Feedback welcome.

9 Upvotes

I wanted a way to learn RAG that wasnt a long doc or a 40 minute video, so I built LearnGenAI.

Its 48 short lessons. You build a handbook search bot for a fictional company, Tamarind Labs, across 5 units:

  1. Basic pipeline: chunk, embed, vector search, grounded answer
  2. Hybrid retrieval: BM25, RRF, and a metadata filter
  3. Rerank, a relevance gate, and citations
  4. Query rewrite and multi-query
  5. Evals: context precision, recall, and retrieval failure vs abstain

The exercises run on real retrieval code, so if you change top-K, the scores actually change. Most lessons are 2 to 4 cards, one idea each, with instant feedback. There is also spaced review of interview-style questions at 1, 3, 7, 14 and 30 days.

Its free, no account needed: https://www.learngenai.space/

Im the person who built it. If you try it, Id like to know which unit felt thin or confusing, and what youd want taught after RAG.


r/Rag • • 9h ago

Showcase Parse PDFs with Nemotron 3.5 Parse, PP-OCRv6 at 16K output tokens/s

9 Upvotes

We've been building a vision-first inference runtime and wanted to share some early numbers from the first two OCR models we've optimized.

~PP-OCRv6-mediumNemotron 3.5 Parse
OutputText + line/word bboxesStructured markdown
Test doc99 pages / 3.9s96 pages / 5.8s
Throughput~25 pages/s~16 pages/s (~17K out tok/s)
Speed-up~15x (vs. PyTorch eager)~1.8x (vs. vLLM)
Cost~$0.2 / 1K pages~$0.3 / 1K pages

Key results:

  • Hardware: 1x NVIDIA RTX PRO 6000; timing is end-to-end incl. rasterization.
  • PP-OCRv6 (medium) speedup vs the PyTorch eager implementation is 15x with bit-identical outputs.
  • Nemotron 3.5 Parse speedup is already ~1.8x over the vLLM engine (without speculative decoding). With speculative decoding, early benchmark numbers are looking like ~25K out tok/s.

Side-by-side comparisons:

Try it on your own PDFs: https://chat.vlm.run/ocr

Feedback: Would love to get feedback if there are any models you'd like to access with such speedups / price points. We've seen customers use it for RAG, line and word-level citations, JSON extraction, and more.


r/Rag • • 33m ago

Discussion Domain RAG from web data: buy a dataset or crawl the sources yourself?

1 Upvotes

For RAG in a specific domain (products, job listings, real estate, regulations), there seem to be three routes: buy an existing dataset, crawl the sources yourself, or pay someone to crawl them.

For anyone who has built one:

- how fresh were off-the-shelf datasets in practice?

- how much work was keeping your own crawl running after launch?

- how did you handle licensing and personal data?


r/Rag • • 2h ago

Discussion Would you change an image-search model before checking whether query wording was the problem?

1 Upvotes

I would split a local image-search evaluation by query type before choosing an embedding model from one overall score.

The comparison between Hyper3-CLIP V1 and CLIP has a useful asymmetry: descriptive text-to-image retrieval and broad category search do not tell the same story. Some weak category results improved substantially when uncommon taxonomy words were replaced with ordinary language. That points to vocabulary coverage as well as geometry.

Vector databases like Milvus can reproduce the hyperbolic ranking through an inner-product representation, but reproducing a model's ordering does not establish that the ordering is useful for a particular corpus.

My current view is to separate caption queries, broad labels, and image-to-text queries, then inspect misses within each group. The compared checkpoints also have different training histories, so the results do not isolate geometry as the only variable.

For a local multimodal RAG setup, what evaluation would make you switch models rather than add a small query-rewording step?


r/Rag • • 2h ago

Discussion Our finance agent and sales agent answer "bookings" differently, on purpose. Bug or feature?

1 Upvotes

Finance counts bookings at signature, sales at closed-won. Both are right for their own team, and now people compare the two agents' answers in Slack. From euno's site, their approach is context per persona, so each agent gets its own team's definition. The comparing in Slack is what I can't fix.


r/Rag • • 3h ago

Tools & Resources In my last post, I asked about the "difference between cosine, euclidean, and HNSW", and nobody responded clearly except

0 Upvotes

In my last post, I asked about the "difference between cosine, euclidean, and HNSW", and nobody responded clearly except the-solo-dev-ii. I was expecting more responses. However, this is what he said "these get lumped together a lot, but they're two different kinds of thing. cosine and euclidean are ways to measure how close two vectors are. cosine similarity looks at the angle between two vectors and ignores their length. pointing the same way = similar. most text embedding setups use this. euclidean distance is the straight line distance between the two points. length matters here.

But I have come across a video which discusses about Built brute-force top-k search in NumPy, Raced brute force against Qdrant's HNSW index, normalised vectors, cosine and Euclidean give the same ranking, at 1,000 vectors, an index makes no real difference (~1 ms either way, at 10,000, HNSW wins on speed but is approximate. A few thousand vectors? Brute force is fine.
Millions? You need HNSW, and you need to measure recall.

I found it useful. Here's https://youtu.be/5bYdbOjMjRI


r/Rag • • 4h ago

Showcase I was dreading rewriting all our embedding calls to move off the OpenAI API, and it turned out I didn't have to change the client at all

0 Upvotes

I had been putting off moving our embeddings off the hosted API because I assumed it meant rewriting every call. It did not, because the open engines speak the same API shape.

I started a local SIE server:

bash

pip install ""sie-server[local]"" && sie-server serve # now on :8080

Then I pointed the normal OpenAI client straight at it and changed exactly two things, the base URL and the model:

python

from openai import OpenAI

client = OpenAI(base_url=""http://localhost:8080/v1"", api_key=""not-needed"")

client.embeddings.create(model=""intfloat/e5-base-v2"", input=""this never leaves my box"")

Everything else in our code stayed exactly as it was. The one catch is that I now own the GPU, and whatever breaks on it is mine too.


r/Rag • • 6h ago

Discussion what project should i actually build to get hired as a junior AI engineer?

1 Upvotes

hi everyone, need some real advice from senior devs here..

i tried asking chatgpt, gemini and all these ai tools but all are giving same answers.. make a chatbot, make a image classifier, make a recommendation system..

i want to know what a human brain suggests to create that you think is actually helpful.. not just another tutorial project, something real that i can show in interview and talk about properly.

if you were in my place right now, what would you build?

thanks..


r/Rag • • 1d ago

Showcase I built an open-source RAG knowledge base: 1,619 interview questions, 52 RAG types, system design scenarios, and production architecture patterns

25 Upvotes

I've been building an open-source resource for developers and engineers working with Retrieval-Augmented Generation (RAG).

The goal is to create a comprehensive collection covering both RAG interview preparation and real-world engineering challenges.

What's included:

  • 📚 1,619 RAG interview questions and answers
  • 🧠 52 different RAG types and architectures
  • 🏗️ System design scenarios and architecture patterns
  • ⚙️ Production-ready RAG concepts and implementation considerations
  • 🔍 Core concepts, advanced techniques, and practical engineering topics

Whether you're preparing for an AI/LLM engineering interview, learning different RAG architectures, or designing production RAG systems, this repository aims to provide a structured reference.

GitHub: https://github.com/ather-techie/rag-interview-system

It's open source, and I'd love to get feedback from the RAG community.

Contributions and constructive feedback are welcome!


r/Rag • • 16h ago

Discussion Unity Gateway for access control on Databricks

0 Upvotes

Are u using Unity Gateway (Databricks) to manage access control and Pii masking across multiple RAG pipeline without adding noticeable latencies?

I am exploring uG on databricks and woukd love u hear ur experiences if u have done something like this.


r/Rag • • 22h ago

Showcase GraphRAG on the Valkey you already run: graph, vector and full-text indexes in one server

3 Upvotes

A common GraphRAG stack has three stores: a vector database for chunks, a graph database for entities and relationships, and a cache or session store. Keeping the first two in sync is the part that hurts, and every retrieval crosses the network between them.

Today we released a FalkorDB module for Valkey that puts the graph side inside the Valkey server:

* Property graph queried with OpenCypher

* Vector and full-text indexes on the same graph data, for hybrid retrieval

* Many isolated graphs per instance, so one graph per tenant or per corpus

* Persistence and replication through Valkey

* Valkey 9.2 or later, AGPL-3.0

The module is the storage and query layer. To build the graph from your documents, we have a separate GraphRAG SDK.

Sources: setup at https://www.falkordb.com/valkey/


r/Rag • • 18h ago

Discussion how do you do per-user document access in rag? (bank use case)

1 Upvotes

i work on BaseLLM, a self-hosted llm gateway for banks in turkey, so some context first.

our document search is per project right now. docs get masked when uploaded, stored in the customer's own qdrant or pgvector, and everyone in that project sees the same docs. banks are ok with this for now if each project is one group and the data owner signs the member list.

but the real ask is per person. someone suggested: pass the user identity with every query, store the access list from the source system next to each chunk, filter results by that. and sync permissions often, or people who left still see docs for weeks.

for people who did this:

- where do you keep the acl, in the vector db metadata or a separate lookup?

- how do you sync it, events or a schedule?

- does filtering hurt your results when a user can only see a few docs?


r/Rag • • 21h ago

Discussion How are companies actually building RAG systems in production? What's your tech stack?

1 Upvotes

I'm learning to build production-grade RAG applications and want to understand how companies are implementing them in real-world projects rather than just following tutorials.

For those working on RAG/GenAI in their organizations:

  1. Which architecture are you using: Basic RAG, Hybrid RAG, Agentic RAG, Graph RAG, or something else?
  2. Which vector database are you using and why?
  3. Which embedding model and LLM are you using in production?
  4. How do you handle document parsing, chunking, and retrieval?
  5. Are you using reranking, hybrid search, query rewriting, or other advanced retrieval techniques?
  6. Which framework do you prefer: LangChain, LlamaIndex, Haystack, or custom implementation?
  7. How do you evaluate RAG quality and reduce hallucinations?
  8. How is your application deployed and what infrastructure are you using?
  9. What were the biggest challenges when moving from POC to production?

I'd especially appreciate hearing about actual technology choices, architecture decisions, and lessons learned.

If you could build your company's RAG system from scratch today, what would your tech stack look like?

Not asking for confidential information, just looking to understand real-world industry practices.


r/Rag • • 1d ago

Tools & Resources Normal hybrid retrieval is old. Do this instead and it makes your RAG evolves.

0 Upvotes

In RAG, there's hybrid retrieval. Usually you combine keyword search (mostly BM25) with vector search from an embedding model to get the strengths of both. Most people just use RRF or a simple weighted sum (convex combination).

The problem with that is once you pick the weights, they stay fixed. Even worse: what weights are you supposed to pick in the first place? Depending on the documents you're searching over, sometimes BM25 should get more weight, and other times vector search should.

To actually know, you had to benchmark it yourself. That's why I built AutoRAG back in 2024. One of its core features was finding the optimal hybrid retrieval weights based on real evaluation.

The downside was that it just did a simple greedy search. To find the best weight, it literally tried 101 values from 0.00 to 1.00 and computed the metrics for each one. Plus, building evaluation dataset was really painful to get a real valid optimization result.

Today, I finally put a feature in AutoRAG Agent that completely fixes this: Learning to Rank (LTR) based optimization. It's way better than tuning static weights.

As you use AutoRAG Agent, your queries and the sources that actually get used and cited in answers collected. When chunks get cited, Jev (decision model) checks whether they're actually relevant and logs them. From there, along with those relevant chunks, you can pull a bunch of features for each chunk: not just the vector and lexical search scores, but also things like which data source it came from (Slack, Discord, etc.).

The LTR approach takes those features and logs as training data and trains a GBDT model like XGBoost. This XGBoost model plays a similar role to the weights in a hybrid retrieval weighted sum. The difference is that a regular weighted sum only has two features, whereas LTR lets you feed in multiple features and learn how to combine them directly from real data to maximize retrieval performance.

So how much does it actually improve? I tested it on two datasets, HERB and MultiHop-RAG. On HERB's 'content-type' questions, answer accuracy went up by as much as 32.1%, and retrieval accuracy (nDCG@10) improved by around 3-4% on both datasets.

The 'content-type' questions need to check multiple docs and sources to get a valid answer, think it is like deep research. LTR is quite effective in those questions, because it improved performance by pushing borderline-relevant chunks higher up in the rankings. Since people ask those kinds of questions all the time (for example, "is there anything important I should know from the reports I submitted recently?"), you can actually feel the difference in real use.

Meaningful gains start showing up around 300 queries. If you want to check out the code, or directly using local RAG with this LTR optimization, feel free to check AutoRAG in Github and press star:)

https://github.com/Marker-Inc-Korea/AutoRAG

Thanks!

btw why can't I post a photo in the post? I wanna show you guys the chart.


r/Rag • • 1d ago

Discussion How to speed up the response of a local rag?

2 Upvotes

I'm making a hybrid rag. it can work to search web or vectorDB.

my rag have to decomposition query router and search path router. when input a question, decomposition query router makes subquery. then for each subquery, dicide search path. then After performing a search for each search path, call llm to pass the search results. The two routers also call the same llm. qwen2.5.
It answers complex questions relatively well, but I don't like the search speed.

For each path, until my lag returns a response takes 29sec, 44sec. Web search uses external APIs.

Isn't there a way to do this a bit faster?

I don't use anything other than the base retriever in VectorDB. also my laptop is m1 mac 16g.


r/Rag • • 16h ago

Showcase A consultant quoted you $30k for AI project? Talk to us before you sign

0 Upvotes

Small team of engineers + PhDs. Sharing one we shipped recently.

The problem: a distributor was re-typing every online order into their ERP by hand — hundreds a day. Slow, error-prone, and two people basically did nothing else.

What we built:

  • Orders flow automatically from the store into the ERP (order + prepayment created, no typing)
  • Shipping and tracking sync back both ways
  • Auto-invoicing at end of day
  • Weekly reconciliation on autopilot

Stack: low-code automation layer + ERP/e-commerce APIs, with monitoring so a failed order doesn't vanish silently.

Result: manual entry gone, errors down, those two people back on real work. It's been running in production, not a demo.

Happy to go into the architecture or the gotchas in the comments — ask away.

(We do this kind of thing for a living. If you've got a process bleeding hours, drop it below and we'll tell you straight if it's worth automating.)


r/Rag • • 1d ago

Discussion Relevant context, wrong answer? I checked rule exceptions before changing the retriever

1 Upvotes

A failure mode that keeps coming up with document Q&A is getting a relevant passage back and still ending up with the wrong answer. Before changing chunking or adding a reranker, I’d want to know whether the model had enough evidence and applied the right rule.

I had six synthetic support questions run through MiniCPM5-2B Q4_K_M on an M1 Pro with 32 GiB unified memory, using Ollama 0.33.2. Each question received two documents, then ran again with one removed. Same prompt, independent requests, no retriever.

The prompt required an answer, source IDs, exact quotes, and missing information. It explicitly told the model to use only the supplied documents and avoid a conclusion when a required rule was absent.

The clearest case was a U.S. monthly Starter customer requesting a refund on day 20. The general policy specifies 14 days but refers to an exception document. That exception gives this customer 30 days.

With both documents, the model applied the exception and answered yes. Without the exception document, it returned insufficient_evidence and named EXCEPTION-2026 as the missing information.

Run 1: both documents, model applies the exception
Run 2: exception removed, model flags it as missing

Same question and prompt, separate requests. These views were rendered from saved inputs and responses without rewriting the model output.

That‘s useful behavior for a document assistant. In this case, the response points to an explicitly referenced document that was not supplied. It does not show that the model can independently discover an unknown missing source or successfully retrieve it. It avoids rejecting the refund based only on the general rule.

Here’s the breakdown from the rubric review

CaseFull-context answerKey-required sources citedMissing-context response
Refund exceptionCorrectException policy onlyIdentified the missing exception
Cancellation vs. refundCorrectCancellation policy and refund policyIdentified the missing refund policy
Policy versionCorrectCurrent policy onlyIdentified the missing current policy
Account credit vs. cashCorrectSeat policy and credit termsIdentified the missing credit terms
Export deadlineCorrectExport policy and retention policyIdentified the missing retention window
Reseller scopeCorrectDirect-purchase policy and channel policyGave a definite answer without the channel policy; failed the supplied missing-context criterion

All 12 responses completed without truncation or transport errors. The median request time excluding the first was 11.05 seconds.

My takeaway is that MiniCPM5-2B applied the refund exception and identified its absence when removed. That gives me a concrete behavior to validate on real documents before changing the retrieval stack.

In the refund example, would you mark the citation as incomplete even though the exception quote fully establishes the applicable rule? How do you separate source coverage from evidential sufficiency in your evals?


r/Rag • • 1d ago

Showcase BenoDB – Embedded vector, graph, and SQL engine built on Apache Iceberg

11 Upvotes

I'd like to announce my open source vector db that I've been working on for the last 11 months has reached developer preview status. I started building BenoDB https://github.com/benolabsai/benodb/ last December, put it on GitHub in March, and have finally reached the point where I'm comfortable showing it off.

Why I Built It

While analyzing 3.3 million SEC filings for a recent research paper presented at IEA/AIE 2026 (published in Springer: https://link.springer.com/chapter/10.1007/978-981-92-2888-1_12), I realized my data organization was shit. My data was scattered across CSV files, Parquet files, DuckDB queries, PostgreSQL tables, and raw NumPy .npy vector dumps. I wanted to use Apache Iceberg, but hated the catalog requirements and having to run Spark just to manage my data.

What BenoDB Does

BenoDB is an embedded engine written in Rust that turns Apache Iceberg tables into an executable vector, graph, and full-text database—with zero external servers, no JVM, and no Spark cluster. I was originally envisioning this as just a vector db engine, but while building it I realized I could handle graphs with it as well, resulting in a single unified engine. One thing led to another, and I ended up including Graph RAG with it.

* Authoritative Data: Parquet files in Iceberg remain the 100% source of truth.

* Zero-Copy Arrow (In-Memory & Out-of-Core): Built natively on Apache Arrow. Runs in-memory with zero serialization for sub-millisecond queries, and out-of-core via memory-mapping.

* Advisory Overlays: HNSW vector search, 8-bit TurboQuant compression, BM25 text, and CSR graph topology are stored as rebuildable sidecars in standard Iceberg Puffin blobs.

* Embedded SQL: Uses Apache DataFusion in-process with standard pgvector syntax (<=>, <->, <#>) and graph UDFs (graph_neighbors).

* Zero Cluster Overhead: Runs as a Python library (pip install benodb) or embedded Rust crate directly against local disk or S3.

*

Benchmarks (8 vCPU / 16 GiB container)

* Vector ANN: 0.38ms–0.93ms P50 latency at 950–2,140+ QPS across GloVe-100, LastFM-64, and SIFT-128.

* Large-Scale Out-of-Core: Stress-tested on Cohere 10M (10M vectors, 768-D) and NeurIPS BigANN (100M, 128-D)

* In-Process Graph: 291k-node PageRank runs in 96ms in pure Rust.

The code and benchmarks are in the repo above. If you'd like to follow along or sign up for project updates, you can find us (and by us I mean me) at https://www.benolabsai.com. The first blog post is also available at https://www.benolabsai.com/blog/rag-graph-howto/


r/Rag • • 1d ago

Discussion RAG - Protection of sensitive & personal information

3 Upvotes

Hello everyone!

During the last few weeks I've been working in different ways to hide sensitive information from data that consumes a RAG system. A system prompt telling the LLM to hide information is expensive and unsecure due to adversarial attacks. That's why we need to take a look at some specialized tools.

Well, here is where the big challenge comes. Deciding which tools are the best for each use case (we have tools and several open weights models out there) was surprisingly difficult. We have the typical metrics (precision, recall and F1), but when hiding sensitive information we need to consider F2 and a metric to determine how much spans are we missing (leakage) during a benchmark and also if we want to measure by overlap, exact match, or even measuring in a chars level.

F2 gives more importance to recall. Hiding sensitive information is more important than good precision.  Leakage gives us the % of spans that weren't hidden. We can measure this by marking as leakage a span if n chars of it weren't identified (we could use percentage or combine both methods).

========

With that context I would love to hear your approaches to similar problems with PII and RAG.

I found this benchmark PIIMB - Leaderboard that was really helpful to find some of the best PII models. But even those are not enough for all cases. That's why I decided to implement different models in a pipeline, and then I found the following approaches

  1. Merge: give the original text to different models then masks the final text with each prediction.
  2. Sequential: give the original text to the first model, masks the text and give the masked text to the following model and so on. Here we need strategies to mitigate distribution shifts.

Obviously this will represent an impact in metrics. I implemented a way to join spans and remove chars that doesn't represent a leakage (those like asterisks, parenthesis, line jumps, ...) from the borders to minimize the impact of models with low acc.

Here we are focusing only on sensitive data identification. The parse and masking process (where we need to prevent the coreference loss) are stages different from this one.

What are you doing to protect your personal and business sensitive information?


r/Rag • • 1d ago

Tools & Resources my rag pipeline was 5 model servers across 4 mostly idle GPUs. so im moving it to one

9 Upvotes

Started with one embedding model. Fine. Then retrieval kept missing obvious stuff so i added a reranker. Then we needed entities out of the docs so gliner went in. Then half the docs were scanned pdfs so, ocr. Next thing i know, i'm running five things, each its own container, own port, own chunk of vram, and most of them aren't llms.

Worked great in the demo. Then real traffic showed up.

The latency was the weird part. Nothing was slow on its own. Embed fine, rerank fine, extract fine. But every request walked through all of them as separate http calls before the llm started, and those hops pile up. Spent a whole afternoon profiling before it clicked that there was no single slow thing to go fix. It was the walking.

Now the embarrassing part. Four cards, each pinned to one model, each sized for that model's peak. Reranker gets hammered at noon, ocr fires a couple times an hour, they never share, so most of the day the gpus sit there doing nothing while I pay for all of them. Not going to type the utilization number.

Tried pulling it back into one layer. What I'm testing is sie ( github.com/superlinked/sie, not my project, been running it a few weeks). One server, loads whatever model the request wants, evicts lru when vram fills so the models share a pool instead of each hogging a card. Uses openai api so the generation side was a base-url swap.

Not magic and not for everyone. If you're serving one model at steady high traffic, vllm or sglang beats this. sie runs sglang under the hood for generation anyway. The win's there if you're juggling a bunch of different model types and the orchestration is the real cost, not the inference.

Still migrating so I don't have clean before/after numbers worth posting. But the "why is everything slow when nothing is slow" thing came down to the network hops plus the idle pools.

How are yall handling the reranker when it's sharing a gpu? im least sure about that.


r/Rag • • 1d ago

Discussion I built ragpick, an open-source Python library to help you pick the right RAG architecture for your use case (feedback welcome)

2 Upvotes

Hey everyone,

Building a RAG pipeline is easy. Choosing the right one is the hard part. I kept hitting the same problems on client projects:

- Plain vector search misses the product codes and error IDs that customers actually type

- Internal docs leak into answers for users who shouldn't see them

- Someone ships a "better" pipeline with no evidence that it's actually better

So I built **ragpick**, which makes the architecture an explicit, testable decision:

  1. **Recommend.** Describe your requirements and get a blueprint, the reasons for it, alternatives, and warnings.
  2. **Build.** The pipeline is a validated `rag.yaml` (architecture as code), with document-level access control built in.
  3. **Evaluate.** Compare blueprints on your own questions: hit rate, MRR, faithfulness, latency and cost, side by side.

**11 stable blueprints:** naive, hybrid (BM25 + vector + RRF + optional cross-encoder), parent_child, sql (read-only text-to-SQL), graph (GraphRAG), agentic, multimodal, conversational, hierarchical (RAPTOR), long_context, and corrective (grades retrieval and says "I don't know" instead of guessing).

The feature I'm proudest of is `ragpick bench`. It tries every stable blueprint on your data and writes out the winner:

```

ragpick bench eval.jsonl --data ./docs --write best.yaml

```

Don't have eval questions yet? `ragpick generate-eval ./docs` creates a starter set from your documents.

**Try it in 60 seconds, offline, no API key:**

```

pip install ragpick

git clone https://github.com/kavishkakalhara1/ragpick && cd ragpick

ragpick init --blueprint naive --yes

ragpick ingest examples/data

ragpick query "How do I reset my password?"

```

**Other things it does:**

- **Routing and serving:** a router sends each question to a docs pipeline or a SQL pipeline. `ragpick serve` exposes it as an HTTP API, with API keys mapped to access groups.

- Multi-tenancy (an isolated index per tenant), streaming, and chat sessions that rewrite follow-up questions using the conversation

- `--trace` shows where time goes, and caching stops you paying twice for the same embeddings and LLM calls. Traces can be exported to OpenTelemetry.

- `ragpick eval --fail-under hit_rate@k=0.8` turns retrieval quality into a CI check

- Thumbs-up/down feedback can be exported as regression tests

- **Works alongside LangChain and LlamaIndex** rather than replacing them: their loaders, embedders and LLMs plug in as components

- Supports OpenAI, Ollama and sentence-transformers, plus Qdrant, pgvector, Chroma and LanceDB

1.0 is stable, so configs, the Python API, the CLI and the HTTP API only change compatibly within 1.x. Next up (v1.1) is an adaptive blueprint that picks the cheapest strategy per question, an Anthropic generator with prompt caching, and an Elasticsearch/OpenSearch store.

- GitHub: https://github.com/kavishkakalhara1/ragpick

- PyPI: https://pypi.org/project/ragpick/

- Full write-up on why I built it and how it works: https://medium.com/@kavishkakalhara/choosing-a-rag-architecture-is-the-hard-part-so-i-built-a-tool-for-it-5cffce329a0e

I'm the author and maintainer. I'd love honest feedback, especially on whether the recommendations match what you've seen work in production, and which blueprints or stores you'd want added. Contributions are very welcome too.


r/Rag • • 2d ago

Discussion I Thought my RAG was working but production feedback told a different story.

5 Upvotes

I built a RAG system, tested it with a few questions, and everything looked good. But after moving it to production, I started getting a lot of thumbs-down feedback.

That's when I realised something. When we test manually, we usually ask straightforward questions we already know the answers to. But real users ask things differently.

The bigger problem? I couldn't tell whether my retriever was fetching the wrong context or the LLM was generating bad answers.

So I built a RAG evaluation pipeline and a test dataset with 83 questions across different categories. covering simple lookups, semantic queries, multi-hop, multi-span, exact keyword lookups, version-specific questions, and unanswerable queries.

I measured retrieval quality using Recall, Precision, MRR, etc., and answer quality using Ragas.

Tested it with different k values then I could see clearly even at at k=5, retrieval had a 96% Hit Rate, but for questions requiring information from multiple spans, the retriever struggled to find all the labeled relevant chunks.

On the generation side, Faithfulness was around 92%, while Factual Correctness (F1) was only 52%.

It made me realize why evaluating only the final answer or relying on a single metric can hide important problems.

I documented the entire process, including the evaluation dataset, implementation, all important metrics explanation, and results, in a video, https://youtu.be/L7SM04rzhCc


r/Rag • • 1d ago

Discussion Raw chat history retrieval is a baseline every memory project should report

1 Upvotes

Conversation memory arguments tend to fork into the same two camps. One side wants structured, agentic memory with summaries and consolidation. The other side says search over the transcript mostly gets you there.

I have usually sat in the first camp. Then a Cycle 2 result dated November 19 gave me pause, so I went through the results page and the entry's README.

RAW-RAG-AML, an open-source entry that reproduces the RAW-RAG method, sits fifth on the Cycle 2 Textual Open-source Methods board with 60.38. Its README describes it as a reproduction and protocol adaptation. Search returns only original evidence, and the storage layer is SQLite.

Another RAW-RAG adaptation, from a separate repository, is third on the Cycle 2 Multimodal Open-source Methods board: Multimodal-RAW-RAG-AML with 42.17. Per its README, matches get expanded back to the complete source messages, and search hands back the source text alongside the images.

Context matters for how I read these numbers. The Agent Memory Leaderboard (AML) fixes answering and grading, and entries control only Add and Search. The setup is designed so that gaps between entries reflect memory more than anything else.

My own takeaway, in short:

  • a raw history baseline belongs in every memory project's own evaluation
  • one placement inside one evaluation is not a verdict for every scenario
  • it is no evidence that raw retrieval beats every complex memory system

Every conversation memory project should publish a plain raw history number beside its own.

What do you use as the baseline for conversation memory?


r/Rag • • 2d ago

Discussion Has anyone successfully built RAG over thousands of contract PDFs with inconsistent layouts? Struggling with section extraction before embeddings

37 Upvotes

I’m working on a RAG/AI project involving a fairly large collection of contract forms, and I’m curious if anyone here has solved a similar problem in production.

I have roughly 7,400–7,500 contract PDFs. The eventual goal is to build an AI assistant where a user can ask questions about a contract and retrieve the correct clause/section instead of simply retrieving arbitrary chunks of text.

The biggest challenge I’m facing is actually before the vector database/embedding stage: reliably extracting the structure of the contracts.

What the documents look like

These are not all standardized PDFs.

Across the library I have:

•	PDFs with different layouts and formatting

•	Contracts with extra cover/data-entry pages before the actual agreement

•	Some scanned PDFs that require OCR

•	Searchable/text-based PDFs

•	Headings indicated by font size, bold text, capitalization, color, spacing, lines, etc.

•	Section headings that differ between contract/form types

•	Headers and footers repeated across pages

•	Form metadata in headers/footers

•	Revision information that isn't always located/formatted exactly the same way

•	Cases where words that look like headings also appear inside normal paragraphs

•	Multi-page sections where the content continues onto another page

What I need to extract

Ideally, I want each PDF converted into structured data roughly like:

•	File name

•	Form name

•	Form date

•	Revision

•	License/state information

•	Section heading

•	Full text belonging to that section

•	Page/location information

•	Other useful metadata

The problem is that identifying those boundaries consistently across thousands of different PDFs is much harder than I originally expected.

What I've tried

I've experimented with:

•	PyMuPDF

•	PyMuPDF4LLM

•	Docling

•	Apache Tika as another possible approach

•	Python-based custom PDF parsing

•	Font size/style based heading detection

•	Position/layout rules

•	Header/footer detection

•	Keyword/regex-based section detection

•	Metadata extraction

•	OCR considerations for scanned documents

I also looked into services such as Azure Document Intelligence, but I'm trying to determine how much can reasonably be solved with Python/open-source tooling before introducing another paid document-processing layer.