spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/index.html
Apache License 2.0
2.85k stars 714 forks source link

Querying the number of returned data for a large model #1129

Open settven opened 1 month ago

settven commented 1 month ago

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 documents = vectorStore.similaritySearch(SearchRequest.query(keyword).withTopK(48).withSimilarityThreshold(0.1)); The set withTopK number does not take effect

inpink commented 1 month ago

Hello,

It seems like this issue might be related to the one you mentioned. Could you please check it?

Thank you.

https://github.com/spring-projects/spring-ai/issues/1090