quivr/backend/modules/assistant
Stan Girard c3e0c2f2ee
feat(summary): improve prompt to get more insights (#2446)
This pull request includes a commit that improves the prompt used to get
more insights from the document. The commit modifies the map and reduce
templates to provide clearer instructions for analyzing each section of
the document and generating a consolidated summary. The changes also
include adjustments to the text splitter to improve the chunk overlap.

<!--
ELLIPSIS_HIDDEN
-->


----

| 🚀 This description was created by
[Ellipsis](https://www.ellipsis.dev) for commit
adf5541dab |
|--------|

### Summary:
This PR enhances the document analysis and summary generation
instructions in the `SummaryAssistant` class and improves text splitting
by adjusting the `chunk_overlap` parameter.

**Key points**:
- Updated `map_template` and `reduce_template` in `process_assistant`
method of `SummaryAssistant` class in
`/backend/modules/assistant/ito/summary.py`.
- Adjusted `chunk_overlap` parameter of `CharacterTextSplitter` instance
from 0 to 100.


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



<!--
ELLIPSIS_HIDDEN
-->
2024-04-18 14:04:06 -07:00
..
controller feat: llamaparse & diff agent (#2427) 2024-04-12 09:06:50 -07:00
dto fix(assistants): brain id is null (#2445) 2024-04-18 14:03:47 -07:00
entity feat: Add assistant module and remove ingestion module (#2420) 2024-04-10 04:28:22 -07:00
ito feat(summary): improve prompt to get more insights (#2446) 2024-04-18 14:04:06 -07:00
repository feat: Add assistant module and remove ingestion module (#2420) 2024-04-10 04:28:22 -07:00
service feat: Add assistant module and remove ingestion module (#2420) 2024-04-10 04:28:22 -07:00
__init__.py feat: Add assistant module and remove ingestion module (#2420) 2024-04-10 04:28:22 -07:00