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:
parent
5c0f1baf07
commit
7ce07942b1
2 changed files with 1944 additions and 1961 deletions
|
|
@ -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
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue