quivr/backend/modules/brain
Stan Girard 1e6ff8fce0
feat(rag): Refactor DEFAULT_DOCUMENT_PROMPT in quivr_rag.py (#2442)
This pull request refactors the DEFAULT_DOCUMENT_PROMPT in quivr_rag.py
to improve code readability and maintainability. The unnecessary file
name information has been removed from the prompt template as it is now
included in the vector embedding

<!--
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 81939457e6. |
|--------|--------|

### Summary:
This PR refactors the `DEFAULT_DOCUMENT_PROMPT` in `quivr_rag.py` by
removing the file name information from the prompt template, enhancing
code readability and maintainability.

**Key points**:
- Refactored `DEFAULT_DOCUMENT_PROMPT` in `quivr_rag.py`.
- Removed file name information from the prompt template.
- File name information is now included in the vector embedding.


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



<!--
ELLIPSIS_HIDDEN
-->
2024-04-17 15:26:24 -07:00
..
controller feat(frontend): onboarding V2 (#2394) 2024-04-09 18:06:33 +02:00
dto feat(brains): added description (#2224) 2024-02-19 21:44:06 -08:00
entity feat: optimization calls (#2417) 2024-04-10 02:45:16 -07:00
integrations fix(backend): invitation brain bugs (#2380) 2024-03-25 16:13:51 -07:00
rags feat(rag): Refactor DEFAULT_DOCUMENT_PROMPT in quivr_rag.py (#2442) 2024-04-17 15:26:24 -07:00
repository fix(backend): invitation brain bugs (#2380) 2024-03-25 16:13:51 -07:00
service tests: added new way of testing less prone to errors 2024-04-15 18:22:21 +02:00
tests tests: added new way of testing less prone to errors 2024-04-15 18:22:21 +02:00
__init__.py refactor: to modules (#1754) 2023-11-30 22:29:28 +01:00
api_brain_qa.py feat(integrations): integration with Notion in the backend (#2123) 2024-02-05 21:02:46 -08:00
composite_brain_qa.py Remove unused 'model' variable and logging statements (#2228) 2024-02-20 02:14:02 -08:00
knowledge_brain_qa.py feat(notion): added custom integration (#2268) 2024-02-27 21:30:25 -08:00
qa_headless.py feat(lcel): migrated to lcel and pydantic (#2185) 2024-02-14 14:01:35 -08:00
qa_interface.py feat: Add pricing calculation method to GPT4Brain class and update user usage in chat controller (#2216) 2024-02-19 17:29:45 -08:00