mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-12 21:02:13 +02:00
fix(filesystem): use summary projection for default semantic search
Route default semantic search to the summary projection when summary is the only populated semantic channel.
This commit is contained in:
parent
3519adfbd1
commit
ad45f96dfa
2 changed files with 67 additions and 0 deletions
|
|
@ -130,6 +130,8 @@ class HybridProjectionSearchBackend:
|
|||
if self._channel_document_count(channel) > 0
|
||||
)
|
||||
if not channels:
|
||||
if self._channel_document_count("summary") > 0:
|
||||
return self.search_channel("summary", query, limit=limit, filters=filters)
|
||||
return []
|
||||
channel_hits = self._search_channels(
|
||||
query=query,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue