From 18564b757582022a4b41dade8b5917fbbd823825 Mon Sep 17 00:00:00 2001 From: ajosh0504 Date: Thu, 11 Jul 2024 15:37:37 -0700 Subject: [PATCH] Undoing black formatting --- .../4-pre-filtering.mdx | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/docs/60-perform-semantic-search/4-pre-filtering.mdx b/docs/60-perform-semantic-search/4-pre-filtering.mdx index fc55cfd..59a1b45 100644 --- a/docs/60-perform-semantic-search/4-pre-filtering.mdx +++ b/docs/60-perform-semantic-search/4-pre-filtering.mdx @@ -22,12 +22,12 @@ The answers for code blocks in this section are as follows: "numDimensions": 1024, "path": "embedding", "similarity": "cosine", - "type": "vector", + "type": "vector" }, { "path": "metadata.language" - "type": "filter", - }, + "type": "filter" + } ] } ``` @@ -48,16 +48,16 @@ The answers for code blocks in this section are as follows: "path": "embedding", "numCandidates": 150, "limit": 5, - "filter": {"metadata.language": "en"}, + "filter": {"metadata.language": "en"} } }, { "$project": { "_id": 0, "page_content": 1, - "score": {"$meta": "vectorSearchScore"}, + "score": {"$meta": "vectorSearchScore"} } - }, + } ] ``` @@ -75,16 +75,16 @@ The answers for code blocks in this section are as follows: "numDimensions": 1024, "path": "embedding", "similarity": "cosine", - "type": "vector", + "type": "vector" }, { "path": "metadata.language" - "type": "filter", + "type": "filter" }, { "path": "type" - "type": "filter", - }, + "type": "filter" + } ] } ``` @@ -105,16 +105,21 @@ The answers for code blocks in this section are as follows: "path": "embedding", "numCandidates": 150, "limit": 5, - "filter": {"$and": [{"metadata.language": "en"}, {"type": "Document"}]}, + "filter": { + "$and": [ + {"metadata.language": "en"}, + {"type": "Document"} + ] + } } }, { "$project": { "_id": 0, "page_content": 1, - "score": {"$meta": "vectorSearchScore"}, + "score": {"$meta": "vectorSearchScore"} } - }, + } ] ```