[GH-ISSUE #461] PGVector gotcha #70

Closed
opened 2026-10-18 14:08:41 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @humbertovnavarro on GitHub (Mar 28, 2025).
Original GitHub issue: https://github.com/open-webui/docs/issues/461

By default postgres uses ASCII encoding which causes document uploads to fail if they contain unicode characters.

Originally created by @humbertovnavarro on GitHub (Mar 28, 2025). Original GitHub issue: https://github.com/open-webui/docs/issues/461 By default postgres uses ASCII encoding which causes document uploads to fail if they contain unicode characters.
bsakaguchi 2026-10-18 14:08:41 +00:00
Author
Owner

@mihirahlawat commented on GitHub (Apr 17, 2025):

I spent a lot of time and will try to save you some.

The issue: If PDFs have ligatures in them, PyPDF does not recognize them and gives you an empty character (in unicode) which throws error in a PGVector Database.

The solution: I used PyMuPDF for loading pdf documents. It is able to recognize ligatures seamlessly.

<!-- gh-comment-id:2814114060 --> @mihirahlawat commented on GitHub (Apr 17, 2025): I spent a lot of time and will try to save you some. The issue: If PDFs have ligatures in them, PyPDF does not recognize them and gives you an empty character (in unicode) which throws error in a PGVector Database. The solution: I used PyMuPDF for loading pdf documents. It is able to recognize ligatures seamlessly.
Author
Owner

@Classic298 commented on GitHub (Sep 14, 2025):

Hi, what improvement to the docs do you propose based on these observations? Not sure where to add it?

<!-- gh-comment-id:3289368441 --> @Classic298 commented on GitHub (Sep 14, 2025): Hi, what improvement to the docs do you propose based on these observations? Not sure where to add it?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/docs#70
No description provided.