chroma

chroma-coreApache-2.0活跃维护

开源的向量数据库,专门给 AI 应用做检索基础设施,支持 RAG、语义搜索和智能体记忆存储,底层用 Rust 重写后性能更强。

Search infrastructure for AI

1.5.9发布于 2026-05-05 05:55 UTC29,666star +16 / 7 天2,601fork同步于 2026-11-10 11:21 UTC

怎么上手

由 README 提炼,执行前请确认
pip install chromadb
chroma run --path /chroma_db_path
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

开源 AI 数据基础设施,提供向量、混合与全文检索,帮工程师快速搭建相似度搜索

开源的向量数据库,专门给 AI 应用做检索基础设施,支持 RAG、语义搜索和智能体记忆存储,底层用 Rust 重写后性能更强。

核心能力

  • 核心 API 仅 4 个函数即可完成增删查
  • 自动处理分词、嵌入与索引,也可自带向量
  • 支持按元数据和文档内容过滤查询
  • 提供 Python 与 JavaScript 客户端
  • 支持内存原型与客户端-服务器持久化模式

容易踩的坑

默认 Client() 为内存模式,数据不持久化,需自行配置持久化;客户端-服务器模式需单独执行 chroma run 启动服务

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本1.5.9
  1. 1.5.9最新正式版2026-05-05 · 2026-05-05 05:55 UTC

    Version: 1.5.9 Git ref: refs/tags/1.5.9 Build Date: 2026-05-05T05:55 PIP Package: chroma-1.5.9.tar.gz Github Container Registry Image: :1.5.9 DockerHub Image: :1.5.9

    What's Changed

  2. cli-1.4.42026-05-05 · 2026-05-05 04:47 UTC
    查看更新说明

    CLI release.

  3. foundation-cli-v0.1.0-alpha.3pre-release2026-05-01 · 2026-05-01 00:44 UTC
    查看更新说明

    v0.1.0-alpha.3 (2026-05-01)

    • fix release workflow: use rust/foundation/target for standalone workspace binary path
  4. 1.5.82026-04-16 · 2026-04-16 23:35 UTC
    查看更新说明

    Version: 1.5.8 Git ref: refs/tags/1.5.8 Build Date: 2026-04-16T23:35 PIP Package: chroma-1.5.8.tar.gz Github Container Registry Image: :1.5.8 DockerHub Image: :1.5.8

    What's Changed

    New Contributors

  5. latestLatestpre-release2025-04-01 · 2025-04-01 23:29 UTC
    查看更新说明

    Version: 1.5.10.dev326 Git ref: refs/heads/main Build Date: 2026-10-22T01:30 PIP Package: chroma-1.5.10.dev326.tar.gz Github Container Registry Image: :1.5.10.dev326 DockerHub Image: :1.5.10.dev326

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Chroma Chroma

    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