SShortSingh.
Back to feed

Hybrid Search Plus LLM Reranking Lifts Knowledge Base Recall to 0.87

0
·1 views

A four-part experiment tracked the rebuilding of the Cerebras knowledge base, progressively expanding the document corpus from roughly 3,700 to 16,315 items and the evaluation set from 22 to 31 questions. Pure vector search consistently outperformed hybrid search in top-1 and MRR metrics until a reranking step was introduced in the final phase. Adding an LLM reranker over the fused top-20 hybrid results pushed recall@1 from 0.39 to 0.87 and recall@3 to 0.94, marking the first clear overall improvement. Corpus distillation and comment-bursting raised the recall ceiling at deeper ranks but hurt precision at the top by removing exact error strings from embeddings. The data confirms that hybrid retrieval alone is not a reliable upgrade over dense vector search when query signals are diffuse or answers reside in code chunks.

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 ·

Beginner Walks Through Deploying a Web App Live on AWS Using EC2

A developer shared a step-by-step account on DEV Community of deploying a personal app to the internet for the first time using Amazon Web Services. The process involved setting up a safer IAM user account, launching an EC2 virtual server instance, and connecting to it remotely via SSH using a downloaded .pem key file. Once inside the server, the developer updated system software, installed required dependencies such as Node.js and Git, and pulled project code directly from GitHub. Environment variables were configured using a .env file edited through the Vim terminal text editor, which the author noted can confuse beginners due to its non-standard input modes. The post aims to demystify cloud deployment for newcomers by describing each technical step in plain, jargon-free language.

0
ProgrammingDEV Community ·

How to Build a Node.js Service That Prints POS Receipts via a REST API

A developer tutorial on DEV Community walks through building a small Node.js service that sends point-of-sale orders to a thermal receipt printer. The setup uses Node 18 or newer, TypeScript, and Express, with no need to install any software directly on the printer. Orders are formatted as HTML and submitted via a POST request to the Receiptful API, which handles the conversion to ESC/POS printer commands. Credentials such as the API key and printer ID are stored as environment variables to keep them out of source code. The guide covers order data modeling, receipt HTML rendering, and wiring the print function to an Express route endpoint.

0
ProgrammingDEV Community ·

Developer builds open-source tool to keep LLMs out of financial fact-checking

A developer has released OpenThesis, an open-source desktop application designed to separate deterministic financial analysis from AI-assisted reasoning during company research. The tool ingests official filings from US SEC EDGAR, mainland China's CNInfo, and Hong Kong's HKEXnews rather than relying on a language model's memory or general web searches. Extracted financial facts are assigned reference IDs, and AI agents are required to cite those IDs when making factual claims, making unsupported assertions easier to flag. Calculations such as margins and reverse-DCF valuations are handled in regular code, so missing values cannot silently default to zero or distort the analysis. The project, licensed under Apache 2.0, aims to make research failures more visible and traceable rather than eliminating them entirely.

0
ProgrammingDEV Community ·

Developer builds AWS-powered dog detector app scoring 20/20 in weekend challenge

A developer built a webcam-based image classifier called 'Dog or Not: Lite' for the AWS Weekend Challenge, using Amazon Nova Lite via the Bedrock Converse API and deploying it on Amazon Lightsail in us-east-1. The app, built on FastAPI with Python 3.13, achieved a perfect 20/20 score on its test set with a median response time of 880 milliseconds per scan. The entire backend runs in just 285 lines of code with no build step or frontend framework, using a single HTML page and one API endpoint. The developer documented several AWS-specific pitfalls, including Lightsail's lack of IAM task roles requiring credentials via environment variables, cross-region inference profile authorization issues, and silent architecture mismatches when deploying non-amd64 container images. The app's classification logic is deliberately strict, recognising only living domestic dogs as true positives and excluding wolves, toys, statues, and costumes.