chromadb-tutorial icon indicating copy to clipboard operation
chromadb-tutorial copied to clipboard

This repo is a beginner's guide to using Chroma. It covers all the major features including adding data, querying collections, updating and deleting data, and using different embedding functions. Each...

Welcome to the easypeasy ChromaDB Tutorial!

This repository provides a friendly and beginner's guide to ChromaDB's python client, a Python library that helps you manage collections of embeddings. Each directory in this repository corresponds to a specific topic, complete with its own README and Python scripts for a hands-on understanding.

Table of Contents

  1. Introduction
    • intro.py
  2. Collections
    • matrix_collections.py
  3. Adding Data
    • Adding Raw Documents
      • adding_raw_docs.py
    • Adding Document-Associated Embeddings
      • add_doc_emb.py
    • Adding Embeddings and Metadata
      • add_emb_meta.py
  4. Querying a Collection
    • Querying Embeddings
      • query_emb.py
    • Querying Texts
      • query_texts.py
    • Retrieving Items by Id
      • retrieve_by_id.py
    • Choosing Returned Data
      • choose_data.py
    • Using 'where' Filters
      • using_where_filters.py
  5. Updating Data in a Collection
    • Updating Property
      • update_items.py
    • Upsert Operation
      • upsert_operation.py
  6. Deleting Data in a Collection
    • Delete by ID
      • delete_by_id.py
    • Delete with 'where' Filter
      • delete_items_where.py
  7. Using Embedding Functions
    • OpenAI
      • openai_emb_func.py
    • Custom Embedding Functions
      • custom_emb_func.py

I hope you find this repository helpful in your journey with ChromaDB. Happy coding!