spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Querying the number of returned data for a large model

Open settven opened this issue 1 year ago • 1 comments
trafficstars

When setting the number of data returned by the query large model, the setting of returning the top does not take effect, and 10 data are returned by default. The calling code is as follows: List<Document> documents = vectorStore.similaritySearch(SearchRequest.query(keyword).withTopK(48).withSimilarityThreshold(0.1)); The set withTopK number does not take effect

settven avatar Jul 29 '24 03:07 settven