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] invalid byte sequence for encoding "UTF8" #308

Open
sbakir opened this issue May 14, 2024 · 1 comment
Open

[BUG] invalid byte sequence for encoding "UTF8" #308

sbakir opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sbakir
Copy link

sbakir commented May 14, 2024

Description

After uploading over 2 GB, and 400 pdf files, embedding start to fail as below:
"[ERROR] Failed to embed.
{'S': 'ERROR', 'V': 'ERROR', 'C': '22021', 'M': 'invalid byte sequence for encoding "UTF8": 0x00', 'W': 'unnamed portal parameter $3', 'F': 'mbutils.c', 'L': '1679', 'R': 'report_invalid_encoding'}"

To Reproduce

Create a chatbot with large knowledge base over 2 GB, and over 400 different pdf, word, presentation files and start embedding. After a while, it gives the "Failed to embed" error.

@statefb
Copy link
Contributor

statefb commented May 15, 2024

Possible cause and solution:
https://www.cybertec-postgresql.com/en/fix-bad-encoding-postgresql/

@statefb statefb changed the title [BUG] Embedding Failing for Large Knowledge Base [BUG] invalid byte sequence for encoding "UTF8" May 15, 2024
@statefb statefb added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants