#community-help

Modifying Exhaustive Search Behavior in Document Retrieval

TLDR Laura inquired about tweaking exhaustive search parameters for document retrieval. Jason clarified that using exhaustive_search: true considers all variations and prefixes but doesn't necessarily return a fixed number of documents. Laura acknowledged the misunderstanding.

Powered by Struct AI
4
2mo
Solved
Join the chat
Jul 10, 2023 (2 months ago)
Laura
Photo of md5-e31442d4d6c849124582a10193fe7721
Laura
05:35 PM
Hello everyone! Is it possible to create with search parameters a behavior analogous to exhaustive_search, but without having to return such a large number of documents? I want to consider all variations of prefixes and typo corrections of the words, but I don't need it to always necessarily return 10,000 documents, but whatever is found of all variations and prefixes
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:01 PM
> I want to consider all variations of prefixes and typo corrections of the words
That’s what exhaustive_search: true does… and that could lead to a large number of results
06:02
Jason
06:02 PM
> always necessarily return 10,000 documents
I assume you mean the 10K max_candidates value. It’s not the number of results, but the number of prefixes to consider internally. Only the matching prefixes will be returned in the results
Jul 11, 2023 (2 months ago)
Laura
Photo of md5-e31442d4d6c849124582a10193fe7721
Laura
01:59 PM
soryy, it's true. what I was doing was not correct