spring-ai
spring-ai copied to clipboard
Querying the number of returned data for a large model
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