quivr/backend
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
..
.vscode feat: ⚙️🐞 configure debugger for the backend (#1345) 2023-10-09 15:23:13 +02:00
llm feat(lcel): migrated to lcel and pydantic (#2185) 2024-02-14 14:01:35 -08:00
middlewares feat: new landing page (#2264) 2024-02-25 18:09:01 -08:00
models feat: Update chunk_size in File model (#2281) 2024-03-01 15:07:57 -08:00
modules fix(rag): add api_base (#2289) 2024-03-04 23:48:23 -08:00
packages feat: Update dependencies and remove unnecessary logging statements (#2232) 2024-02-20 16:59:58 -08:00
repository feat(notion): added custom integration (#2268) 2024-02-27 21:30:25 -08:00
routes fix: get_brain_details API to include user_id parameter (#2242) 2024-02-22 12:48:34 -08:00
supabase/functions/add-new-email feat: new landing page (#2264) 2024-02-25 18:09:01 -08:00
tests feat: Update pytest command in Makefile and add new test (#1893) 2023-12-14 14:20:34 +01:00
vectorstore feat(custom): big brain (#2198) 2024-02-16 17:14:30 -08:00
.dockerignore feat(notion): added custom integration (#2268) 2024-02-27 21:30:25 -08:00
celery_config.py fix: Update Celery config to remove SSL certificate requirement 2024-02-20 19:56:14 -08:00
celery_worker.py feat(notion): added custom integration (#2268) 2024-02-27 21:30:25 -08:00
conftest.py fix: 🐛 tests (#2095) 2024-01-26 16:10:16 -08:00
Dockerfile Add libpq-dev and gcc to Dockerfile 2024-02-14 20:29:57 -08:00
Dockerfile.dev fix(frontend): history to threads (#2201) 2024-02-16 16:28:27 -08:00
logger.py feat(integration): implementation (#2191) 2024-02-14 20:07:53 -08:00
main.py feat(sentry): remove health endpoint (#2257) 2024-02-23 19:32:32 -08:00
manage_services.sh feat(integration): implementation (#2191) 2024-02-14 20:07:53 -08:00
pyrightconfig.json feat(refacto): changed a bit of things to make better dx (#984) 2023-08-19 13:32:16 +02:00
requirements.txt feat(integration): implementation (#2191) 2024-02-14 20:07:53 -08:00