Skip to content

Commit

Permalink
fix(agents-api): Fix search embeddings query to avoid snippets with e…
Browse files Browse the repository at this point in the history
…mbedding == null

Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Oct 15, 2024
1 parent 52796e1 commit 12978b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agents-api/agents_api/models/docs/search_docs_by_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def search_docs_by_embedding(
index: index2,
embedding: embedding2
}},
is_null(embedding1) == false,
is_null(embedding2) == false,
index1 < index2,
dist = cos_dist(embedding1, embedding2)
Expand Down

0 comments on commit 12978b4

Please sign in to comment.