-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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] - Postgres Table Name with Hypen #3215
Comments
Note: I upgraded to v2.1.1 and the bug is still present. |
I also tried specifying NO character text splitter -- same bug persists. |
Tried using different PDF files -- same bug persists. |
Tried using CSV files -- same bug persists. |
Tried using plain text -- same bug persists. |
@HenryHengZJ are the container images posted to Docker hub stripped of all debugging? The reason I ask, is because I tried specifying |
Also, it seems the uploaded files are stored inside the Flowise container's disk with some assumption that the files should permanently persist. Instead of using container disk for this, is there any chance it could be stored in the PostgresDB? That way, if a Flowise container restarts and there's no permanent storage, this feature will still work correctly. Right now, if you use this feature and then restart a Flowise container (without a permanent disk), then these Document Store settings appear corrupted. |
I was able to replicate the bug completely outside of DocumentStore just by creating a legacy chatflow that uses the same document loader nodes. From that, I found this stacktrace:
|
Looks like there was an earlier stacktrace:
|
Okay, progress! @HenryHengZJ, I think the root cause had to do with the fact that I specified a PostgreSQL table name that includes a dash Specifically, this bug triggers with the table name of: |
So there's one of two solutions to this:
|
From a quick search, having hypen is not the normal naming convention, usually its small letter with underscore. Hypen is a reserved character, but strange thing is that we do escape using double quotes, not sure why it didnt work |
Describe the bug
I have a multi-page PDF that I have uploaded into the Flowise Document Store. After successfully splitting this PDF into chunks, I try to finally perform an upsert so that the Document Store can create the corresponding vector records -- one vector per chunk. However, after clicking the
Upsert
button, I get thisOh snap!
error message:So there is that bug AND the other bug is that this error message appears to NOT be properly word-wrapped, as the error message appears truncated in the browser. I had to go into the HTML output in order to see the full error message:
To Reproduce
Steps to reproduce the behavior:
Table Name
values contain at least one DASH in them, likefoo-bar
)Upsert
buttonExpected behavior
A clear and concise description of what you expected to happen.
Screenshots
Setup
npx flowise start
,pnpm start
]AWS App Runner
2.0.7
Linux
Chrome
Additional context
To be crystal clear, when I click the
Upsert
button, it appears Flowise successfully creates theuser_guides_rm-v1
Record Manager Table Schema, but I don't see any corresponding records inserted into that Postgres table:So the Upsert process never gets to the point of creating the
user_guides_vec-v1
Vector table, at all.Lastly, when I created the document chunks from the PDF, I used a standard character splitter of chunk size 1000 with 0 chunk overlap and specified a custom separator of
"\n"
:@HenryHengZJ and @vinodkiran -- any idea on how to resolve this? Thanks in advance!
The text was updated successfully, but these errors were encountered: