Robert EscrivaandAI 5f30478c11 [BUG](local): Reject writes to invalid indexes (#7770)
## Description of changes

Validate effective persisted HNSW settings before appending local logs.
This prevents repeated failing writes from growing the queue while
retaining existing records for recovery after configuration repair.

Cover legacy invalid settings and verify the log remains empty.

## Test plan

CI

## Migration plan

N/A

## Observability plan

N/A

## Documentation Changes

N/A

Co-authored-by: AI
2026-10-09 11:50:37 -07:00
2024-05-10 08:28:48 -07:00
2023-09-11 20:49:55 -07:00
2025-08-13 23:31:49 +00:00
2022-10-05 10:58:45 -07:00
2026-03-18 13:46:51 -07:00

Chroma Chroma

Chroma - the open-source data infrastructure for AI.

Discord | License | Docs | Homepage

pip install chromadb # python client
# for javascript, npm install chromadb!
# for client-server mode, chroma run --path /chroma_db_path

Chroma Cloud

Our hosted service, Chroma Cloud, powers serverless vector, hybrid, and full-text search. It's extremely fast, cost-effective, scalable and painless. Create a DB and try it out in under 30 seconds with $5 of free credits.

Get started with Chroma Cloud

API

The core API is only 4 functions (run our 💡 Google Colab):

import chromadb
# setup Chroma in-memory, for easy prototyping. Can add persistence easily!
client = chromadb.Client()

# Create collection. get_collection, get_or_create_collection, delete_collection also available!
collection = client.create_collection("all-my-documents")

# Add docs to the collection. Can also update and delete. Row-based API coming soon!
collection.add(
    documents=["This is document1", "This is document2"], # we handle tokenization, embedding, and indexing automatically. You can skip that and add your own embeddings as well
    metadatas=[{"source": "notion"}, {"source": "google-docs"}], # filter on these!
    ids=["doc1", "doc2"], # unique for each doc
)

# Query/search 2 most similar results. You can also .get by id
results = collection.query(
    query_texts=["This is a query document"],
    n_results=2,
    # where={"metadata_field": "is_equal_to_this"}, # optional filter
    # where_document={"$contains":"search_string"}  # optional filter
)

Learn about all features on our Docs

Get involved

Chroma is a rapidly developing project. We welcome PR contributors and ideas for how to improve the project.

Release Cadence We currently release new tagged versions of the pypi and npm packages on Mondays. Hotfixes go out at any time during the week.

License

Apache 2.0

S
Description
Search infrastructure for AI
Readme Apache-2.0
904 MiB
Languages
Rust 71.1%
Python 14.7%
TypeScript 6.2%
Go 5.1%
Jupyter Notebook 2.2%
Other 0.5%