-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
core-team-onlypossible bugBug was reported but is not confirmed or is unable to be replicated.Bug was reported but is not confirmed or is unable to be replicated.
Description
How are you running AnythingLLM?
All versions
What happened?
After setting the vector database to PG Vector and attempting to vectorize a document, I get this error:
This is happening because by default, a PG database w/ PG Vector does not have the plugin enabled. It must be explicit enabled with the SQL command CREATE EXTENSION vector
Potential Fix:
When attempting to embed a document, first run a CREATE EXTENSION IF NOT EXISTS vector SQL command to ensure the PG Vector plugin is enabled on their database before proceeding.
anything-llm/server/utils/vectorDbProviders/pgvector/index.js
Lines 406 to 410 in 9466f67
| createTableIfNotExists: async function (connection, dimensions = 384) { | |
| this.log(`Creating embedding table with ${dimensions} dimensions`); | |
| await connection.query(this.createTableSql(dimensions)); | |
| return true; | |
| }, |
Are there known steps to reproduce?
No response
Metadata
Metadata
Assignees
Labels
core-team-onlypossible bugBug was reported but is not confirmed or is unable to be replicated.Bug was reported but is not confirmed or is unable to be replicated.