Fixing merge conflicts

This commit is contained in:
Aayush Kataria 2024-11-01 05:56:52 -07:00
parent 9c3bdcbb6c
commit 1c1a1e8935

View File

@ -317,15 +317,15 @@ class AzureCosmosDBNoSqlVectorSearch(VectorStore):
query += "TOP @limit "
query += (
"c.id, c[@embeddingKey], c.text, c.metadata, "
"VectorDistance(c[@embeddingKey], @embeddings) AS SimilarityScore FROM c"
"c.id, c.{}, c.text, c.metadata, "
"VectorDistance(c.@embeddingKey, @embeddings) AS SimilarityScore FROM c"
)
# Add where_clause if specified
if pre_filter is not None and pre_filter.get("where_clause") is not None:
query += " {}".format(pre_filter["where_clause"])
query += " ORDER BY VectorDistance(c[@embeddingKey], @embeddings)"
query += " ORDER BY VectorDistance(c.@embeddingKey, @embeddings)"
# Add limit_offset_clause if specified
if pre_filter is not None and pre_filter.get("limit_offset_clause") is not None: