Set Up ChromaDB with Docker & Enable Role-Based Token Authentication

Ғылым және технология

First, we'll get ChromaDB up and running quickly in a Docker container. ChromaDB can be accessed via a HTTP client without authentication. Then, add token-based authentication, but this will only work for 1 token i.e. 1 admin user. Finally, add role-based token authentication to allow for multiple users with different types of permissions to connect to ChromaDB. I'll also show how to resolve the "ModuleNotFoundError: No module named hypothesis" error in version 0.5.2 of ChromaDB by building a new image with 'hypothesis' installed. This technique can also be used to install your packages into the container.
Github code: github.com/johnnycode8/chroma...
Support me here: www.buymeacoffee.com/johnnycode

Пікірлер: 4

  • @mohamedbassiony9322
    @mohamedbassiony932214 күн бұрын

    Awesome!! Is it better to divide data into chunks before embeddings?

  • @johnnycode

    @johnnycode

    14 күн бұрын

    It depends on the problem that you're trying to solve. The semantic meaning of a line of text vs a paragraph of text vs a page of text vs the whole document are different. Which level to divide into chunks depends on what your needs are when querying the database.

  • @mystic2212
    @mystic221215 күн бұрын

    Really good video. I have a big issue with the understanding how to delete and add files to the chromaDB I have done it also with a Docker Container and I have issue to get the file Names for example of the documents who are in the DB stored. I am also using the Metadata fields for reference files for specific chunks etc. Is there any explanation of those concepts, that would be awesome!

  • @johnnycode

    @johnnycode

    15 күн бұрын

    I use the metadata fields in these videos and also use the Where Filter to query, let me know if these solves your problem: kzread.info/dash/bejne/g4eLlK5xlM7His4.html kzread.info/dash/bejne/p5OCk9Zpc6XboaQ.html

Келесі