SShortSingh.
Back to feed

Hybrid Semantic Search: Keyword Plus Embeddings and Rerank for Docs Chatbots

0
·1 views

Use hybrid retrieval for a docs chatbot that turns healthtech sales-call summaries into CRM actions: collect keyword and embedding candidates, fuse them, then rerank the shortlist before asking a chat model to write anything. The deciding constraint is per-tenant cost visibility. Retrieval must be attributable to one tenant, and the expensive stages must operate on a small, bounded set. TL;DR: exact matching protects product names, contract IDs, and legal terms; embeddings recover paraphrases; reranking decides which passages deserve context space. Keep chat completions last.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

I vibe-coded a cassette deck for family memory — K7 Mémoire (Sanity Challenge Path 2)

I vibe-coded a cassette deck for family memory — K7 Mémoire (Sanity Challenge Path 2) Author: Chaminade (Dondah Chamiande Adjolou) · Lomé, Togo Challenge: Sanity Challenge Path 2 — Vibe-code something strange (Sep 18–Oct 4, 2026 PDT) Tag: #sanitychallenge Live deck: https://k7-memoire.vercel.app Embedded Studio: https://k7-memoire.vercel.app/studio Sanity project ID: nh4vx26w · Dataset: production In Lomé, family history often travels by voice before it travels by page. I did not want another blog layout for that. Path 2 of the Sanity Challenge asks for something strange — so I vibe-coded K7 M

0
ProgrammingDEV Community ·

How to Build an AI Research Agent With Citations

Day 2 of 30 Days of Search for AI Agents. I want a research agent to give me something I can check. For each finding, I should be able to open the original document and decide whether it supports the statement. A bibliography at the bottom leaves too much detective work to the reader. Quick Summary: To build an AI research agent with citations, give it a scoped question, retrieve evidence, and keep each finding attached to its supporting sources.

0
ProgrammingDEV Community ·

Nobody in our app ever sees the Stripe customer portal, and four verbs are the reason

Nakodo has three plans, and the pricing page makes a promise in its FAQ: "Can I change or cancel my plan? Yes, any time in Settings. If you move to a smaller plan, your extra campaigns are paused rather than deleted." The fastest way to half-keep that promise is a button that opens the Stripe customer portal. We do not do that, and the decision has earned its keep. This is the shape we ended up with.

0
ProgrammingDEV Community ·

SQL Transactions

SQL Transactions A deep-dive walkthrough of database transactions — covering the ACID properties as precise, individually meaningful guarantees, BEGIN/COMMIT/ROLLBACK mechanics and savepoints, isolation levels and the specific concurrency anomalies (dirty reads, non-repeatable reads, phantom reads) each one prevents or permits, locking and how it underlies isolation, deadlocks and how to reduce them, the write-ahead transaction log as the mechanism behind durability, the real costs of long-running transactions, and how all of this maps onto EF Core's SaveChanges and explicit transaction APIs.