Skip to content

Commit

Permalink
Undoing black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ajosh0504 committed Jul 11, 2024
1 parent 5791fa3 commit 18564b7
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions docs/60-perform-semantic-search/4-pre-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
```
Expand All @@ -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"}
}
},
}
]
```
</div>
Expand All @@ -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"
}
]
}
```
Expand All @@ -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"}
}
},
}
]
```
</div>
Expand Down

0 comments on commit 18564b7

Please sign in to comment.