r/Rag • • Sep 02 '25

Showcase 🚀 Weekly /RAG Launch Showcase

35 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 • • 1h ago

Discussion What is the most common failure you've encountered when deploying RAG in production?

2 Upvotes

I've been thinking about the gap between a RAG demo and a production RAG system.

In a demo, things often look simple:

  1. Upload documents.
  2. Create embeddings.
  3. Retrieve relevant chunks.
  4. Send them to an LLM.
  5. Display an answer with citations.

But production systems introduce much harder problems. For example:

  • Retrieval returns relevant-looking but incomplete context.
  • The LLM combines facts from unrelated passages.
  • The answer includes conclusions that aren't supported by the sources.
  • Citations exist, but don't actually support individual claims.
  • The system answers questions even when the available evidence is insufficient.

I'm particularly interested in the difference between citation validation and actual semantic grounding—a citation can point to a real document while still failing to support the statement associated with it.

For those who have worked on production RAG systems, what has caused you the most trouble?

  • Retrieval quality
  • Chunking and document structure
  • Hallucination detection
  • Citation and evidence verification
  • Evaluation and monitoring

I'm interested in practical experiences and engineering approaches, especially failures that weren't obvious during initial testing.


r/Rag • • 15h ago

Discussion Graph + vector RAG: when the extra hop actually helps, and when it's just extra latency

8 Upvotes

There have been a lot of "we added a knowledge graph to our RAG" posts lately, and far fewer about whether it was worth it. The rule of thumb I've ended up with: the graph helps when the answer depends on a relationship that isn't written down in any single chunk. When the answer sits in one passage, the graph mostly adds latency, extraction cost and new ways to be wrong.

Query shapes where the hop pays off

  • Multi-hop facts. "Which suppliers of our top-5 customers had a quality incident last year?" No chunk contains that. Vector search finds the incident reports or the customer list, rarely both, and never the join.
  • Aggregation over entities. "Which teams own services that depend on the auth service?" You need all of them, not the top-k most similar.
  • Disambiguation. Two people or products with the same name. With resolved entities, the graph knows they're different nodes. Embeddings happily blend them.
  • Path and cycle questions. "How is X connected to Y?" or "is there circular ownership?" That's a traversal, not a similarity search.

Query shapes where it doesn't

  • "How do I configure X?" / "What does policy Y say about Z?" The answer is in one or two passages, and a decent hybrid retriever + reranker gets it.
  • Summaries of a single document.
  • Corpora with few named entities (narrative text, opinion pieces). Entity extraction produces a sparse, noisy graph, and you pay for it on every ingest.

How to tell before building one

Take 100 real questions and label each one: is the answer in a single chunk, or does it need facts from two or more documents linked by an entity? Run your current retriever and check recall@10 on the gold chunks, split by those two groups. If single-chunk questions are most of your traffic and recall there is fine, a graph won't move your numbers much. If the multi-hop group is big and its recall is low, that's your case for one.

If you build it, what matters most

  1. Entity resolution is the whole game. "IBM", "International Business Machines" and "IBM Corp." as three nodes break every traversal. Put more effort into resolution than into extraction.
  2. Keep the graph pointing back to chunks. Every edge should carry the ID of the chunk it was extracted from. Traverse to find the relevant entities, then give the LLM the source chunks, not just the triples. Triples lose the qualifiers ("in 2023", "pending approval") the answer often depends on.
  3. Route instead of always hopping. A cheap classifier, or the LLM with a short rubric, decides per query: plain retrieval, or entity lookup + 1–2 hops + retrieval over the connected chunks. Most queries should take the cheap path.
  4. Cap the hops. Two hops is usually the useful limit. Beyond that the neighbourhood explodes and you fill the context with loosely related entities. Rank neighbours by edge type and recency instead of taking all of them.
  5. Measure the graph itself. Check extraction precision on a sample (are the edges true?) and count resolution errors (wrongly merged or split entities). A bad graph makes answers confidently wrong, which is worse than a missed retrieval.

A cheaper middle ground covers a surprising share of multi-hop cases. Store the extracted entities as metadata on each chunk and retrieve in two stages: retrieve, collect the entities in the top results, then retrieve again, filtered to chunks that mention those entities. There's no graph database, and you find out whether the hop helps before you commit to one.

Curious what query types pushed others into graphs, and whether anyone has measured routing against always-hop.


r/Rag • • 10h ago

Discussion LangGraph JS vs Vercel AI SDK + Inngest for multi-agent workflows?

1 Upvotes

I'm planning to build a multi-agent workflow and started looking at LangGraph JS, but honestly it feels like too much. Lots of abstractions, and I keep feeling the overhead more than the benefit.

So I'm thinking of going with the Vercel AI SDK for the agent and LLM side, and Inngest for orchestration and durable steps.

For anyone who's used either one in a real project:

  • Did LangGraph JS's complexity actually pay off later?
  • How was AI SDK + Inngest for handling state, retries, and agent handoffs?
  • Any pain points you hit that might help me decide?

Would really appreciate hearing about your experience.


r/Rag • • 21h ago

Discussion Best way to make ChatGPT explain an uploaded book strictly, without going outside the book?

4 Upvotes

I want to study using ChatGPT because its explanations are very good. My exams are approaching, so I don't have much time.

My goal is to upload my textbooks and have ChatGPT:

Explain every topic in simple language.

Follow the uploaded book strictly.

Avoid adding information from outside the book.

Cover all important points without skipping anything.

The problem is that ChatGPT sometimes adds information that isn't in the book. NotebookLM stays closer to the source, but I don't find its explanations as good as ChatGPT's.

I asked ChatGPT how to solve this, and it suggested building a RAG system and buying the ChatGPT API.

Is building a RAG system and using the API the only solution, or is there a better and easier alternative?

I'd appreciate practical suggestions.


r/Rag • • 14h ago

Tools & Resources IR evals for your RAG retriever without any model calls

1 Upvotes

When a RAG answer is wrong, the cause is often retrieval: the right chunk never reached the model. An LLM judge that grades the final answer won't show you that, and you pay for a model call on every query.

Evret scores only the retriever. You give it queries and the doc IDs each query should return. It computes Hit Rate, Recall, MRR, nDCG, ERR, and RBP at k by comparing doc IDs, so it makes no model calls.

It works with Qdrant, Chroma, Weaviate, Milvus, Elasticsearch, LangChain, LlamaIndex, and Haystack.

🔗 GitHub: https://github.com/kaivid-labs/evret


r/Rag • • 18h ago

Discussion file:line is not a citation, it is a contract

0 Upvotes

I run a local index over a codebase, and for the first weeks I treated the file:line on every answer as a nice-to-have - a citation that makes the answer feel credible. That was wrong, and it cost me a regression that a score hid. On my corpus that is 930 files, 6701 symbols and 92409 edges over about 1440 revisions, and the address is the part that makes the answer checkable.

A citation you can ignore, a contract you cannot.

When the index answers "function X calls Y", the useful sentence is not "X calls Y". It is "X at src/x.ts:42 calls Y at src/y.ts:17, edge stated from a call expression". The address turns the answer into something a second actor can verify without re-reading the whole codebase: open the file, look at the line, confirm. If the line is gone, the answer is wrong no matter how confident the prose is.

That is the contract: every claim carries its own address, and a claim without an address is not a claim, it is a rumor.

Where it broke.

Once, a model change made the answers shorter and more readable - and dropped the addresses. The quality score went up, because the text read better. The thing I actually needed, the ability to open the file and confirm, disappeared silently. Two days of "the answers feel right but I cannot trust them" before I connected the missing addresses to the change.

The fix was not "remind the model to cite". It was an assertion in the pipeline: every fact in the answer must map to an address that exists in the current revision, or the answer is rejected. The score stopped being able to rise while the contract fell.

Three assertions that do the work.

  1. The address must resolve. A file:line that points at a file or line that no longer exists in the current revision is a stale answer, served as a stale status, not as a fact. If the file changed after indexing, the index refuses to answer from it until it is reindexed.
  2. The address must be the current revision. An answer carries the revision it was indexed against. Two answers can be identical in text and different in truth, because the file moved; the revision is what tells them apart.
  3. A case is a case, not an average. On 14 fixed navigation tasks, one flaky case moved the average by 7 points. The rule is "no previously passing case may fail", and it caught two regressions the average hid, both in tasks I was not looking at.

The uncomfortable part: none of these are about the model. They are about refusing to ship an answer that cannot be opened and checked. A file:line is the cheapest verification I have, and treating it as decoration was the most expensive mistake of the month.


r/Rag • • 20h ago

Tools & Resources Compaction and prompt caching are one decision, not two. I built an open-source package that fits both to your own traffic

1 Upvotes

Most tools handle context compaction and prompt caching separately, or link them with fixed rules. But each one changes what the other is worth:

  • Compacting rewrites the prompt prefix, so it throws away the cache you were paying to keep.
  • Keeping a cache warm costs in proportion to the prefix, so it depends on what you kept.

They should be decided together, with two goals: the lowest cost per run, and a request that still holds what the model needs.

What it costs as a chat grows

A modeled 30-turn chat on Claude Sonnet 5.5. It is retrieval-heavy: 25k tokens of retrieved text per turn. Sending the whole history with prompt caching, each turn costs more as the chat grows: from 8 cents to about a dollar. OpenClaw's defaults level off around 28 cents once it starts clearing old tool results. compache stays near 12 cents a turn. For the whole chat: $16.48, $7.69 and $3.47. Lighter chats cost less on every line, and reach OpenClaw's thresholds later or not at all.

The best policy is different for every app

It depends on how long your users are away, what later turns need from earlier ones, and your model's prices and cache rules. Same chats and same model, fitted for three kinds of users:

Users come back afterWhat the fit chose
30 seconds5-minute cache, no pings
4 minutes5-minute cache, up to 3 pings
30 minutes1-hour cache

Modeled on conversations the fit had not seen, that cost 30% to 70% less than the best cache-only setting.

compache fits two things on your own traces.

Fit 1: what to keep when compacting

A turn adds three kinds of content: the question, the retrieved text and the answer. From your traces, compache measures two things for each kind: how many tokens it adds, and how far back later turns reach for it. Content that is large and rarely needed again goes first. Content that is small or often needed stays.

In the sample chats, retrieved text is 95% of the history, but only about one turn in eight needs any of it again. Questions and answers are the other 5%, so keeping them is nearly free. The fit keeps questions for 4 turns, answers for 9 and retrieved text for 1. With that, 82% of the turns that need history still have it in the request. The rest fetch it back, and that call is in the cost.

Fit 2: when to keep the cache warm, when to compact

From the timestamps in your traces, compache measures how long users stay away at each point in a conversation. With that it makes two decisions:

  • After every answer: let the cache lapse, or send a tiny ping to keep it warm. A ping is sent when that costs less than losing the cache.
  • On every new message: send the history as it is, or cut. A cut waits for a return that finds the cache expired. The prefix has to be written again then anyway, so the cut costs nothing extra.

In one 26-turn sample chat, the user was back within the 5-minute cache lifetime 13 times, a ping bridged a longer pause 4 times, and the history was cut on 8 returns to an expired cache. The last request was 25k tokens instead of 89k.

The calculator

Neither fit is tuned by hand. Every input can be measured from your traces or read from a price sheet: tokens per turn, thread length, time away, what later turns need, prices, cache lifetime. compache prices every candidate policy on your own conversations by the provider's cache rules, and the cheapest one wins. So it is a calculation, not a guess.

The cost calculator does the same in your browser. Give it your workload and it shows the cheapest policy. Click any turn of a conversation to see the expected cost of cutting or not, and of each number of pings. You can drop a chat log on it: it is read in your browser and sent nowhere.

Try it

pip install compache
compache demo      # four sample chats, no API key

In your own app it is one line around the client you already have:

client = compache.wrap(Anthropic(), "policy.json")

You first run it in record mode, which keeps sizes and timings and never text. Then compache fit writes the policy that this line applies. For a coding agent: compache wrap claude.

Live, as billed on Claude Haiku 5.5: $2.68 → $1.45 per 1,000 messages for a document chatbot, with answers right as often. Where it does not help: short chats, and models whose cache outlasts your users' breaks (2% to 5% on GPT-6 Luna).

Repo (Apache-2.0, no dependencies): https://github.com/BarendPotijk/compache


r/Rag • • 1d ago

Discussion Title: Best approach for retrieving relevant columns from large SQL tables in a Text-to-SQL agent?

2 Upvotes

I'm currently working on designing a Text-to-SQL agent for executives. The goal is to allow executives to ask natural language questions about our database and get accurate answers through SQL queries generated by an LLM.

One of the challenges I'm facing is column selection when dealing with large tables.

Some of our tables have 100+ columns. Out of these, perhaps 60–70 are commonly used, but the remaining columns could also be important depending on the question. Since I don't know all the possible questions executives might ask, I don't want to permanently exclude any columns.

My current workflow looks something like this:

  1. The LLM selects relevant tables based on their descriptions.
  2. Once the tables are selected, I need to provide their relevant columns to the LLM.
  3. Passing all 100+ columns from each table would increase the context size and introduce a lot of noise, making it harder for the LLM to identify the correct columns.

My proposed approach: Semantic column retrieval

For every table, I maintain a YAML file containing metadata for each column.

For example:

- table_id: SILVERBLADEBI.PRD_FACT_PAYMENT
  column_name: OVER_DUE_AMT
  data_type: NUMBER(15,2)
  is_nullable: true
  description: "Amount of the credit facility that is past its due date at the reporting month."
  synonyms:
    - overdue amount
    - past due
    - arrears amount
    - delinquent amount
  sample_values: null
  foreign_key: null

My idea is to:

  1. Generate embeddings for column descriptions, synonyms, and other relevant metadata.
  2. When a user asks a question, perform semantic similarity search against the columns of the selected tables.
  3. Retrieve the top relevant columns and pass only those to the LLM.
  4. The LLM generates SQL using the retrieved schema.

However, I have a few concerns:

  • Is maintaining business descriptions, synonyms, and usage information for every column worth the effort, especially when tables have 100–200+ columns?
  • Semantic similarity alone might miss columns that are indirectly relevant to a question.
  • How do I handle columns that are important for joins, filters, aggregations, or calculations but aren't semantically similar to the user's question?
  • What happens when the user asks a question involving a column that wasn't retrieved?

My questions:

  1. Is semantic column retrieval a good approach for large-schema Text-to-SQL systems?
  2. Are there better approaches, such as hybrid retrieval (keyword + semantic search), schema linking, or multi-stage retrieval?
  3. How would you design column retrieval to minimize irrelevant columns without missing important ones?
  4. Are there any production-grade Text-to-SQL architectures or papers worth studying for this problem?

I'd appreciate insights from anyone who has built Text-to-SQL systems with large enterprise databases.

Thanks!


r/Rag • • 1d ago

Discussion Wie können LLMs organisatorisches Wissen und Geschäftsprozesse besser verstehen?

1 Upvotes

Ich studiere derzeit Wirtschaftsinformatik mit den Schwerpunkten maschinelles Lernen und Business Analytics.
Für meine Bachelorarbeit untersuche ich, wie sich organisatorisches Wissen strukturieren und abrufen lässt, um die Integration von LLMs in Geschäftsprozesse zu unterstützen.
Wenn Mitarbeitende in ein Unternehmen eintreten, entwickeln sie nach und nach ein Verständnis für dessen Prozesse, technische Systeme, Abhängigkeiten und frühere Entscheidungen.
Wie können wir LLMs vergleichbares Kontextwissen vermitteln?
Mit meinem Open-Source-Projekt Octryx experimentiere ich mit Vektorsuche, Wissensgraphen, hybrider Suche, Reranking und Gedächtnissystemen.
Besonders interessieren mich folgende Fragen:
Welche Abrufmethoden eignen sich am besten für unterschiedliche Arten von Wissen?
Wie lassen sich Beziehungen und Abhängigkeiten effektiv darstellen?
Wie kann die Erfahrung einzelner Mitarbeitender in wiederverwendbares Organisationswissen überführt werden?
Wie können wir kontextuelles Verständnis über den Abruf von Dokumenten hinaus bewerten?
Ich würde mich freuen, von euren praktischen Erfahrungen, erfolgreichen Ansätzen und gescheiterten Experimenten zu hören.
Letztlich möchte ich herausfinden, wie KI die kollektive Intelligenz verbessern kann, statt nur die Produktivität Einzelner zu steigern.
https://octryx.ai/research/


r/Rag • • 1d ago

Showcase RAG vs Agentic RAG

6 Upvotes

Started a monthly posting about RAG and AI in general, subscribe for nice discussions

https://substack.com/@aisystemsnotes


r/Rag • • 1d ago

Discussion At what point does cleaning documents for RAG become the actual project?

11 Upvotes

You create a RAG pipeline, link a knowledge base and expect the retrieval system to work as expected. Then reality hits. PDFs with tables, duplicate files, inconsistent names, scanned pages, old documents and bad formatting make extraction difficult. You spend time cleaning and preparing data than building the RAG pipeline itself.

At that point, is the retrieval system the difficult part or is document quality the problem that we constantly underestimate? Where do you draw the line between preprocessing and building a separate data-cleaning system?


r/Rag • • 1d ago

Discussion Can association members use RAG to review their own documents against official guidelines?

1 Upvotes

I've been looking into a slightly different use case for rag. Instead of asking questions about a knowledge base, members would upload their own documents and check them against their associations guidelines. It's something we're exploring with customgpt.ai, my main question is how reliable this gets when there are exceptions or different versions of the same standards, how would you approach this?


r/Rag • • 1d ago

Showcase Do you keep the raw conversation, or only the summary your agent wrote?

1 Upvotes

I built a memory tool called Zenod Memory, so I'm biased here.

I keep the raw voice note and never edit it. An agent writes pages from it. Each line links back to the note.

When a page is wrong, I rebuild it from the raw note. A summary alone gives me nothing to rebuild from.

Do you keep the raw conversation, or only the summary your agent wrote?


r/Rag • • 2d ago

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

25 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 • • 1d ago

Showcase How do you manage chat history in production LLM applications?

1 Upvotes

I've been exploring different ways to manage conversation history in LLM apps.

Appending the entire chat history to every API call works initially, but as conversations grow, token costs increase, context gets cluttered, and important information can get lost.

I experimented with a turn-based 10 + 10 hybrid approach:

  • Maintain a persistent summary of older conversations.
  • Keep the latest 10 turns untouched.
  • Every 5 new turns, condense the oldest 5 into the summary.
  • Prune unnecessary historical tool outputs while preserving the actual responses.
  • Keep the active turn untouched to avoid breaking tool-call sequences.

I've written about the approach and the trade-offs and included a Python implementation using LangChain.

Article: https://medium.com/@anishvv212002/how-to-manage-chat-history-in-llm-apps-the-architecture-i-use-in-production-and-why-naive-efe9a55a570f

Curious to know how others are handling this.


r/Rag • • 1d ago

Discussion A 100-page fetch test run by Octen: Octen Extract 88%, You.com Contents 81%

1 Upvotes

Disclosure: I work at Hackmamba, Octen is a client, and Octen ran this test itself.

The score covers retrieval (did each page come back?), so check parsing quality yourself. It was a single round on Sept 1.

Octen Extract vs You.com's Contents API, Octen listed first:

• 100-page set: 88% vs 81%

• 42 anti-bot pages: 89% vs 90%

• 22 document files: 100% vs 82%

• The 7 PDFs among them: 100% vs 43%, which accounts for the whole document gap

• 10 robustness probes (empty and error pages, oversize pages, a redirect chain and more): 95% vs 55%

Treat the small slices with care, since 7 PDFs and 10 probes are tiny samples. The method notes also say that a single round can't separate tools that are a few points apart, such as 89% and 90%.

The page set and commands are public. A rerun needs a key for each tool you test, plus an LLM key for the judges: https://github.com/Octen-Team/benchmark-for-accuracy

What fails most often in your fetch step?


r/Rag • • 2d ago

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

18 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 • • 2d ago

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

11 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

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 • • 2d ago

Discussion Would you filter log patterns before retrieval instead of cleaning up the top results?

1 Upvotes

I would put a required error signature into the retrieval query before increasing the number of results sent to an LLM.

For a log-search RAG pipeline, semantic similarity and string structure answer different questions. A message can resemble an incident without containing the required error code or placing that code before a timeout. Filtering an already retrieved shortlist can leave too few usable records.

With vector databases like Milvus, regex predicates can express those structural conditions alongside retrieval. The documented implementation uses RE2 and can use an NGRAM index to narrow candidates before checking the full pattern. An index candidate is still not a confirmed regex match.

My current view is that exact values and simple prefixes deserve simpler filters; regex earns its place when order, repetition, or character classes actually matter. I would also test missing values and negation explicitly.

For incident retrieval, what would make you keep pattern matching in the application instead of applying it before the final result limit?


r/Rag • • 2d 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 • • 2d 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 • • 2d 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