Adds the following environment variables to configure a HTTP client for ChromaDB to connect to a ChromaDB Server instead of a local client:
CHROMA_HTTP_HOST - Hostname to connect to
CHROMA_HTTP_PORT - Port to connect to, defaults to 8000
CHROMA_HTTP_HEADERS - Any headers to add to requests
CHROMA_HTTP_SSL - Use TLS for connections
These additional env vars also apply to local ChromaDB:
CHROMA_TENANT
CHROMA_DATABASE
To test this locally,
Start a ChromaDB server instance: docker run -p 8000:8000 --rm chromadb/chroma
Configure the backend env vars: CHROMA_HTTP_HOST=localhost CHROMA_HTTP_PORT=8000 GLOBAL_LOG_LEVEL=DEBUG ./start.sh
Changelog Entry
Added
🌐Remote ChromaDB Support: Add the ability to connect to a remote ChromaDB server
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/1794
**Author:** [@cheahjs](https://github.com/cheahjs)
**Created:** 4/27/2024
**Status:** ✅ Merged
**Merged:** 4/27/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `feat/external-chromadb`
---
### 📝 Commits (1)
- [`8df7db1`](https://github.com/open-webui/open-webui/commit/8df7db1e17f6918dedff64939cbda4c6b6b118db) feat: add ability to configure a HTTP ChromaDB client
### 📊 Changes
**1 file changed** (+30 additions, -4 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/config.py` (+30 -4)
</details>
### 📄 Description
## Pull Request Checklist
- [x] **Description:** Briefly describe the changes in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation?
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
---
## Description
Addresses the vector DB portion of https://github.com/open-webui/open-webui/issues/1397
Adds the following environment variables to configure a HTTP client for ChromaDB to connect to a ChromaDB Server instead of a local client:
1. `CHROMA_HTTP_HOST` - Hostname to connect to
2. `CHROMA_HTTP_PORT` - Port to connect to, defaults to 8000
3. `CHROMA_HTTP_HEADERS` - Any headers to add to requests
4. `CHROMA_HTTP_SSL` - Use TLS for connections
These additional env vars also apply to local ChromaDB:
1. `CHROMA_TENANT`
2. `CHROMA_DATABASE`
To test this locally,
1. Start a ChromaDB server instance: `docker run -p 8000:8000 --rm chromadb/chroma`
2. Configure the backend env vars: `CHROMA_HTTP_HOST=localhost CHROMA_HTTP_PORT=8000 GLOBAL_LOG_LEVEL=DEBUG ./start.sh`
---
### Changelog Entry
### Added
- 🌐 **Remote ChromaDB Support**: Add the ability to connect to a remote ChromaDB server
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1794
Author: @cheahjs
Created: 4/27/2024
Status: ✅ Merged
Merged: 4/27/2024
Merged by: @tjbck
Base:
dev← Head:feat/external-chromadb📝 Commits (1)
8df7db1feat: add ability to configure a HTTP ChromaDB client📊 Changes
1 file changed (+30 additions, -4 deletions)
View changed files
📝
backend/config.py(+30 -4)📄 Description
Pull Request Checklist
Description
Addresses the vector DB portion of https://github.com/open-webui/open-webui/issues/1397
Adds the following environment variables to configure a HTTP client for ChromaDB to connect to a ChromaDB Server instead of a local client:
CHROMA_HTTP_HOST- Hostname to connect toCHROMA_HTTP_PORT- Port to connect to, defaults to 8000CHROMA_HTTP_HEADERS- Any headers to add to requestsCHROMA_HTTP_SSL- Use TLS for connectionsThese additional env vars also apply to local ChromaDB:
CHROMA_TENANTCHROMA_DATABASETo test this locally,
docker run -p 8000:8000 --rm chromadb/chromaCHROMA_HTTP_HOST=localhost CHROMA_HTTP_PORT=8000 GLOBAL_LOG_LEVEL=DEBUG ./start.shChangelog Entry
Added
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.