SShortSingh.
Back to feed

One bug class, four fusion modes: finding cache corruption in QueryFusionRetriever

0
·14 views

What happened On 2026-10-03, michaelswissa filed a bug in llama_index: QueryFusionRetriever corrupts rankings when a caching retriever returns shared NodeWithScore wrappers. Relative and distance-based fusion normalize scores in place, so a wrapper shared across queries gets normalized for one result set and then read back as if it were another's. His patch (#23333) fixes two of the four fusion modes. While reviewing it, I extended his reproduction script to all four modes — and the same mutation class was live in the other two: reciprocal_rerank writes fused scores back into the retriever's o

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 ·

Database Connection Pooling Fixes Common Go API Performance Issues

Go applications often encounter database connection errors under real traffic due to a lack of proper connection pooling. A common mistake is opening and closing a new database connection for each HTTP request, which quickly exhausts database limits. The solution is to create a single, shared database connection pool at application startup and configure it correctly. Key configuration parameters include setting maximum open and idle connections, along with connection lifetimes. Properly tuning these settings prevents the API from overwhelming the database and improves performance under load.

0
ProgrammingDEV Community ·

Technical architecture detailed for large-scale AI valet trash command center

Quiet Hours Valet developed a command center managing eight concurrent AI voice agents, five frontend pages, and eight automation workflows. The system uses Supabase Edge Functions to trigger VAPI webhooks and relies on an eight-table Postgres database schema. The architecture supports a vertically integrated waste services operation running on self-hosted infrastructure. The article serves as a reference for building multi-agent systems using Asterisk PBX, VAPI, or Postgres with Supabase for voice automation.

0
ProgrammingDEV Community ·

Python script automates weekly sales reports from CSV data

A guide details how to build a free Python script that generates weekly sales reports automatically. It reads data from a CSV file, compares the current week's performance to the previous week, and formats a summary. The report can be delivered via email, Discord, or a GitHub Actions page, with email being the most complex to configure. The script highlights data integrity by noting when rows are skipped due to unreadable information. This automation targets repetitive, data-driven tasks where human error is a risk.

0
ProgrammingDEV Community ·

MongoDB 8.3's arrayIndexAs feature reduces aggregation overhead by up to 31%

MongoDB version 8.3 introduced a new feature called arrayIndexAs for its $map aggregation operator. This eliminates a previous workaround where developers had to manually construct index ranges and use $arrayElemAt to access array positions. Performance tests showed the new method reduces execution time by 15-30% for arrays with tens of thousands of elements. The efficiency gain is most pronounced in sequential operations, though it diminishes slightly under concurrent loads. This optimization addresses a long-standing inconvenience in MongoDB's aggregation framework.