chat-with-your-data-solution-accelerator
chat-with-your-data-solution-accelerator copied to clipboard
feat: Set limit for advanced image processing images
Required for #750
Purpose
- Set a limit to the number of images that are passed to the LLM when using advanced image processing. Defaults to 1
Does this introduce a breaking change?
- [ ] Yes
- [x] No
How to Test
- Deploy code, with advanced image processing enabled
- Upload similar images
- Make query about images
- Check number of images passed to LLM
Coverage Report •
File Stmts Miss Cover Missing code/backend/batch/utilities/helpers env_helper.py 140 6 95% 240–242, 261–263 code/backend/batch/utilities/tools question_answer_tool.py 70 0 100% TOTAL 2503 561 77%
| Tests | Skipped | Failures | Errors | Time |
|---|---|---|---|---|
| 278 | 0 :zzz: | 0 :x: | 0 :fire: | 35.309s :stopwatch: |
LGTM! I assume search returns images in order of closest match?
Yep, this is from the docs:
If no OrderBy is specified, the default sort order is descending by document match score.
:tada: This PR is included in version 1.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: