Fix retriever: convert embedding to pgvector string format

main
Clawd 3 weeks ago
parent 773199bcb6
commit 5206a2c98e

@ -30,8 +30,11 @@ async def hybrid_search(
"""
start = time.monotonic()
# Convert embedding list to pgvector string format
embedding_str = '[' + ','.join(str(x) for x in embedding) + ']'
tag_filter = ''
params: list = [embedding, query, limit * 2, threshold]
params: list = [embedding_str, query, limit * 2, threshold]
if tags:
tag_filter = 'AND d.tags && $5'

Loading…
Cancel
Save

Powered by TurnKey Linux.