Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agents-api): Add limit to kNN search. Update search_docs_by_embed…
…ding.py (#761) <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Adds a limit to kNN search in `search_docs_by_embedding` to enhance diversity based on `mmr_strength`. > > - **Behavior**: > - Adds a limit to kNN search in `search_docs_by_embedding` to retrieve `k*(3 if mmr_strength else 1)` candidates for diversity. > - Adjusts the limit in both the `search_query` and `normal_interim_query` sections. > - **Misc**: > - Updates comments to reflect the new limit logic. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup> for edc471d. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information