Comments (6)
@iessi12 can you provide a minimal repro of this. I would like to repro and debug. I can't repro locally
from chroma.
Now you can reproduce it.
print(f"before delete collection count:{db._collection.count()}")
db.delete_collection()
print(f"after delete collection count:{db._collection.count()}")
It seems that calling db._collection.count() after db.delete_collection() causes an error.
from chroma.
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 delete_colection()
call. So a subsequent call to count()
results in a query to Chroma with a collection ID that doesn't exist.
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.
from chroma.
The second problem with the validation was addressed already in #2048 (not in 0.5.0
release)
from chroma.
Nice! Thanks @iessi12 for reporting and @tazarov for fixing this promptly. Closing this GHI then.
from chroma.
I appreciate your cooperation.
from chroma.
Related Issues (20)
- [ENH] Client / Server versioning compatibility HOT 1
- [Install issue]: Authentication token not applied when using docker HOT 2
- [Feature Request]: AUR package
- [Bug]: 100% appear, windows11, python 3.11.9, the error will appear when 100th data insert to collection HOT 2
- [Bug]: System cache not cleared when a new database is loaded with same persitent_directory HOT 2
- '"chromadb"' has no exported member named 'OllamaEmbeddingFunction'[Bug]: HOT 1
- [Bug]: Docker compose chroma fail to build due to numpy 2.0 HOT 2
- ChromadB alters the order of metadata text compared to original HOT 3
- [Bug]: RuntimeError: Not enough memory: loadIndex failed to allocate linklist from Chroma HOT 1
- [Bug]: Version 0.5.4 does not work on local VS code HOT 3
- [Bug]: Error executing model: Error computing NN outputs. HOT 3
- [Feature Request]: is there a plan to support batch processing in OpenCLIPEmbeddingFunction?
- Chroma is running in http-only client mode, and can only be run with 'chromadb.api.fastapi.FastAPI' as the chroma_api_impl HOT 3
- [Bug]: Collection.delete raises Exception instead of ValueError HOT 1
- [Bug]: Error chroma with protobuf HOT 2
- [Bug]: chromadb.api.configuration.InvalidConfigurationError: batch_size must be less than or equal to sync_threshold HOT 7
- [Install issue]: Conflict in dependencies between chromadb and pydantic Basesettings HOT 2
- [Feature Request]: Add functionality for dimension size parameter in embedding_functions.OpenAIEmbeddingFunction() as introduced by OPENAI for new embedding models HOT 6
- [Bug]: 0.5.4 breaks static type checks for Collection.query with include HOT 2
- [Bug]: Docker Compose issue misisng docker_entrypoint.sh HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chroma.