r/Rag

RAG workshop with open models (Aug 29), no API costs to worry about
▲ 20 r/Rag+5 crossposts

RAG workshop with open models (Aug 29), no API costs to worry about

If you're trying to get into RAG and generative AI but keep bouncing off tutorials that assume you already have API budget or existing infrastructure, this might help.

There's a hands-on session on August 29 that builds a full production-style RAG system using entirely open models, no API fees involved anywhere in the process. Covers hybrid retrieval, evaluation, guardrails, and cost benchmarking, the parts that actually separate a working demo from something you understand end to end.

Good one if you want to learn by actually building rather than just watching a walkthrough.

Here is the workshop details

u/camerongreen95 — 14 hours ago
▲ 7 r/Rag

Hit a brick wall with RAG evaluation

My introduction to evaluation has not been very pleasant. To me it is a choice between investing time or spending money.

By that I mean you can either:

  1. Spend a lot of time hand-crafting Q/A pairs and then perform manual checks to see if your system retrieves the correct chunks. And you repeat this for every single query. Suppose my dataset has 100 Q/A pairs, is this not a lot of work for a single person to do?
  2. Use LLM-as-a-judge which automates much of what I described but you run into API rate limits pretty quick. I did figure out a workaround where I evaluate my dataset in batches (e.g: 5 questions per run) but again, it takes time.

I am not trying to complain here. I believe there is a more efficient way to run evaluation but I am new to RAG which is why I do not know proper evaluation techniques. Most metrics on DeepEval use LLM-as-a-judge which comes with API costs but I think I could try RAGAS and it's deterministic evaluation metrics.

Is evaluation in itself a time consuming process?

I need direction and guidance, advice would be much appreciated because I have basically put my project to a halt.

reddit.com
u/Strange-Release3520 — 20 hours ago
▲ 14 r/Rag

I want to learn and master RAG

Hello everyone, as the title says I wanna start learning about RAG, at this moment I know absolutely nothing even though I'm doing a masters in AI (I know...) that's why I need help on how to actually start learning about this topic ? I know the best way to learn something is to build a project but I find it hard to build something when I have no idea where to start. I heard LangChain, Vector Databases, etc... but I don't know anything about these frameworks.

reddit.com
u/Stillane — 23 hours ago
▲ 1 r/Rag

Best project to land RAG clients

Hi guys, I would like to land premium clients for developing RAG systems. The thing is that I also need to make my master’s thesis (I study data science), and I was wondering what project could I build so that it fulfills my masters thesis and also helps me find premium clients afterwards.

I want to build something that creates real value for a company. Which problems could I solve for firms using RAG?

Thanks a lot in advance!!

reddit.com
u/el_empotrador — 19 hours ago
▲ 2 r/Rag

What is a retrieval layer for RAG pipelines?

I've been reading about RAG and I keep seeing people mention the retrieval layer like it's some separate thing you build, not just a vector db you query. Can someone explain what actually happens there? My current understanding is this: user asks question, question gets turned into an embedding, that embedding gets compared against a bunch of stored embeddings in a vector db, top matches come back, and those get stuffed into the prompt before it goes to the LLM.

Now, what I don't understand yet is: why does everyone say RAG with cosine similarity search isn't good enough. What's going wrong there in practice, is it pulling irrelevant stuff or missing the right things altogether? I keep seeing hybrid search mentioned, combining keyword search and vector search. Why would you need both if embeddings are supposed to capture meaning already? On top of that, I also saw someone mention reranking as a separate step after retrieval, so you retrieve like 50 chunks and then a reranker picks the best 10. Wouldn't that just make retrieval happening twice?

One more thing I keep wondering about, where does the data come from in the first place. Like if you're building a knowledge base from web content, how do people keep that fresh as possible? Constant scraping/crawling?

Thank you in advance

reddit.com
u/TotalJokerFace — 1 day ago
▲ 18 r/Rag

Building my first RAG - what makes this harder than it looks?

I've just completed the corpus on a RAG I'm building for local lawyers, realtors, and contractors who want fast information about every parcel in town without having to go through town hall's antiquated records system. I'm not trying to make a buck - just trying to learn how to make AI more precise in domains where that's important.

The corpus is tiny (only a couple hundred PDFs). I plan to use structure-aware chunking with contextual enrichment. Here are the steps:

  • Parse PDF into text
  • Detect structure (agenda items, sections, paragraphs)
  • Split at natural boundaries
  • For each chunk, generate a context summary via Claude
  • Prepend context to chunk before embedding
  • Store both the enriched chunk (for embedding) and the raw chunk (for citation)

Am I on the right track? Any land mines to watch out for?

reddit.com
u/Intrepid4 — 2 days ago
▲ 13 r/Rag+1 crossposts

Run GLM-OCR, DeepSeek-OCR-2, and dots.mocr with an OpenAI Compatible API

Open-weight OCR VLMs have gotten good enough that frontier APIs are usually the wrong default for document parsing. We put DeepSeek-OCR-2, GLM-OCR, dots.mocr, PaddleOCR-VL, and PP-OCRv6 behind one OpenAI-compatible endpoint so you can swap models with a one-line change and compare cost/accuracy on your own docs.

Best of all, it's dirt-cheap - you can process roughly 100K pages for under $60.

Here's a colab if you want to try it on a PDF: https://colab.research.google.com/drive/1RkuVIyuc5Po-UlcSlFyJCam5tjCm9IHM?usp=sharing

For API integrations into your workflows, use JSON mode with a strongly typed output contract. For agents, we ship an MCP server at https://gateway.vlm.run/mcp with a read_document tool that provides the same cost-efficient parsing, especially for long-form documents. Any MCP-compatible client (Claude Code, Codex, OpenCode, and others) can now consume long-form documents natively and cost-effectively.

- Docs: https://docs.vlm.run/gateway
- Catalog: https://docs.vlm.run/gateway/models
- MCP: https://docs.vlm.run/gateway/mcp-server

If you're interested in seeing specific models hosted, comment below.

u/fuzzysingularity — 1 day ago
▲ 9 r/Rag

Would portable, versioned knowledge bases solve a real problem, or is this just RAG with extra steps?

Hey everyone, I’ve been thinking about a problem with AI knowledge systems and was hoping to get somewhat of a sanity check from people actually building in this space.

From my understanding, most RAG setups seem tied to a particular app, vendor, or index. You often end up ingesting the same docs again for different agents or runtimes and and some basic questions can be difficult to answer consistently like:

- What version of this knowledge is the agent using?

- Where exactly did this information come from?

- Has the underlying source changed since it was last ingested?

- Can I move the same body of knowledge to another runtime without rebuilding it?

- Can multiple agents use the exact same knowledge?

The idea I’m exploring is something I'm calling a Durable Knowledge Base (DKB).

The basic concept:

- Compile source docs, code, or structured data into a portable, versioned knowledge artifact

- Preserve source paths, hashes, citations, and provenance

- Sign and publish releases through a registry

- Allow knowledge packages to be installed, updated, pinned, and removed

- Let agents search, find, and read the same knowledge base across different runtimes

- Keep the artifact retrieval-agnostic rather than baking one specific top-K/RAG strategy into the format

Basically, I'm wondering whether knowledge should have something closer to a package lifecycle, rather than every application maintaining another disconnected RAG index.

I'm also very aware that things like Azure AI Search, GCP, vector databases, MCP servers, Agent skills, etc. already cover pieces of this problem, sometimes extremely well.

So Im specifically not asking: "Can I build a better enterprise search engine here?"

I'm trying to figure out whether the portable knowledge artifact itself is useful.

Would this solve an actual problem for you? Or is this mostly reinventing existing search/RAG infrastructure with some packaging and provenance added on?

I would especially like to know:

- What do you currently do when multiple agents/apps need the same knowledge?

- Do versioning and provenance actually matter to you?

- Would you ever install someone else's curated knowledge package?

- What would this need to do that existing solutions don't before you woukd bother using it?

Feel free to poke some holes. I'm actually looking for reasons not to build this further before I sink more time into it.

Thank you.

reddit.com
u/Rebootz — 2 days ago
▲ 80 r/Rag+1 crossposts

Is RAG still a thing?

I haven’t seen RAG come up in agent architectures in over 6 months due to Agentic Search (letting the model use Bash/grep/glob/read), which seems to work pretty well. Wondering what others are experiencing. I’m sure there’s still a time and place for RAG, exposing semantic search as a tool… but where do we draw the line? When the corpus is too large to let the model comb through it progressively?

reddit.com
u/BreakfastSpecial — 3 days ago
▲ 9 r/Rag+2 crossposts

We Analyzed 10,000 Failed Agent Search Queries: Why Your LLM is Terrible at Web Searching (and How to Fix It)

Hey everyone,

Following up on the previous discussion about search API latency, I wanted to share another massive bottleneck we hit while building autonomous web agents. Even with a lightning-fast retrieval API, our agents were frequently getting stuck in execution loops or extracting the wrong data entirely.

We pulled the logs of 10,000 failed retrieval attempts. The culprit wasn't the LLM's logic or the search index itself. The core problem was that LLMs are surprisingly terrible at formulating search queries.

Here are the three main ways agents fail at searching, and the architecture tweak we used to fix it.

1. The Conversational Search Trap

LLMs naturally default to conversational text. Instead of searching a dense keyword string like OpenAI API pricing 2026, a naive agent will search How much does it cost to use the OpenAI API right now?. Search engines (even machine-native ones) often struggle with these conversational strings, burying the agent in SEO spam instead of technical documentation.

2. Context Amnesia in Multi-Hop Searches

When an agent needs to perform a multi-hop search (e.g., finding a founder's name, then finding their previous startups), it frequently drops the subject in step two.

  • Search 1: "Who founded Anthropic?" (Result: Dario Amodei)
  • Search 2: "What other companies did he work for?" (Result: Completely useless garbage).

3. Ignoring Advanced Operators

By default, agents rarely utilize quotes for exact matches, site: operators to restrict domains, or - exclusions to filter out noise. They rely on basic broad-match strings, which rapidly fills up their context windows with irrelevant tokens.

The Fix: The Query Planner Micro-Agent

We completely stopped letting our primary reasoning agent hit the search tool directly. Instead, we injected a lightweight micro-agent whose sole job is translating the goal into optimized search syntax.

  • Step 1: Primary Agent requests information (e.g., "Find Stripe's latest API rate limits").
  • Step 2: Query Planner translates this into an array of strict queries: site:[stripe.com/docs](https://stripe.com/docs) "rate limits" 2026.
  • Step 3: The system executes the search and returns the clean snippets to the Primary Agent.

This simple architectural tweak increased our agent's successful retrieval rate by over 40% and drastically cut down on wasted API calls.

I posted the full query-planner prompt schema and benchmark logs on the forum if you want to inspect or copy it:Brave vs Google Search API for AI Agents - The 2026 Enterprise Guide

Has anyone else implemented an intermediate query-planning step, or are you successfully prompt-engineering your main agent to handle advanced search syntax on its own?

u/Ok_pettech — 2 days ago
▲ 1 r/Rag

Built hybrid RAG over PLC code for commissioning troubleshooting. It works. I have zero customers. How did you find yours?

Automation+Systems engineer, years of machine commissioning. I built a RAG system for on-site troubleshooting: you're at the plant, machine won't run, whoever wrote the logic is asleep in another country.

Corpus: Siemens SCL / TIA Portal XML, Rockwell L5X, HMI config and alarm tables, schematics, I/O lists, FAT/SAT protocols.

Stack (client PoC, deliberately minimal infra):

  • bge-small-en-v1.5, 384-dim, CPU via sentence-transformers. Corpus embedded offline, only queries embedded at runtime — customers won't send proprietary PLC code to an external API, and plant connectivity is whatever you get.
  • Docs: Chroma + LlamaIndex BM25, fused with RRF. Immutable bundle built offline.
  • PLC code and alarms: Postgres 16 + pgvector, Postgres FTS (tsvector), plus exact entity/tag lookup, fused with RRF in SQL. Code graph in plain Postgres tables — no Neo4j for the PoC.
  • HMI: exact structured lookup, no embeddings. Embedding this layer made results worse.
  • LangGraph multi-agent orchestration, LangChain Core init_chat_model, Vertex AI with Bedrock as portability path.

Three things this corpus taught me that generic RAG advice misses: exact match is the backbone not a fallback (MOT_CONV_03_FLT and MOT_CONV_08_FLT are vector-space neighbours and different machines); semantic chunking is actively wrong for control code, because the meaning lives in the cross-reference graph, not the block; and not everything deserves embeddings.

Now the actual problem.

I have no customers. Two industrial prospects agreed the problem is real, then said "we'll build it internally." Both have now started, and neither has anyone who has done this before. The pattern is identical in both: take a good engineer who knows Python, hand them the project, assume it's a weekend of work.

I understand why they think that. The naive version demos. Dense-only retrieval with fixed-size chunking over twenty documents looks finished. What isn't visible at that stage is how badly it degrades on a real corpus — and there's no eval set, so nobody finds out. The failure arrives later, at 2am, when someone is deciding whether to bypass an interlock based on an answer that sounded confident.

So I've been building PoCs for free to get in the door. I'm now suspecting that's the mistake: nobody had to get budget, so nobody owns it internally, and free reads as unproven rather than generous. But I also don't feel I can charge with zero track record.

What I'm asking:

  1. How did you find your first paying customer? Not how you closed them, how you found them. Cold outreach, network, community, partnering with integrators/OEMs who already had the relationship?
  2. Do free PoCs ever convert, or do they just train the market to expect this for free? How did you get paid for the first one with no history?
  3. How do you beat "we'll build it internally"? Has anyone led with an eval harness or retrieval-quality audit as a wedge — proving their internal system is broken before proposing a replacement?
  4. Product or implementation? Is a productized offering realistic here, or is the honest business bespoke implementation that gets productized slowly?
  5. How do you find companies already spending money on this, badly? I've been targeting companies that have the problem. Every machine builder has it. Wrong filter — what's the right signal?

I am a decent engineer and a terrible salesman, and I'm running out of ideas before I run out of runway. Any of the five above, even a partial answer, would help.

reddit.com
u/Mertadona — 2 days ago
▲ 9 r/Rag

Help me improve Book -Retrieval Augmented Generation V3

Hey All, A few months ago I had published the "21 RAG Strategies" Book Here. And it was downloaded about 2500 times across subreddits. I made 2 revisions from the feedback.

This week I published it on Amazon and it became a best seller. I am getting ready to publish the next editition. Help me improve the content. What am I missing. what would you add?

Table of Contents

  • RAG and the Reference Architecture
    • 02 The Evolution of RAG
    • 03 Foundations of RAG Systems
    • 04 Reference Architecture
    • P A R T I I I Data Extraction
    • 05 Data Extraction
    • P A R T I V Chunking
    • 06 Chunking Strategies
    • P A R T V RAG Strategies
    • 07 Baseline RAG Pipeline
    • 08 Context-Aware RAG
    • 09 Dynamic RAG
    • 10 Hybrid RAG
    • 11 Multi-Stage Retrieval
    • 12 Graph-Based RAG
    • 13 Hierarchical RAG
    • 14 Agentic RAG
    • 15 Multi-Agent RAG Systems
    • 16 Streaming RAG
    • P A R T V I Memory and Content Management
    • 17 Memory-Augmented RAG
    • 18 Knowledge Graph IntegrationP A R T V I I Evaluation
    • 19 Evaluation Metrics
    • 20 Synthetic Data Generation
  • Fine-Tuning
    • 21 Domain-Specific Fine-Tuning
  • Security
    • 22 Privacy & Compliance in RAG
  • Production
    • 23 Real-Time Evaluation & Monitoring
    • 24 Human-in-the-Loop RAG
  • Twig RAG Strategies
    • 25 RAG Strategies in Twig
  • P A R T X I I Conclusion
    • 26 Conclusion & Future Directions
reddit.com
u/LogicalOneInTheHouse — 3 days ago
▲ 1 r/Rag

How should I structure old support tickets for a RAG-based AI customer support agent?

Hi everyone,

I’m working on a project where I want to build an AI agent for customer support. The idea is that customers can ask questions about technical issues such as SSH, IP addresses, DNS, VPS, Outlook, etc., and the LLM should help them diagnose and solve their problems.

I’m using my own knowledge base + RAG, but I’m still a beginner and I’m not sure what the best way is to structure my data for retrieval. I already have some old support tickets that I’d like to add to the knowledge base. These tickets usually contain:

  • The customer’s initial problem/question
  • A conversation between the customer and the human support agent
  • Troubleshooting steps
  • The final diagnosis
  • The solution that was applied

For example, if a customer previously had an SSH connection problem and the support agent solved it by identifying a specific configuration/firewall issue, I’d like the RAG system to retrieve that previous case when the AI encounters a similar problem, so the LLM can use the previous solution to help the new customer.

My question is: how should I transform and structure these old support tickets before putting them into the RAG?

Should I keep the conversations as they are, or should I transform each ticket into something more structured, for example:

  • Problem / symptoms
  • Environment
  • Diagnostic steps
  • Root cause
  • Solution
  • Verification
  • Similar scenarios
  • Keywords / metadata

And how should I handle chunking these tickets so that the RAG retrieves useful parts without losing the context of the original conversation?

I’d really appreciate advice on how you would structure this kind of knowledge base, especially if you’ve built a RAG system for customer/technical support before.

Thanks!

reddit.com
u/Appropriate-Limit619 — 3 days ago
▲ 15 r/Rag

How to know am I ready to deploy a RAG system for a company?

Hi guys,

I've spent the last few weeks learning the basics about RAG. Howerver, I think one of the best ways to actually learn is by implementing a real solution for a company.

But, I just wanted to know, what do you recommend me learning/impelementing before offering my serivices (for free) to a company? any project I should build first?

reddit.com
u/el_empotrador — 4 days ago
▲ 2 r/Rag

For those running RAG in production, what's your biggest security headache?

I've been working around LLM/RAG systems and I'm curious about something from people who are actually running them in production.
When an LLM can retrieve information from internal company data, which problem has caused you the most trouble?
PII / sensitive information reaching the model
Compliance / privacy requirements
The model retrieving data it shouldn't see
Sensitive information appearing in the generated response
I'm especially interested in practical experiences — even small examples are useful.
Is there another RAG security problem that you think is more important than these?
reddit.com
u/Prize_Carpenter5423 — 3 days ago
▲ 2 r/Rag

Negative result: vector distance can't tell "weak evidence" from "no evidence", and here's the data that convinced me

I built an eval harness for a document QA pipeline. It answers security questionnaires from a company's own policy docs. 24 questions, labels written down before the system was ever run against them, three deterministic passes.

It scores 15 out of 24. Nine failures. Six of them share one cause, and I want to talk about the fix I couldn't make.

The setup. Answers are gated on how far the best retrieved chunk sits from the question. The cutoff is 0.3. Below it the system answers, above it it abstains. Six of the nine failures are questions where the model produced a correct, well hedged, properly cited answer that the gate then threw away.

The obvious fix. Raise the cutoff. Those six sit at 0.323, 0.340, 0.359, 0.384 and 0.412.

Why I couldn't. One question that has to abstain sits at 0.321. Its evidence genuinely doesn't support an answer, and it only abstains correctly because 0.321 is above 0.3. Every failure I'd want to rescue needs a cutoff higher than that.

There's no value that recovers any of the six without also flipping a correctly abstaining question into confidently answering something its evidence doesn't support. My eval treats that as disqualifying no matter what it does to the total, so I logged it as no change made.

What I think is going on. Distance measures how close the nearest thing is. I was asking it whether there's evidence here at all. Those two come apart, and at this corpus size there's no clean place to draw the line. It isn't miscalibrated, it's the wrong signal.

Two things the harness caught me on, both by instrumenting instead of assuming:

First, I'd logged one question as retrieving cleanly at rank 1, because something came back from the right document. When I actually read what got retrieved, the top hit was a completely different section and the real evidence was down at rank 4.

Second, I'd logged three failures as the model seeing the evidence and abstaining anyway, and I had a prompt fix planned. When I instrumented the actual confidence values, the model had answered correctly every time and the gate was discarding it afterwards. There was no prompt bug. A NOT_FOUND status collapses two different causes into one visible outcome, and only reading the underlying values tells them apart.

What I'm actually asking. Has anyone found a confidence signal that separates these properly? I'm considering a cross encoder reranker score instead of raw distance, an entailment check between the answer and the passage it cited, or looking at agreement across several retrieved chunks. I'd rather hear what's worked on a real corpus than what a paper claims.

Harness, labels and every tuning pass including the rejected ones are here, and the threshold data is in EVAL.md:

https://github.com/PatricR73/Questionnaire-Responder

u/PatricF034 — 3 days ago
▲ 2 r/Rag+1 crossposts

Does llms.txt actually help a model read a site? We ran a sealed 3-condition bench on 8 arms (4 local Q4, 4 frontier cloud) — and published the number that cuts against our own registered result

Hey everyone — founder of strata→signal here, a small local-first software workshop and research lab (we build what I call non-hostile AI tools: run on machines we operate, no accounts, no analytics, and every claim on the site carries receipts you can check).

The llms.txt argument is two years old and mostly receipts-free, so we tried to buy some receipts. Three conditions, same 30 sealed questions about our own estate:

  • C-MAP — the model gets our llms.txt files in context (3,211 tokens)
  • C-HTML — the model gets the site's own prose at an equal budget (3,088 tokens)
  • C-NONE — the model gets nothing. This is the contamination meter: if an arm answers from training data, the sealed set is burned. The set was written freshness-armored; C-NONE came back ~zero across all eight arms.

The roster: four local arms on our own GPU — qwen3.8:27bqwen3.6:27bgemma4:26bllama3.3:70b, all Q4_K_M — and four frontier cloud arms (glm-5.2, deepseek-v4-pro, kimi-k3, gpt-5.5). No Claude arm sits, deliberately: a Claude wrote the exhibit page, and seating one would stack a conflict on a conflict. (The judging in our other benches uses family recusal for the same reason.)

What we found, honestly, both directions: the registered reading fell 61.5% toward llms.txt — but that lead is carried by navigation questions, and our own extractor is why: the map block carried the only URLs in the room (fifty occurrences, thirty-six distinct), the HTML block carried none. Cut the navigation items — a cut we did NOT register, made after seeing the direction it moves, published as transparency rather than result — and the fact questions alone read 71.4% toward the site's own prose at the same token budget. Our one-line take: llms.txt behaved like a map, not an encyclopedia. It knows where things are; it lost on what things say. (Counts, not verdicts — n=30 on one site doesn't resolve a direction, and the page says so in italics right under the table.)

Two receipts that surprised us:

  • The economics are upside-down at the full-file end. Anthropic's llms-full.txt — the "just inline everything" variant — weighs 30.7 MiB, call it eight million tokens: roughly $80 to read once at Fable 5 input rates, ~$40 at Opus 5 or GPT-5.5. That's dinner for a family, per read. Our whole estate map costs about three cents.
  • In thirty days of our server logs, no AI crawler asked for our llms.txt. Not once, on any of our properties that kept logs. ClaudeBot alone made 594 requests and fetched robots.txt 161 times — and never the map. (Our logs, our month — we can't speak past them; the per-crawler table ships in the kit.)

Everything is published: the sealed golden set, every model reply verbatim, the scoring code, the API bill ($1.87 of a $4.00 pre-registered ceiling — 663 calls crossed the wire against a sealed plan of 674, and the gap is itemized), the counting rules, and the full history file (39 dated sources on how the argument actually unfolded). Kit is CC BY 4.0. Check our arithmetic.

https://research.strata2signal.com/llms-txt/index.html

u/strata2signal — 3 days ago
▲ 15 r/Rag+3 crossposts

Build company brain for AI agents using graph context instead of plain RAG

As someone using AI agents for the last one year to run my company, I need them to understand company context, not just return related text chunks.

The problem: ask "what breaks if we deprecate the v1 API?" and standard RAG gives you four chunks from a design doc, a postmortem, a Slack thread, and meeting notes. The model has to still figure out on its own that the postmortem describes the same API the design doc deprecates, and that someone already posted a migration timeline in Slack.

I built a tutorial using HydraDB that adds graph context on top of vector retrieval. Instead of just ranked text, you also get relationship edges: billing-service DEPENDS_ON payments-api-v1payments-api-v2 REPLACES payments-api-v1. Model gets structure, not a reading list.

The useful part was bring-your-own-graph. You declare service dependencies and team ownership explicitly instead of relying on LLM extraction. For structured data you already maintain, the graph is deterministic.

It also supports per-user memory. Same question, different depth depending on who's asking. An engineer gets migration mechanics. A manager gets timelines and ownership.

Runs end to end in 30 minutes with synthetic data.

Repo with full working code: https://github.com/manveer/company-brain-tutorial
Tutorial: https://hydradb.com/blog/build-company-brain-ai-agents

u/zenspirit20 — 3 days ago
▲ 3 r/Rag+2 crossposts

We built a news search API for RAG - looking for feedback

We built a news search API for RAG — looking for feedback

We have been working on a new News Search API at Webz.io, specifically with RAG and AI agents in mind.

The basic idea is simple as you know is using natural-language query like:

>

The API searches Webz.io’s news data and returns the most relevant articles and matching content chunks.

You can also filter by date, country, language, source, sentiment, and category.

For RAG, the content chunks are probably the part I’m most interested in. You can feed the relevant section into your context rather than passing an entire article through the pipeline.

We also built an MCP server, so agents can search the news directly without having to build a separate API integration.

Docs: https://docs.webz.io/docs/webz/news-search

I’d be interested in feedback from people building RAG systems: when retrieving news, what matters more to you: retrieval quality, freshness, source coverage, or getting smaller relevant chunks back?

reddit.com
u/rangeva — 4 days ago
▲ 2 r/Rag

When RAG Works in Testing but Fails in Production

Has anyone dealt with a RAG system that performs really well during testing but starts returning irrelevant or incomplete answers in production?

We’re facing an interesting problem.

The knowledge base contains thousands of documents with overlapping information, different versions, tables, PDFs, and occasionally conflicting data. On a small test dataset, retrieval accuracy looks good. But once the document volume increases, the system sometimes retrieves a related document instead of the correct document.

The confusing part is that the LLM itself seems to be working fine. The problem appears to be somewhere between document ingestion, chunking, embeddings, retrieval, and re-ranking.

We’re considering several approaches:

• Hybrid search using vector + keyword retrieval
• Metadata-based filtering
• Better chunking strategies
• Re-ranking retrieved results
• Query rewriting before retrieval
• Adding document/version awareness

But improving one part sometimes seems to negatively affect another.

If you’ve solved a similar production RAG problem, what was the actual bottleneck?

Was it the embedding model, chunking strategy, retrieval architecture, metadata, or something else?

Would really appreciate practical suggestions or lessons learned from real implementations.

reddit.com
u/Electronic-Move3135 — 4 days ago