Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ORM Fails to Specify Vector Dimensions for RAG Table in PostgreSQL #2399

Open
seonghobae opened this issue May 13, 2024 · 0 comments
Open

Comments

@seonghobae
Copy link

Describe the bug
Flowise ORM fails to specify the dimension count for the vector column when creating tables for RAG (Retrieval-Augmented Generation) in a PostgreSQL database. This results in an error 'SQL Error [XX000]: ERROR: column does not have dimensions' when trying to create an index on that column.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Flowise application'
  2. Navigate to the section where you can manage database tables
  3. Create a new table for RAG with an embedding column
  4. Try to create an index on the embedding column
  5. Encounter the 'SQL Error [XX000]: ERROR: column does not have dimensions' error

Expected behavior
I expected the ORM to automatically specify the vector dimension count for the embedding column, allowing users to create indexes without issues.

Screenshots
image

Flow
image

Setup

  • Installation docker
  • Flowise Version 1.6.6
  • OS: Linux
  • Browser Chrome

Additional context
This issue affects the functionality of storing and retrieving vector data of specific dimensions. A temporary workaround is to manually specify a vector type with the correct dimensions directly in the database, but this bypasses the automated process through the ORM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant