Skip to content

RAG-fusion runs independent query variants sequentially #785

Closed

Description

@AmitoVrito

Location: src/synapsekit/retrieval/rag_fusion.py:66-71

Problem: for q in queries: await self._retriever.retrieve(q, ...) runs the 4 query variants serially, quadrupling latency. ensemble.py:48-55 already does the gather pattern.

Fix: asyncio.gather the variant retrievals.

Severity: Medium (performance). Found in production-readiness audit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions