mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #11089] [MERGED] feat: Elasticsearch as a vector store support #9456
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/11089
Author: @tupe2009
Created: 3/3/2025
Status: ✅ Merged
Merged: 3/4/2025
Merged by: @tjbck
Base:
dev← Head:kleqon.feat-add-elasticsearch-support📝 Commits (1)
737dfd2added elasticsearch support📊 Changes
4 files changed (+298 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+9 -0)📝
backend/open_webui/retrieval/vector/connector.py(+4 -0)➕
backend/open_webui/retrieval/vector/dbs/elasticsearch.py(+283 -0)📝
backend/requirements.txt(+2 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
Additional Information
Even though collections in ChromaDB can be easily translated to Elasticsearch indexes, it is bad practice to have many small indexes(might stress the cluster). therefor, I preferred using a different index only when using different embedding length, and save the collection ID as a field, which I filter by.
to summarize:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.