quivr/backend/modules/brain
Niels Garve 6d024bc16d
fix(rag): add api_base (#2289)
# Description

With this pull request, I add a fix that **enables Ollama**. 

Running quivr in a Docker container, Ollama needs to be accessed via
http://host.docker.internal:11434.

This URL is defined as `api_base` of the `ChatLiteLLM` constructor. But
there are calls that are missing `api_base`. This leads to fallback URLs
being used. This is now fixed.

Fixes #2270 #2267 #2217 #2204 

## Checklist before requesting a review

Please delete options that are not relevant.

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged

## Screenshots (if appropriate):

None

Co-authored-by: Niels Garve <niels.garve@experienceone.com>
2024-03-04 23:48:23 -08:00
..
controller feat(brains): added description (#2224) 2024-02-19 21:44:06 -08:00
dto feat(brains): added description (#2224) 2024-02-19 21:44:06 -08:00
entity feat: doc as integration (#2297) 2024-03-04 16:10:56 -08:00
integrations fix(rag): add api_base (#2289) 2024-03-04 23:48:23 -08:00
rags fix(rag): add api_base (#2289) 2024-03-04 23:48:23 -08:00
repository feat(notion): added custom integration (#2268) 2024-02-27 21:30:25 -08:00
service feat(notion): added custom integration (#2268) 2024-02-27 21:30:25 -08:00
tests feat(integrations): integration with Notion in the backend (#2123) 2024-02-05 21:02:46 -08: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