You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/mongodb/read/aggregate.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ export const AggregateArgs = {
65
65
### Usage Rules for \`$vectorSearch\`
66
66
- **Unset embeddings:**
67
67
Unless the user explicitly requests the embeddings, add an \`$unset\` stage **at the end of the pipeline** to remove the embedding field and avoid context limits. **The $unset stage in this situation is mandatory**.
68
-
- **Prefiltering:**
68
+
- **Pre-filtering:**
69
69
If the user requests additional filtering, include filters in \`$vectorSearch.filter\` only for pre-filter fields in the vector index.
70
70
NEVER include fields in $vectorSearch.filter that are not part of the vector index.
Unless the user explicitly requests the embeddings, add an \`$unset\` stage **at the end of the pipeline** to remove the embedding field and avoid context limits. **The $unset stage in this situation is mandatory**.
35
-
- **Prefiltering:**
35
+
- **Pre-filtering:**
36
36
If the user requests additional filtering, include filters in \`$vectorSearch.filter\` only for pre-filter fields in the vector index.
37
37
NEVER include fields in $vectorSearch.filter that are not part of the vector index.
0 commit comments