Coder Social home page Coder Social logo

Comments (3)

jeffchuber avatar jeffchuber commented on July 23, 2024 3

Hi @Shomvel - Chroma is used by people creating persistant apps, but also people who just want an "in-memory" database to run some quick computation, for example inside a Jupyter notebook.

Making persistence the default would break the idempotency of using chroma in that case (you can run the same script twice and get the same result).

That all being said..... I do agree the docs are confusing in that place! And we also want to clean up the ergonomics around how someone would instantiate a persistent client, persist, load, and generally query it. One idea we had was instead of

import chromadb
client = chromadb.Client() // in-memory
client = chromadb.PersistentClient() //in-memory with persistence

What do you think about this?

cc @wpnbos

from chroma.

Shomvel avatar Shomvel commented on July 23, 2024

I think it's better to centralize client settings. What about making it an option and making it clear in doc that default behavior is in-memory w/o persistence?

If persist=True, make impl='duckdb+parquet' or you can also specify impl.

import chromadb
chromadb.Client() // w/o persistence
chromadb.Client(persistence=True) // persists, impl=duckdb+parquet
chromadb.Client(persistence=True, impl='clickhouse') // impl=clickhouse

from chroma.

atroyn avatar atroyn commented on July 23, 2024

Persistence requires the user to pass in the persistence_directory which I think functions fine as a flag. I agree that the impl is mostly redundant unless the user wants to use Clickhouse specifically

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.