mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #18592] issue: TypeError/IndexError while inserting embeddings using pgvector and cohere-embed-v4 #34175
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ecktom on GitHub (Oct 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18592
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.34
Ollama Version (if applicable)
No response
Operating System
Docker
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
After uploading a PDF to some knowledge base, embeddings should be stored correctly
Actual Behavior
A
TypeErroris raised within/app/backend/open_webui/retrieval/vector/dbs/pgvector.py, the PDF is not getting stored.If setting
RAG_EMBEDDING_OPENAI_BATCH_SIZEto eg.3anIndexErrorappears.Steps to Reproduce
pgvectoras vector databasecohere-embed-v4as OpenAI based engine for embeddingsLogs & Screenshots
TypeError:
IndexError (using
RAG_EMBEDDING_OPENAI_BATCH_SIZE> 1):Additional Information
@tjbck commented on GitHub (Oct 26, 2025):
Did you change your embedding model?