Originally created by @OM-EL on GitHub (Sep 2, 2024).
Bug Report
Error when uploading a document to OpenWebUi
Installation Method
[Describe the method you used to install the project, e.g., git clone, Docker, pip, etc.]
Environment
Open WebUI Version: [e.g., v0.3.16]
ChromaDB : [v0.5.4]
Operating System: [docker images]
Confirmation:
[x ] I have read and followed all the instructions provided in the README.md.
[x ] I am on the latest version of both Open WebUI and Ollama.
[x ] I have included the Docker container logs.
[x ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
Expected Behavior:
The document should get uploaded and pushed to ChromaDB
Actual Behavior:
i get an error, an empty chromadb collection gets created
Logs and Screenshots
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
I am getting the following error when trying to upload a document.
ERROR [apps.rag.main] batch_size must be less than or equal to sync_threshold
Traceback (most recent call last):
File "/app/backend/apps/rag/main.py", line 1007, in store_docs_in_vector_db
collection = CHROMA_CLIENT.create_collection(name=collection_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 117, in create_collection
model = self._server.create_collection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 146, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 206, in create_collection
model = CollectionModel.from_json(resp_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/types.py", line 139, in from_json
configuration = CollectionConfigurationInternal.from_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 217, in from_json
return cls(parameters=parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 115, in __init__
parameter.value = child_type.from_json(parameter.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 217, in from_json
return cls(parameters=parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 130, in __init__
self.configuration_validator()
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 286, in configuration_validator
raise InvalidConfigurationError(
chromadb.api.configuration.InvalidConfigurationError: batch_size must be less than or equal to sync_threshold
Originally created by @OM-EL on GitHub (Sep 2, 2024).
# Bug Report
Error when uploading a document to OpenWebUi
## Installation Method
[Describe the method you used to install the project, e.g., git clone, Docker, pip, etc.]
## Environment
- **Open WebUI Version:** [e.g., v0.3.16]
- **ChromaDB :** [v0.5.4]
- **Operating System:** [docker images]
**Confirmation:**
- [x ] I have read and followed all the instructions provided in the README.md.
- [x ] I am on the latest version of both Open WebUI and Ollama.
- [x ] I have included the Docker container logs.
- [x ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## Expected Behavior:
The document should get uploaded and pushed to ChromaDB
## Actual Behavior:
i get an error, an empty chromadb collection gets created
## Logs and Screenshots
**Docker Container Logs:**
[Include relevant Docker container logs, if applicable]
I am getting the following error when trying to upload a document.
```
ERROR [apps.rag.main] batch_size must be less than or equal to sync_threshold
Traceback (most recent call last):
File "/app/backend/apps/rag/main.py", line 1007, in store_docs_in_vector_db
collection = CHROMA_CLIENT.create_collection(name=collection_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/client.py", line 117, in create_collection
model = self._server.create_collection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 146, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/fastapi.py", line 206, in create_collection
model = CollectionModel.from_json(resp_json)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/types.py", line 139, in from_json
configuration = CollectionConfigurationInternal.from_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 217, in from_json
return cls(parameters=parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 115, in __init__
parameter.value = child_type.from_json(parameter.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 217, in from_json
return cls(parameters=parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 130, in __init__
self.configuration_validator()
File "/usr/local/lib/python3.11/site-packages/chromadb/api/configuration.py", line 286, in configuration_validator
raise InvalidConfigurationError(
chromadb.api.configuration.InvalidConfigurationError: batch_size must be less than or equal to sync_threshold
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @OM-EL on GitHub (Sep 2, 2024).
Bug Report
Error when uploading a document to OpenWebUi
Installation Method
[Describe the method you used to install the project, e.g., git clone, Docker, pip, etc.]
Environment
Open WebUI Version: [e.g., v0.3.16]
ChromaDB : [v0.5.4]
Operating System: [docker images]
Confirmation:
Expected Behavior:
The document should get uploaded and pushed to ChromaDB
Actual Behavior:
i get an error, an empty chromadb collection gets created
Logs and Screenshots
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
I am getting the following error when trying to upload a document.