-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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]: client/server mode RuntimeError: coroutine raised StopIteration #2213
Comments
@iessi12 can you provide a minimal repro of this. I would like to repro and debug. I can't repro locally |
Now you can reproduce it. print(f"before delete collection count:{db._collection.count()}") It seems that calling db._collection.count() after db.delete_collection() causes an error. |
hey @iessi12, ok I see where the issues are. One is on Chroma side and another in Langchain🦜🔗. The problem with Langchain🦜🔗 and the fact that a reference to the original collection, including its id (UUIDv4), is kept even after a The above leads to the problem in Chroma and it is more related to validation rather than an actual functional error. We'll fix both of these ASAP. Thank you for reporting this. |
The second problem with the validation was addressed already in #2048 (not in |
I appreciate your cooperation. |
…llection (#21817) **Description**: - Reference to `Collection` object is set to `None` when deleting a collection `delete_collection()` - Added utility method `reset_collection()` to allow recreating the collection - Moved collection creation out of `__init__` into `__ensure_collection()` to be reused by object init and `reset_collection()` - `_collection` is now a property to avoid breaking changes **Issues**: - chroma-core/chroma#2213 **Twitter**: @t_azarov
…llection (#21817) **Description**: - Reference to `Collection` object is set to `None` when deleting a collection `delete_collection()` - Added utility method `reset_collection()` to allow recreating the collection - Moved collection creation out of `__init__` into `__ensure_collection()` to be reused by object init and `reset_collection()` - `_collection` is now a property to avoid breaking changes **Issues**: - chroma-core/chroma#2213 **Twitter**: @t_azarov
Hi community , |
What happened?
It is used in client/server mode.
After creating a collection with db.add_documents(), I get an error when deleting it with db.delete_collection().
When I delete it, db._collection.count() is set to 0, but I still get an error.
RuntimeError: coroutine raised StopIteration
Versions
client
Chroma 0.5.0
Python 3.11.9
langchain 0.1.13
server
Chroma 0.5.0
Python 3.11.9
Relevant log output
No response
The text was updated successfully, but these errors were encountered: