Skip to content

Commit

Permalink
Fix a bug where the vector search options were null (#246)
Browse files Browse the repository at this point in the history
Fix a bug where the `VectorSearch` is `null`.
  • Loading branch information
IEvangelist authored Nov 30, 2023
1 parent a9ebec9 commit 236a077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/backend/Extensions/SearchClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ internal static async Task<SupportingContentRecord[]> QueryDocumentsAsync(
KNearestNeighborsCount = useSemanticRanker ? 50 : top,
};
vectorQuery.Fields.Add("embedding");
searchOptions.VectorSearch = new();
searchOptions.VectorSearch.Queries.Add(vectorQuery);
}

Expand Down

0 comments on commit 236a077

Please sign in to comment.