8b99ceec3b
Before chunk retrieval, embed the query against bnl_doc_summaries Qdrant collection to identify the most semantically relevant documents. The resulting document IDs are passed as shared_doc_ids to searchAll(), narrowing the shared-corpus chunk search to those documents only. Applied to the 'shared' and 'both' scope paths (not 'private', which has no shared corpus). Non-fatal: on any error preFilterDocIds stays empty and search falls back to current unfiltered chunk retrieval. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>