Skip to main content
Chroma provides native integration with LlamaIndex (formerly GPT Index), enabling you to build powerful data-driven LLM applications.

Installation

Basic usage

Using persistent storage

Using with a remote server

Advanced querying

Metadata filtering

Custom retrievers

Loading existing collections

Configuration options

Collection
required
Chroma collection instance
string
Chroma server host (for HttpClient)
int
Chroma server port (for HttpClient)
string
Path for persistent storage (for PersistentClient)

Use cases

Document indexing

Index large document collections for retrieval

Knowledge graphs

Build knowledge graphs with vector embeddings

Multi-modal search

Search across text, images, and other modalities

Agents

Build LLM agents with memory backed by Chroma

Best practices

  • Use EphemeralClient for testing and prototyping
  • Use PersistentClient for local development with persistence
  • Use HttpClient for production client-server deployments
  • Batch document insertions for better performance
  • Use appropriate chunk sizes for your documents
  • Configure HNSW index parameters for your use case

Resources

LlamaIndex handles document chunking and embedding automatically, making it easy to get started with Chroma.