Skip to content

Commit 236a077

Browse files
authored
Fix a bug where the vector search options were null (#246)
Fix a bug where the `VectorSearch` is `null`.
1 parent a9ebec9 commit 236a077

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/backend/Extensions/SearchClientExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ internal static async Task<SupportingContentRecord[]> QueryDocumentsAsync(
5151
KNearestNeighborsCount = useSemanticRanker ? 50 : top,
5252
};
5353
vectorQuery.Fields.Add("embedding");
54+
searchOptions.VectorSearch = new();
5455
searchOptions.VectorSearch.Queries.Add(vectorQuery);
5556
}
5657

0 commit comments

Comments
 (0)