Description
Per 0.56.2 changelog:
Natural-language aft_search queries no longer stall when the local embedding model is slow. The query-time budget (3 s, then lexical results with a note) applied to remote embedding backends but not to the bundled ONNX one, so a slow inference held the whole search for as long as it took. The local embed now runs under the same budget on its own worker, a query that exceeds it falls back to lexical search, the late vector is kept for the next identical query, and ONNX worker threads are capped by the container's CPU quota instead of the visible core count. Identifier-shaped queries were unaffected, which is why single-word searches kept working.
aft_search hardcodes a 3-second budget. But some self-hosted embedding servers could simply be hosted on slower machines, the provider had a temporary spike, or any other short-term issue. aft_search is not used that often to require a 3-second timeout. It is only used for initial discovery, and accurate results are more desired than fast ones.
I propose two things to be changed:
a) Increase the default timeout to 30 seconds.
b) Add a configuration knob, probably to the embedding configuration, so the user can choose the query time budget they are comfortable with
Use case
Increase accuracy of aft_search. Utilizing the embedding feature is most of its strength, and a 3-second budget reduces the effectiveness of this tool substantially
Description
Per 0.56.2 changelog:
aft_search hardcodes a 3-second budget. But some self-hosted embedding servers could simply be hosted on slower machines, the provider had a temporary spike, or any other short-term issue. aft_search is not used that often to require a 3-second timeout. It is only used for initial discovery, and accurate results are more desired than fast ones.
I propose two things to be changed:
a) Increase the default timeout to 30 seconds.
b) Add a configuration knob, probably to the embedding configuration, so the user can choose the query time budget they are comfortable with
Use case
Increase accuracy of aft_search. Utilizing the embedding feature is most of its strength, and a 3-second budget reduces the effectiveness of this tool substantially