[PR #6050] [MERGED] feat: add qdrant vector db connector #21817

Closed
opened 2026-04-20 03:44:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/6050
Author: @RobinBially
Created: 10/9/2024
Status: Merged
Merged: 10/9/2024
Merged by: @tjbck

Base: devHead: main


📝 Commits (6)

📊 Changes

4 files changed (+184 additions, -0 deletions)

View changed files

📝 backend/open_webui/apps/retrieval/vector/connector.py (+4 -0)
backend/open_webui/apps/retrieval/vector/dbs/qdrant.py (+176 -0)
📝 backend/open_webui/config.py (+3 -0)
📝 backend/requirements.txt (+1 -0)

📄 Description

Changelog

Added

  • Implemented VECTOR_DB_CLIENT for Qdrant
  • Prepared groundwork for future storage of sparse vectors

Changed

  • Updated relevant files to accommodate the new Qdrant client implementation
  • Modified database interaction logic to support multiple vector database options

Note to first-time contributors

Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Pull Request Checklist

  • Target branch: This pull request targets the dev branch.
  • Description: Provided a concise description of the changes made in this pull request.
  • Changelog: Ensured a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Updated relevant documentation Open WebUI Docs, or other documentation sources.
  • Dependencies: Checked for any new dependencies and updated the dependency versions in the documentation.
  • Testing: Ran sufficient manual tests for validating the changes.
  • Code review: Performed a self-review of the code, addressing any coding standard issues and ensuring adherence to the project's coding standards.
  • Prefix: Prefixed the pull request title using one of the following: feat

Additional Information

This pull request introduces support for Qdrant as a vector database client and enhances the overall flexibility of vector database usage in the project. These changes bring several benefits:

  1. Increased Database Options: By adding Qdrant support and allowing for more vector databases, users can choose the best option for their specific use case, improving overall system adaptability.

  2. Performance Optimization: The groundwork for storing sparse vectors will enable future performance improvements, especially when querying large knowledge bases.

  3. Future-proofing: This implementation makes it easier to integrate new vector database solutions as they emerge, keeping the project up-to-date with the latest technologies.

  4. Customization: Users can now tailor their vector database choice to their specific requirements, such as speed, storage capacity, or specific feature sets.

This pull request aims to enhance the vector database capabilities of the application, providing more options and laying the groundwork for future optimizations. If there are any questions or further clarifications needed, please let me know. Thank you for reviewing and considering these changes.


🔄 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/6050 **Author:** [@RobinBially](https://github.com/RobinBially) **Created:** 10/9/2024 **Status:** ✅ Merged **Merged:** 10/9/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (6) - [`878a570`](https://github.com/open-webui/open-webui/commit/878a570a2c4ec0bdfebc5cd0a6d6632eac13e66d) add qdrant as vector db - [`b185524`](https://github.com/open-webui/open-webui/commit/b185524a8c85af80e1c5b54871683287b02b161a) Merge branch 'open-webui:main' into main - [`b56f77e`](https://github.com/open-webui/open-webui/commit/b56f77ed473f781f17402601048d58706e74bbcf) improvements - [`2c59f2d`](https://github.com/open-webui/open-webui/commit/2c59f2dcafe667c0e49587a244d0d0bcf1d149c2) fix critical bug - [`54dc943`](https://github.com/open-webui/open-webui/commit/54dc94317cf70f9581f0e7c9a9de8570f5bd6fef) improvements - [`34150fc`](https://github.com/open-webui/open-webui/commit/34150fc3ed63821e1a46371bf67c8053bf88efb3) add NO_LIMIT var ### 📊 Changes **4 files changed** (+184 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/apps/retrieval/vector/connector.py` (+4 -0) ➕ `backend/open_webui/apps/retrieval/vector/dbs/qdrant.py` (+176 -0) 📝 `backend/open_webui/config.py` (+3 -0) 📝 `backend/requirements.txt` (+1 -0) </details> ### 📄 Description ## Changelog ### Added - Implemented VECTOR_DB_CLIENT for Qdrant - Prepared groundwork for future storage of sparse vectors ### Changed - Updated relevant files to accommodate the new Qdrant client implementation - Modified database interaction logic to support multiple vector database options ## Note to first-time contributors Please open a discussion post in Discussions and describe your changes before submitting a pull request. ## Pull Request Checklist - [x] Target branch: This pull request targets the dev branch. - [x] Description: Provided a concise description of the changes made in this pull request. - [x] Changelog: Ensured a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description. - [ ] Documentation: Updated relevant documentation Open WebUI Docs, or other documentation sources. - [x] Dependencies: Checked for any new dependencies and updated the dependency versions in the documentation. - [x] Testing: Ran sufficient manual tests for validating the changes. - [x] Code review: Performed a self-review of the code, addressing any coding standard issues and ensuring adherence to the project's coding standards. - [x] Prefix: Prefixed the pull request title using one of the following: feat ## Additional Information This pull request introduces support for Qdrant as a vector database client and enhances the overall flexibility of vector database usage in the project. These changes bring several benefits: 1. **Increased Database Options**: By adding Qdrant support and allowing for more vector databases, users can choose the best option for their specific use case, improving overall system adaptability. 2. **Performance Optimization**: The groundwork for storing sparse vectors will enable future performance improvements, especially when querying large knowledge bases. 3. **Future-proofing**: This implementation makes it easier to integrate new vector database solutions as they emerge, keeping the project up-to-date with the latest technologies. 4. **Customization**: Users can now tailor their vector database choice to their specific requirements, such as speed, storage capacity, or specific feature sets. This pull request aims to enhance the vector database capabilities of the application, providing more options and laying the groundwork for future optimizations. If there are any questions or further clarifications needed, please let me know. Thank you for reviewing and considering these changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:44:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#21817