[PR #4730] [MERGED] Migrate PGVector to class #4739

Closed
opened 2026-02-22 18:36:26 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4730
Author: @shatfield4
Created: 12/5/2025
Status: Merged
Merged: 12/9/2025
Merged by: @timothycarambat

Base: vectordb-class-migrationHead: vectordb-class-migration-pgvector


📝 Commits (5)

  • 960ae10 migrate pgvector to class
  • ff83ea6 patch pgvector test
  • 53a5411 convert connectionString, tableName, and validateConnection to static methods
  • 27357fd move instance properties to class fields
  • 8f4b9af Merge branch 'vectordb-class-migration' into vectordb-class-migration-pgvector

📊 Changes

3 files changed (+98 additions, -86 deletions)

View changed files

📝 server/__tests__/utils/vectorDbProviders/pgvector/index.test.js (+3 -1)
📝 server/utils/helpers/index.js (+1 -1)
📝 server/utils/vectorDbProviders/pgvector/index.js (+94 -84)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #xxx

  • Migrate PGVector vector db provider to class
  • Update systemSettings and updateENV helpers to instantiate class before calling class methods
  • Patch unit test to instantiate PGVector class before running tests

What is in this change?

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/4730 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 12/5/2025 **Status:** ✅ Merged **Merged:** 12/9/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `vectordb-class-migration` ← **Head:** `vectordb-class-migration-pgvector` --- ### 📝 Commits (5) - [`960ae10`](https://github.com/Mintplex-Labs/anything-llm/commit/960ae10ab24f3325e0ce721d5625ea0b09de7278) migrate pgvector to class - [`ff83ea6`](https://github.com/Mintplex-Labs/anything-llm/commit/ff83ea63bc303e9135464fcc88b60c6f372e74cc) patch pgvector test - [`53a5411`](https://github.com/Mintplex-Labs/anything-llm/commit/53a5411045425b9eaac273666372fc9d383db93f) convert connectionString, tableName, and validateConnection to static methods - [`27357fd`](https://github.com/Mintplex-Labs/anything-llm/commit/27357fde832bf71047cd2cbc7bf5679d9dac0c7a) move instance properties to class fields - [`8f4b9af`](https://github.com/Mintplex-Labs/anything-llm/commit/8f4b9af9dd7303ec5cbb695db952b9c5ce18703d) Merge branch 'vectordb-class-migration' into vectordb-class-migration-pgvector ### 📊 Changes **3 files changed** (+98 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `server/__tests__/utils/vectorDbProviders/pgvector/index.test.js` (+3 -1) 📝 `server/utils/helpers/index.js` (+1 -1) 📝 `server/utils/vectorDbProviders/pgvector/index.js` (+94 -84) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [ ] 🐛 fix - [x] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #xxx - Migrate PGVector vector db provider to class - Update `systemSettings` and `updateENV` helpers to instantiate class before calling class methods - Patch unit test to instantiate PGVector class before running tests ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:26 -05:00
yindo closed this issue 2026-02-22 18:36:26 -05:00
yindo changed title from [PR #4730] Migrate PGVector to class to [PR #4730] [MERGED] Migrate PGVector to class 2026-06-05 15:20:07 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4739