[PR #8385] [MERGED] fix: Pgvector vector column size check was failing on initialization … #9010

Closed
opened 2025-11-11 18:11:45 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/8385
Author: @jk-f5
Created: 1/7/2025
Status: Merged
Merged: 1/7/2025
Merged by: @tjbck

Base: devHead: refac/pgvectorlength


📝 Commits (1)

  • b3a52be fix: Pgvector vector column size check was failing on initialization of database

📊 Changes

1 file changed (+24 additions, -19 deletions)

View changed files

📝 backend/open_webui/retrieval/vector/dbs/pgvector.py (+24 -19)

📄 Description

Changelog Entry

Description

  • metadata.reflect throws an exception rather than returning an empty list. Refactor vector column check to account for this.

Fixed

  • Correctly check for the pgvector document_check table on first load.

🔄 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/8385 **Author:** [@jk-f5](https://github.com/jk-f5) **Created:** 1/7/2025 **Status:** ✅ Merged **Merged:** 1/7/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `refac/pgvectorlength` --- ### 📝 Commits (1) - [`b3a52be`](https://github.com/open-webui/open-webui/commit/b3a52be4014a0016aae1513e0d145bc6d398cbe9) fix: Pgvector vector column size check was failing on initialization of database ### 📊 Changes **1 file changed** (+24 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/retrieval/vector/dbs/pgvector.py` (+24 -19) </details> ### 📄 Description # Changelog Entry ### Description - `metadata.reflect` throws an exception rather than returning an empty list. Refactor vector column check to account for this. ### Fixed - Correctly check for the pgvector document_check table on first load. --- <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 2025-11-11 18:11:45 -06: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#9010