[BUG] Error uploading files
Pre-check
- I have searched the existing issues and none cover this bug.
Description
After a fresh install from Docker container, I appear to be unable to upload files. Debug logs below on a test file called "Test.txt" with arbitrary data:
21:03:39.002 [INFO ] [AnyIO worker thread] private_gpt.artifact_index.vector_artifact_index - Initializing vector index for artifact: test-1790198167404 21:03:39.002 [INFO ] [AnyIO worker thread] private_gpt.artifact_index.vector_artifact_index - Initializing a new empty vector index 21:03:39.004 [INFO ] [AnyIO worker thread] private_gpt.artifact_index.vector_artifact_index - Finished empty vector index creation for = test-1790198167404 21:03:39.004 [INFO ] [AnyIO worker thread] private_gpt.server.ingest.ingest_service - Populating vector index for artifact: test-1790198167404 21:03:39.004 [INFO ] [AnyIO worker thread] private_gpt.artifact_index.vector_artifact_index - Populating vector index for artifact = test-1790198167404 21:03:39.005 [INFO ] [AnyIO worker thread] private_gpt.artifact_index.vector_artifact_index - Populating vector index for artifact = test-1790198167404 21:03:39.005 [INFO ] [AnyIO worker thread] private_gpt.components.ingest.ingest_component - Validating file: /tmp/tmpkfb083c4.txt 21:03:39.008 [INFO ] [AnyIO worker thread] private_gpt.components.ingest.ingest_component - Finished validating file: /tmp/tmpkfb083c4.txt Exception in thread Thread-92 (producer): Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() File "/usr/local/lib/python3.11/threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "/home/worker/app/private_gpt/components/vector_store/patched_qdrant_store.py", line 678, in producer for records in self.scroll_all_records( File "/home/worker/app/private_gpt/components/vector_store/patched_qdrant_store.py", line 524, in scroll_all_records records, next_offset = self._client.scroll( ^^^^^^^^^^^^^^^^^^^^ File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/qdrant_client.py", line 761, in scroll return self._client.scroll( ^^^^^^^^^^^^^^^^^^^^ File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/local/qdrant_local.py", line 519, in scroll return collection.scroll( ^^^^^^^^^^^^^^^^^^ File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/local/local_collection.py", line 1904, in scroll return self._scroll_by_id( ^^^^^^^^^^^^^^^^^^^ File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/local/local_collection.py", line 1943, in _scroll_by_id mask = self._payload_and_non_deleted_mask(scroll_filter) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/local/local_collection.py", line 506, in _payload_and_non_deleted_mask payload_mask = calculate_payload_mask( ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/worker/app/.venv/lib/python3.11/site-packages/qdrant_client/local/payload_filters.py", line 332, in calculate_payload_mask if not deleted[i]: ~~~~~~~^^^ IndexError: index 1699 is out of bounds for axis 0 with size 1699
Steps to Reproduce
- Install Docker container
- Attempt to upload document
Expected Behavior
Document should be available to the agent
Actual Behavior
Document is not available to the agent.
Environment
Docker installation on a Debian host
Additional Information
No response
Version
Latest
Setup Checklist
- Confirm that you have followed the installation instructions in the project’s documentation.
- Check that you are using the latest version of the project.
- Verify disk space availability for model storage and data processing.
- Ensure that you have the necessary permissions to run the project.
NVIDIA GPU Setup Checklist
- Check that the all CUDA dependencies are installed and are compatible with your GPU (refer to CUDA's documentation)
- Ensure an NVIDIA GPU is installed and recognized by the system (run
nvidia-smito verify). - Ensure proper permissions are set for accessing GPU resources.
- Docker users - Verify that the NVIDIA Container Toolkit is configured correctly (e.g. run
sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi)
Source: zylon-ai/private-gpt