Skip to contents

Create a Collection in ChromaDB

Usage

create_collection(
  client,
  name,
  metadata = NULL,
  configuration = NULL,
  tenant = "default_tenant",
  database = "default_database",
  get_or_create = FALSE
)

Arguments

client

A ChromaDB client object

name

The name of the collection

metadata

Optional metadata for the collection

configuration

Optional configuration for the collection. For HNSW configuration, use a list with hnsw_space (e.g., "cosine", "l2", "ip").

tenant

The tenant name (default: "default")

database

The database name (default: "default")

get_or_create

Whether to get the collection if it exists (default: FALSE)

Value

A collection object