Coder Social home page Coder Social logo

Comments (6)

sanketkedia avatar sanketkedia commented on August 27, 2024

@iessi12 can you provide a minimal repro of this. I would like to repro and debug. I can't repro locally

from chroma.

iessi12 avatar iessi12 commented on August 27, 2024

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.

tazarov avatar tazarov commented on August 27, 2024

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.

tazarov avatar tazarov commented on August 27, 2024

The second problem with the validation was addressed already in #2048 (not in 0.5.0 release)

from chroma.

sanketkedia avatar sanketkedia commented on August 27, 2024

Nice! Thanks @iessi12 for reporting and @tazarov for fixing this promptly. Closing this GHI then.

from chroma.

iessi12 avatar iessi12 commented on August 27, 2024

I appreciate your cooperation.

from chroma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.