mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
Fixing merge conflicts
This commit is contained in:
parent
9c3bdcbb6c
commit
1c1a1e8935
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user