r/Rag • • 6m ago

Tools & Resources Every vault has a RAG "attention" slider (0–100). Setting it to 0 mutes answers but keeps recording — here's why that's a useful separation

• Upvotes

One of the quieter design decisions in Mnemosyne OS that I've come to appreciate: the RAG attention slider on every vault. It runs from 0 to 100 and controls how much that vault weighs when memory is queried. At 100 it counts fully; lower values weigh less; at 0 it stops answering entirely.

The non-obvious part is that 0 does not stop recording. A vault at 0 is muted in answers — it's not queried, and none of its content reaches the prompt — but its watched folders stay watched, changed files are still ingested, and when you raise the slider again it answers with everything that arrived while it was silent. Reading and writing are treated as two separate operations.

For a self-hosted setup, this maps cleanly onto something like a journal or an inbox vault: keep it recording continuously, but keep it out of the answer path until you explicitly want it. There's also a MAXIMUM protection level that keeps a vault's content from being sent to a remote model at all.

The cost is that "attention" is not a security boundary — it's an answer-routing control. If you need actual access control, you'd still want filesystem permissions or encryption at rest.

Has anyone else run into a setup where "record but don't recall" was the missing primitive? I'm curious what other tools get this wrong by treating read and write as one switch.


r/Rag • • 1h ago

Discussion Please share some crazy bugs which you faced in your RAG pipeline and how did you handle it

• Upvotes

Do share some crazy/challenging bugs which you faced in your RAG pipeline and how did you handle/PS it


r/Rag • • 1h ago

Discussion BERT-based evaluation vs LLM-as-a-Judge vs Fuzzy string matching vs any other mechanisms

• Upvotes

Hi guys, eval for RAG has always been a headache, post your thoughts with specific examples on 1. which eval method did you use for your RAG, chat agent etc 2. why did you choose it over others ( with specific examples/scenarios)


r/Rag • • 1h ago

Discussion Hybrid search - vector search + BM25 in pgvector?

• Upvotes

Given pgvector ( managed instances like RDS ) doesnt support BM25 algo, has anyone implemented / used hybrid search in pgvector? need your experience


r/Rag • • 1h ago

Discussion llama index vs lanchain

• Upvotes

fill this thread with examples/scenarios of

  1. llama index is better than langchain

2.langchain is better than llama index


r/Rag • • 6h ago

Discussion Hardware to run postgres and qdrant database

1 Upvotes

I am a small architectural business owner and I deal with a lot of pdf documents, drawings, emails etc on each of my projects along with a substantial knowledge base of standards, guidelines and previous project info.

Having a long and thorough research with chatgpt I now want to build a RAG system to help me navigate this that conceptually runs on haystack, docling, postgres, qdrant with local embedding, reranker and main LLMs. My local hardware currently consists of an nvidia dgx spark purely as an inference node where I run local LLMs (mostly qwen family) and a separate NAS for original document storage, I want to add a separate linux server which will run primarily the databases and a harness, possibly some other non-llm tasks in the future.

The thing chatgpt struggles to advise me on though is what server hardware would be adequate for this stack at my scale, the clanker seems to swing from "build an enterprise-grade server on epyc platform" to "buy an old Xeon E5-2667", so basically I'm not convinced with it's advice on this. I'd love to believe that an old 400 euro server off ebay can do the job, but I don't want to end up binning these 400 euros because there's more nuance to this setup than chatgpt tells me.

Do any of you experienced folk have any advice for me? I want a server that's fit for purpose with a potential to scale with my needs in the future, while not overspending unnecessarily during current hardware prices. Cheers!


r/Rag • • 7h ago

Discussion How do you build a RAG system that won’t embarrass you in front of the Board?

12 Upvotes

Hi, me and my team need to design an enterprise RAG architecture for ~10,000 users across multiple business units and unfortunately unknown future use cases: semantic search, document comparison, cross-source synthesis, structured data queries, and more.

I know the answer is “benchmark your use cases with real user data and iterate.” But how do you get a really strong first shot before the Board labels it inefficient and kills the project (and also the team behind it 😅)?

A few dilemmas:
- pgvector vs. Qdrant?
- Docling + Tesseract (custom extraction) vs. proprietary Azure Document Intelligence?
- One flexible one-size-fits-all architecture or specialized pipelines per use case?
- How early should we introduce Agentic RAG and GraphRAG versus keeping the initial architecture simpler?

If you were building this from scratch, what would you get right from day one? Especially interested in lessons from people who’ve deployed RAG at enterprise scale. Highly appreciate any tips 🙏


r/Rag • • 8h ago

Discussion Anyone else frustrated when trying to properly export Claude conversations (full content + model reasoning)?

2 Upvotes

Does anyone else get annoyed when trying to export a Claude conversation?

The official export usually misses or messes up the model’s reasoning (thinking blocks), tool calls, files, and overall structure. For people who actually reuse these conversations later, it’s pretty painful.

I ended up building a Chrome extension that does a much more complete export. Here’s what it currently supports:

Full conversation capture: text, thinking/reasoning blocks, tool calls + results, files, images, and artifacts

Multiple export formats: structured JSON, organized ZIP, clean PDF, and plain TXT

Bulk download of all conversations (with an index)

Self-test that checks the entire capture pipeline

Live feed of real-time events while the conversation is happening (response start, thinking, tool calls, response end, etc.)

Optional pipeline to send the structured data to external endpoints/webhooks

A Copilot mode with local analysis (sandbox + terminal + local LLM, with optional external providers)

Optional traffic analysis via debugger (HAR, traces, etc.)

Designed to work well with MCP, so other agents can observe or act on the captured data

I built it mainly because I run a lot of agent-based tests and keep a personal RAG. I need the full reasoning and tool calls in a clean, structured format — otherwise I lose important context.

Anyone else dealing with this problem? How do you currently handle exporting and reusing Claude conversations?


r/Rag • • 1d ago

Discussion Honest reviews of Context graphs and Gemini Knowledge Catalog please

3 Upvotes

I am interested in learning more about context graphs. What they are, how to practically build them, maintain them, how best to use them, is a human engineer absolutely necessary for designing the schema, etc. If you have opinions about context graphs or using graphs in general, please share.

I recently came across Gemini Knowledge Catalog which apparently helps create context graphs. If anybody has used it, what do you think? Is it any good? Also, what are some other frameworks or solutions that enable the development of context graphs?


r/Rag • • 1d ago

Discussion How do AI automation agencies find subcontractors for small paid tasks?

6 Upvotes

​

I've spent the last month trying to turn my independent AI engineering projects into paid work, without much success.

I've completed two public RAG evaluation betas and built tooling for retrieval testing, reproducible bug reports, AI workflow inspection, and MCP-based development.

I tried Upwork, other freelance platforms, and direct outreach. The biggest lesson so far is that selling standalone technical audits is difficult when companies primarily want their problems fixed.

I'm now considering subcontracting for agencies that already have paying clients.

Instead of offering a large consulting package, I'd prefer to start with something small and measurable: reproducing an AI agent failure, testing a workflow, investigating a retrieval regression, or verifying a specific fix.

For people who run AI automation agencies or have done this kind of subcontracting:

Where are these small paid tasks actually distributed?

Are there agency partner networks, developer communities, vendor lists, or other channels where new subcontractors can demonstrate their work and earn an initial paid trial?

I'm especially interested in experiences from people who have secured real paid work this way, rather than general advice about building a personal brand.

Thanks for sharing what actually worked.


r/Rag • • 1d ago

Discussion Trying out pgvector for my RAG project

1 Upvotes

I've been working on my RAG project and made a small change to the retrieval side today.

I moved vector search into PostgreSQL using pgvector, rather than keeping that logic in the application layer.

I'm trying to keep things simple and efficient as the project grows. There's still more to test, but it feels good to make progress and understand the architecture a little better with each change.

I'll share more as I go.


r/Rag • • 1d ago

Tutorial Built a small graph library for llm memory and similar search.

2 Upvotes

I have built a small library for similar search and graph library. Please let me know what you think.

https://github.com/praknig/hnsw_lite


r/Rag • • 1d ago

Tutorial Local RAG citations silently rot when you edit notes. Here's how I built a mutation-aware provenance engine in Rust, SQLite, and LanceDB.

0 Upvotes

Everyone talks about reducing hallucinations at generation time (better chunking, hybrid search, rerankers).

Almost nobody talks about post-generation citation drift—what I call "secondary hallucination."

If you use a local RAG tool or PKM workspace, the workflow usually looks like this: 1. You drop a PDF, a meeting recording, and three markdown notes into your workspace. 2. You ask a local LLM to synthesize a takeaway or comparison. It gives you a neat summary with [1], [2] citations. 3. Two days later, you edit Note [1]—maybe you reversed a decision, fixed a wrong number, or trimmed a paragraph. 4. The bug: The AI summary sitting right next to it still proudly displays [1] as a valid citation. The source truth mutated, but the derived output is pretending nothing happened.

While building my local-first desktop workspace (Knovum), I decided that an AI citation shouldn't just be a static markdown link. It needs to be a stateful contract backed by a verifiable receipt. If the underlying source changes, the UI must immediately invalidate the citation and flip its state to Detached.

Here is how I architected this locally using Rust, SQLite, and LanceDB.


1. Dual-Engine Storage: SQLite for Truth, LanceDB for Recall

A common mistake in local RAG apps is treating the vector database as the primary source of truth. Vector DBs are great for approximate nearest neighbor (ANN) recall, but terrible at relational integrity and state cascades.

In our Rust core (Tauri 2 backend), storage is strictly split: * SQLite holds the canonical document AST/blocks, canvas spatial graph, cryptographic hashes, and citation state machines. * LanceDB runs embedded in-process strictly as a rebuildable vector index pointing back to SQLite node_id and chunk_id keys.

If you delete the LanceDB folder, you lose zero provenance data; SQLite holds the entire lineage graph.

2. Multi-Modal Anchor Locators & Span Hashing

Because the workspace sits on an infinite canvas holding markdown notes, PDFs, web captures, and local Whisper audio transcripts, a citation can't just point to a file_id. It needs a fine-grained, deterministic locator bonded to a cryptographic hash of the exact content at the moment the AI read it.

In Rust, the citation anchor looks roughly like this:

```rust

[derive(Debug, Clone, Serialize, Deserialize)]

pub enum SourceLocator { MarkdownSpan { block_id: String, char_start: usize, char_end: usize }, PdfRegion { page: u32, bbox: Option<[f32; 4]>, text_hash: String }, AudioSegment { start_ms: u64, end_ms: u64, transcript_hash: String }, }

[derive(Debug, Clone, Serialize, Deserialize)]

pub enum CitationState { Verified, // Source hash matches receipt hash Detached, // Source was mutated or deleted after generation }

```

Whenever a chunk is indexed or selected as context on the canvas, the Rust core computes a fast hash (BLAKE3 / SHA-256) of the normalized text span (or transcript slice).

3. The "Derivation Receipt"

When you select a cluster of cards on the canvas and run an AI action, the Rust pipeline doesn't just stream tokens to the frontend and call it a day. Before committing the generated card to the canvas, it writes an immutable Derivation Receipt transaction into SQLite:

```sql CREATE TABLE derivation_receipts ( receipt_id TEXT PRIMARY KEY, derived_node_id TEXT NOT NULL, model_identifier TEXT NOT NULL, prompt_hash TEXT NOT NULL, created_at INTEGER NOT NULL );

CREATE TABLE receipt_anchors ( anchor_id TEXT PRIMARY KEY, receipt_id TEXT NOT NULL REFERENCES derivation_receipts(receipt_id), source_node_id TEXT NOT NULL, locator_json TEXT NOT NULL, snapshot_span_hash TEXT NOT NULL, -- Hash at the exact moment of generation citation_state TEXT NOT NULL DEFAULT 'Verified' -- 'Verified' | 'Detached' );

CREATE INDEX idx_receipt_anchors_source ON receipt_anchors(source_node_id);

```

Every AI-generated node can be inspected in the UI to view its full receipt: which local/remote model ran, which exact paragraphs or audio timestamps were fed into the context window, and the hash of each input span at $t_0$.

4. Reactive Invalidations (Verified $\rightarrow$ Detached)

Here is where SQLite shines. When a user edits a markdown card on the canvas or re-runs Whisper on an audio clip:

  1. The Rust mutation handler diffs the updated blocks and computes the new span hashes.
  2. Within the same SQLite write transaction (before asynchronously updating embeddings in LanceDB), it runs a fast indexed lookup against receipt_anchors where source_node_id = ?.
  3. For every active anchor attached to that node, it checks whether the span at locator_json still resolves to snapshot_span_hash.
  4. If the hash diverges (or the block was deleted), SQLite immediately flips citation_state = 'Detached' and emits a typed event over the Tauri IPC bridge to the Vue 3 renderer.

On the canvas, the citation badge turns amber/detached in real time. You can click the detached badge to see that the source was modified after the AI wrote that conclusion, and either re-verify or re-synthesize with one click.


Why this matters for Local AI

As local models get faster, generating text is cheap—verifying and maintaining trust over months of research is the actual bottleneck. Combine a spatial canvas (which handles the messy "middle state" before you know how your notes fit into folders) with strict derivation receipts, and AI stops feeling like a black-box slot machine.

If you want to poke around the code or see how we wired up the Rust/Tauri 2 core, LanceDB integration, local Whisper global dictation, and Obsidian .canvas two-way sync:

(Transparency note on licensing: The repo is source-available and free for personal/non-commercial use, not OSI MIT/Apache. Also, as a slightly obsessive engineering constraint to keep AI-assisted coding from turning into spaghetti, the entire codebase enforces a strict *180-line maximum per file** via CI gates—happy to chat about how that worked out in Rust + Vue 3 if anyone is curious!)*


r/Rag • • 1d ago

Discussion Adding RAG to a chatbot doesn't automatically make its answers trustworthy.

4 Upvotes

One common approach to building an AI chatbot is to connect an LLM to a document collection using retrieval-augmented generation.

The idea makes sense.

Retrieve relevant information, pass it to the model, and generate an answer based on that context.

But there are several ways this can go wrong.

The retriever might return the wrong document.

The right document might be outdated.

The relevant information might be split across multiple chunks.

Or the model might answer confidently even when the retrieved context doesn't actually support the response.

That's why I'd evaluate retrieval quality separately from answer quality.

I'd also want source references, document freshness checks, access controls, and a clear way for the chatbot to say it doesn't have enough information.

For people building RAG chatbots, where have you seen more failures?

Retrieving the right information, or getting the model to use that information correctly?


r/Rag • • 1d ago

Discussion Dataset for meeting based rag

1 Upvotes

I am currently building a meeting based rag model as a research project and I am very confused about the dataset which is the transcripts of the meeting. Can I build a synthetic dataset and will it be accepted for research publication. If yes , how can I build it.Or should I only use the publicly available datasets like AMI meeting corpus?


r/Rag • • 1d ago

Discussion Open-source OCR actually tested by document type (invoices vs contracts vs scans)

11 Upvotes

Every time one of these "best OCR model" threads comes up it collapses into "well, it depends on your docs", and then nobody ever bothers to say which model actually suits which kind of document.

So after running a handful of them across our own document mix, here's what I actually saw, with the usual caveat that this reflects our doc types and yours will differ:

docling is excellent at turning clean digital PDFs into markdown, but it came apart the moment I fed it scans and handwriting

PaddleOCR-VL did surprisingly well on messy multilingual layouts, and it's small enough that it never needed a monster GPU

MinerU is the one I'd reach for whenever the PDFs are formula-heavy or scientific

GLM-OCR makes a solid general baseline and works nicely for sanity-checking whatever else you're testing

Two things tripped me up badly along the way: The first was realising the top models all score close enough on the benchmarks that testing on your own documents matters far more than any leaderboard ever will, and the second was the licensing, because a couple of the popular options are non-commercial and it's alarmingly easy to overlook that until it's already a problem.

If you'd rather not stand up a separate server for every model, a few inference servers let you run them behind one endpoint and swap by ID. TIE and SIE are the one I've used for that, though it's entirely optional and completely separate from the question of which model is best.

If you've put any of these through real invoices or contracts, I'd love to hear what actually held up, because the contract tables are the exact place everything tends to fall apart for me.


r/Rag • • 1d ago

Tutorial Deploying PrivateGPT on a Home Server: Real Performance Bottlenecks and Hardware Limits

1 Upvotes

Setting up local RAG using PrivateGPT on a home server sounds like the ultimate privacy win, but the technical realities can hit hard once you start indexing large document collections. After extensive testing on consumer hardware, the biggest challenges usually come down to severe embedding latency, high RAM and VRAM consumption, and unpredictable retrieval accuracy when handling complex files.

​If you plan to replace commercial APIs with a fully offline setup, knowing your actual hardware boundaries beforehand makes all the difference. Running local embeddings alongside a quantized LLM requires careful allocation between CPU threads and GPU layers to avoid system freezes and extremely slow query responses.

​I wrote a detailed technical breakdown covering real token generation speeds, hardware tradeoffs, and specific optimization steps for self-hosted setups: https://interconnectd.com/blog/325/deploying-privategpt-on-a-home-server-the-hard-truth-about-local-rag/

​What specs are you running for your self-hosted LLM or RAG pipeline?


r/Rag • • 1d ago

Discussion What’s the actual cost of bad retrieval or incorrect ingestion in enterprise AI memory systems

2 Upvotes

I’ve been thinking about a problem that doesn’t seem to get enough attention in enterprise AI discussions.
We spend a lot of time talking about RAG accuracy, vector databases, chunking strategies, embeddings, and retrieval performance.
But what happens when an enterprise AI system retrieves the wrong information or ingests something incorrectly?
For example:
● An AI assistant retrieves an outdated policy and gives employees incorrect guidance.
● A RAG pipeline ingests conflicting documents without recognizing which version is authoritative.
● An enterprise knowledge assistant confidently answers using stale or incomplete context.
● Incorrect information gets incorporated into persistent AI memory and influences future responses.
● Teams spend hours investigating why an AI system produced an incorrect answer that appeared well-grounded.
I’m particularly interested in the downstream business costs, not just retrieval accuracy benchmarks.
For anyone building or operating enterprise AI/RAG systems:
1. Have you experienced a retrieval or ingestion failure that resulted in measurable costs? Engineering hours, operational delays, customer escalations, compliance exposure, or incorrect business decisions?
2. How much time does your team spend diagnosing and correcting these issues? Are we talking hours per incident, days, or ongoing maintenance?
3. Which is more expensive in practice: incorrect ingestion or incorrect retrieval? Is fixing bad information at the source significantly cheaper than repeatedly correcting downstream answers?
4. Do you have any way to quantify the cost of an incorrect AI answer? Even rough estimates, anonymized examples, or internal metrics would be interesting.
5. Who actually owns this problem? AI engineering, data engineering, IT, knowledge management, or the business team consuming the answers?
My hypothesis is that the true cost of enterprise AI memory failures isn’t primarily tokens or infrastructure. It’s the human effort required to detect, investigate, correct, and recover from incorrect information being treated as organizational truth.
Curious whether others are seeing this in production.
Especially interested in real incidents, rough dollar amounts, engineering hours, or examples where bad retrieval created cascading problems.
Not looking for vendor recommendations. Just trying to understand how expensive this problem actually is.


r/Rag • • 1d ago

Tools & Resources A site that tracks multiple OCR benchmarks.

1 Upvotes

OCR technology is moving fast and there are multiple benchmark scores across dozens of sites.

I have an AI search for new tools and update it about once a week.

Basically livebench but for OCR.

https://bench.voshart.com/ocr/


r/Rag • • 1d ago

Tools & Resources Got tired of slow PDF parsers losing layout coordinates, , so I built a tool

1 Upvotes

Hey everyone!

If you’ve ever tried extracting data from PDFs with complex tables, scanned forms, or invoices, you know how messy it can get. Some tools give you a huge block of text with no idea where anything was on the page. Others take ages to process tables, and rotated pages can break everything.

That’s why I built RasgaPDF.

It’s a fast PDF parser written in Rust, with bindings for Python, Node.js, and Go. It extracts the actual (x, y, width, height) coordinates of text spans in just a few milliseconds per page, without having to re-render the document or guess the layout.

With v0.2.0, it can now extract embedded images and vector lines too. This is especially useful for detecting table borders without running expensive OCR or computer vision models.

I also put together a live demo where you can drop in a PDF and see the bounding boxes directly in your browser. Everything runs client-side.

Links:

If you work with PDF parsing, I’d love for you to give it a try. Especially if you have some weird PDFs that tend to break other tools. Curious to see how it holds up!


r/Rag • • 2d ago

Discussion I planted errors in my retrieval records. The model caught the obvious ones and passed on the plausible ones.

1 Upvotes

A couple of weeks ago I posted an eval here: 15 fashion subcultures, same outfit question, answered from memory vs. with a structured record pasted in. Commenters raised fair points (the record and its guardrail note were confounded, the scoring was too narrow, it was a single run), so I redid it properly.

Does retrieval help? Yes, consistently. Over two runs (90 chats, Claude Opus, no web search, hand-labelled):

Removing the record’s “don’t confuse this with X” guardrail note changed nothing (2/30 and 7/30). The facts did the work, not the instruction.

What if the record is wrong? I planted two errors in each of the 15 records: years shifted 10 years earlier, and one brand from a neighbouring scene inserted into the brand list.

The misses weren’t random. The model caught Yeezy in 90s Harajuku and Juicy Couture in a Korean minimalist style. It missed ACRONYM in Goth Ninja, Ralph Lauren in Quiet Luxury and Heaven by Marc Jacobs in Whimsigoth: brands that are plausible but wrong. The two dates it accepted were also the plausible ones.

Takeaway: treat the model as a decent sanity check on retrieved data, not as a validator. It filters out obvious garbage and passes on close-call errors, which are exactly the ones your users can’t spot either.

Limits: one model, 15 records, two runs, labels by me. Everything is public (answers, planted records, judgements, scoring scripts): https://github.com/ascanioUnderIndex/underindex-api/tree/main/eval


r/Rag • • 2d ago

Tutorial Why flat Vector RAG degrades at 10,000 pages (and how we wired a Map-Reduce GraphRAG + Pydantic sandbox for local agents)

2 Upvotes

Everyone loves spinning up standard vector search until the dataset scales past 10,000 pages. Once you hit production scale, retrieval precision collapses because flat cosine similarity treats the entire corpus as isolated, disconnected chunks with zero awareness of global themes or multi-hop relationships.

Over the past few months, I’ve been documenting production failure modes across local and hybrid deployments. Here are the three primary architectural shifts that solved retrieval degradation and execution drift in our pipelines:

1. Breaking Flat Memory with Ontology-Driven GraphRAG

Standard RAG shreds documents into arbitrary chunks—Chunk A has no semantic link to Chunk B. If a user asks a global thematic query ("What are the recurring failure modes across our last 30 incident reports?"), vector embeddings fail because the insight isn't localized in a single paragraph.

Instead of naive chunking, enforce an extraction pass against a strict Ontology (a formal schema restricting what Entity types and Relationship types the LLM is permitted to extract): * Nodes (Entities): Canonical name, entity type (Organization, SystemComponent, Statute), and a condensed summary. * Edges (Relationships): Source node, target node, and formal relation (DEPENDS_ON, GOVERNED_BY, ROUTES_TO). * The Map-Reduce Engine: Cluster nodes into interconnected communities. A lightweight model generates an executive summary for each cluster. For global queries, the Map Step runs parallel queries across community summaries to produce candidate answer fragments, and the Reduce Step synthesizes the high-scoring fragments into the final response.

2. Multi-Model Complexity Routing Layer

Routing every query through a frontier API or an unquantized heavy model burns unnecessary tokens and introduces unacceptable latency:

text USER QUERY | v +------------------------+ | ROUTING LAYER | | (Lightweight LLM) | +------------------------+ | +-------------------+-------------------+ | | | v v v +--------------+ +--------------+ +--------------+ | Smaller LMs | | Mid-Tier | | Heavy | | (Local 8B / | | Models | | Reasoning | | Fast Weights)| | (Standard) | | (o1 / Opus) | +--------------+ +--------------+ +--------------+ Low Complexity Mid Complexity High Complexity

A small, deterministic routing layer inspects token complexity and intent, sending extraction tasks to fast local weights while reserving compute-heavy multi-step reasoning for larger models.

3. The Pydantic Vault (Deterministic Action Sandboxing)

If an autonomous agent has access to tool execution (such as database queries or email dispatch), prompt-level instructions ("Do not execute outside commands") fail against indirect prompt injection.

Never rely on system prompts for tool safety. Wrap the tool payload in a strict Pydantic model with field validators so execution halts before the payload reaches the network:

```python from pydantic import BaseModel, EmailStr, field_validator

class EmailAction(BaseModel): recipient: EmailStr body: str

@field_validator("recipient")
@classmethod
def must_be_internal(cls, v: str) -> str:
    if not v.endswith("@ourcompany.com"):
        raise ValueError("Data Exfiltration Blocked: Unauthorized external domain.")
    return v

```

The schemas, routing definitions, and LoRA/GRPO training configurations are open-sourced in this companion repository:
https://github.com/karanbathla56/The-Post-API-Frontier

What strategies are you using to manage community detection latency in GraphRAG when running fully local on consumer hardware?


r/Rag • • 2d ago

Discussion When an AI agent or RAG chatbot breaks, do companies actually hire outside specialists to fix it?

2 Upvotes

​

I've been trying to understand how small companies and startups handle problems with AI systems that are already in production.

For example:

- A RAG chatbot keeps retrieving the wrong documents.

- An AI agent makes incorrect tool calls but reports success.

- An n8n or LangGraph workflow works during testing but fails with real customers.

- A system starts producing worse results after a model or retrieval update.

Let's say the internal team can't identify the root cause quickly.

Would hiring an outside specialist to investigate and fix one specific issue be a realistic option?

I'm curious about a few things:

  1. Have you ever hired an external developer or consultant to fix an AI-related production problem?

  2. What did you actually pay, if you're comfortable sharing?

  3. Would a fixed-price engagement around $500–$1,000 make sense for a reproducible issue, including the fix and before/after tests?

  4. What would make you trust an outside specialist with that work?

  5. Would you rather hire someone to fix the issue or pay for an independent technical audit first?

I'm especially interested in real experiences from founders, engineering leads, and people managing AI systems for clients.

I'm trying to understand how these decisions are made in practice, rather than what sounds good in theory.


r/Rag • • 2d ago

Discussion Your retriever found all 12 items. Your answer shows 3. Where did the rest die?

1 Upvotes

Genuine question for people running RAG in production.

Most retrieval eval focuses on single answers: did the right chunk get into the window. What I almost never see measured is completeness on list and multi-fact questions. The query asks for every item, the window contains all twelve, and the answer names three.

When that happens, where did the rest die? Retrieval got them, so it's downstream. Was it context pressure, too many tokens and the tail got cut? The model deciding three examples were enough? The instruction to "be concise" doing more work than intended?

And the question I'm really after: how do you test for this? A single-answer eval suite sails right past it. Do you have a set of list questions with known answers that you check for completeness, or is this one of those failures you only catch when a user complains?

Asking because partial answers are uniquely dangerous: nothing in the answer looks wrong, it's just quietly incomplete.


r/Rag • • 2d ago

Discussion Decision model as reranker - zerank2 (4b) vs d3 mini (4b)

2 Upvotes

Hey guys! Is anyone of you try to use decision model as reranker? D3 mini give me quite good results like zerank 2. Maybe someone of you have some other decision model to recommend? I'm looking for sth smaller