mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
[PR #1794] [MERGED] feat: add ability to configure a HTTP ChromaDB client #7580
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.