* Object lifecycle and semantic search UI tweaks

* prevent console errors for sheet component
This commit is contained in:
Josh Hawkins
2024-09-09 09:33:38 -05:00
committed by GitHub
parent 8be139d4d1
commit f143fceceb
9 changed files with 174 additions and 47 deletions

View File

@@ -379,7 +379,12 @@ def events_search():
n_results=limit,
where=where,
)
thumb_ids = dict(zip(thumb_result["ids"][0], thumb_result["distances"][0]))
thumb_ids = dict(
zip(
thumb_result["ids"][0],
context.thumb_stats.normalize(thumb_result["distances"][0]),
)
)
else:
thumb_result = context.embeddings.thumbnail.query(
query_texts=[query],