quivr/backend/modules/assistant/ito
Stan Girard 311d9bb15c
feat(assistant): check if key of file is same as filename uploaded (#2439)
This pull request fixes the file key validation in the `check_input`
method. Previously, the method only checked if a file was uploaded and
if the key of the file was "doc_to_summarize". However, it did not check
if the key of the file was the same as the name of the file. This PR
adds a check to ensure that the key of the file is the same as the name
of the file. This improves the accuracy of the file validation process.

<!--
ELLIPSIS_HIDDEN
-->


----

| <a href="https://ellipsis.dev" target="_blank"><img
src="https://avatars.githubusercontent.com/u/80834858?s=400&u=31e596315b0d8f7465b3ee670f25cea677299c96&v=4"
alt="Ellipsis" width="30px" height="30px"/></a> | 🚀 This PR
description was created by [Ellipsis](https://www.ellipsis.dev) for
commit 8f04d832ac. |
|--------|--------|

### Summary:
This PR enhances the file validation process in the `SummaryAssistant`
class by ensuring the key of the uploaded file matches its filename.

**Key points**:
- Added a new file key validation in `check_input` method of
`SummaryAssistant` class.
- The validation checks if the key of the uploaded file matches the
filename.
- This is an additional check to the existing file upload and key
validations.


----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)



<!--
ELLIPSIS_HIDDEN
-->
2024-04-17 13:27:15 -07:00
..
utils feat(assistants): Add PDF generation functionality and nice emails (#2436) 2024-04-17 06:00:31 -07:00
__init__.py feat: Add assistant module and remove ingestion module (#2420) 2024-04-10 04:28:22 -07:00
audio_transcript.py feat: Add tags to AssistantOutput classes (#2425) 2024-04-11 09:42:01 -07:00
crawler.py feat: Add tags to AssistantOutput classes (#2425) 2024-04-11 09:42:01 -07:00
difference.py feat: llamaparse & diff agent (#2427) 2024-04-12 09:06:50 -07:00
ito.py feat(assistants): Add PDF generation functionality and nice emails (#2436) 2024-04-17 06:00:31 -07:00
summary.py feat(assistant): check if key of file is same as filename uploaded (#2439) 2024-04-17 13:27:15 -07:00