Fix: Add missing name_embedding field to community search queries (#664)

Enhanced queries in search_utils.py to include 'name_embedding' field in community full-text and similarity search functions.
This commit is contained in:
James. 2025-07-02 16:45:25 +01:00 committed by GitHub
parent 5c0f1baf07
commit 7ce07942b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1944 additions and 1961 deletions

View file

@ -539,7 +539,8 @@ async def community_fulltext_search(
comm.group_id AS group_id,
comm.name AS name,
comm.created_at AS created_at,
comm.summary AS summary
comm.summary AS summary,
comm.name_embedding AS name_embedding
ORDER BY score DESC
LIMIT $limit
"""
@ -589,7 +590,8 @@ async def community_similarity_search(
comm.group_id AS group_id,
comm.name AS name,
comm.created_at AS created_at,
comm.summary AS summary
comm.summary AS summary,
comm.name_embedding AS name_embedding
ORDER BY score DESC
LIMIT $limit
"""

3899
uv.lock generated

File diff suppressed because it is too large Load diff