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

Error uploading document to Chroma db #20

Open
OM-EL opened this issue Sep 2, 2024 · 1 comment
Open

Error uploading document to Chroma db #20

OM-EL opened this issue Sep 2, 2024 · 1 comment

Comments

@OM-EL
Copy link

OM-EL commented Sep 2, 2024

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

@jaigouk
Copy link
Owner

jaigouk commented Sep 7, 2024

hello. @OM-EL i am merging this work into stanford-oval/storm#135 after the merge, i will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants