agentskit.js
Memory

chroma

Chroma v2 vector memory via HTTP, with local and hosted deployment support.

import { chroma } from '@agentskit/memory'

const store = chroma({
  url: process.env.CHROMA_URL ?? 'http://localhost:8000',
  collection: 'agentskit',
  tenant: process.env.CHROMA_TENANT,
  database: process.env.CHROMA_DATABASE,
  apiKey: process.env.CHROMA_API_KEY,
})

The adapter resolves the collection name to its Chroma v2 collection ID on the first operation and caches it for subsequent stores, searches, and deletes. tenant and database default to Chroma's default_tenant and default_database, so local deployments only need url and collection.

#Options

OptionType
urlstring
collectionstring
tenantstring?
databasestring?
apiKeystring?
headersRecord<string, string>?
topKnumber?
fetchtypeof globalThis.fetch?

apiKey is sent as x-chroma-token. Use headers when a hosted or proxied deployment requires additional request headers.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.