Skip to content

feat: add Chroma sample as a vector store - #630

Merged
HavenDV merged 1 commit into
tryAGI:mainfrom
Laurianti:add-chroma-sample
Oct 16, 2026
Merged

HavenDV merged 1 commit into
tryAGI:mainfrom
Laurianti:add-chroma-sample

Conversation

@Laurianti

@Laurianti Laurianti commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Adds a sample with Chroma as the vector store, through CommunityToolkit.VectorData.Chroma, the Chroma provider of the AI Community Toolkit for Microsoft.Extensions.VectorData.

  • examples/LangChain.Samples.Chroma: LangChain.Samples.LocalRAG with ChromaVectorStore in place of SqliteVectorStore. Same Ollama models (llama3, all-minilm), PDF and question.
  • LangChain.slnx: registers the sample under /Samples/ (alphabetical).
  • LangChain.Databases already runs its vector store tests on Chroma with the same package (feat: add Chroma to the integration tests LangChain.Databases#180). I maintain ChromaDotNet.Client, which the provider builds on. The provider is also used by the Microsoft course Generative AI for Beginners .NET. Semantic Kernel recommends CommunityToolkit.VectorData.Chroma for Chroma in .NET, and Microsoft Agent Framework lists it among its .NET community projects.

Testing: .NET SDK 10.0.401: dotnet build and dotnet test of LangChain.slnx in Release on Linux (0 errors, 56 passed), dotnet format --verify-no-changes (nothing in the new project). Run against chromadb/chroma:1.5.9 with the Ollama models of LocalRAG: the documents are stored in Chroma, and the answer is the same as LocalRAG with SQLite.

The local RAG sample with Chroma as the vector store, through CommunityToolkit.VectorData.Chroma, a Microsoft.Extensions.VectorData provider for Chroma.
Copilot AI balanced review requested due to automatic review settings October 15, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The isolated sample follows the established LocalRAG workflow, with no unresolved findings.

0 open findings

What changed in this PR

Adds a Chroma-backed retrieval-augmented generation sample using the existing LocalRAG workflow.

Changes:

  • Uses Chroma for document storage and retrieval while retaining Ollama models.
  • Adds the sample project and registers it in the solution.
File Description
LangChain.slnx Registers the Chroma sample under Samples.
examples/​LangChain.Samples.Chroma/​Program.cs Implements PDF ingestion, retrieval, and question answering with Chroma.
examples/​LangChain.Samples.Chroma/​LangChain.Samples.Chroma.csproj Defines the sample and its dependencies.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@HavenDV
HavenDV merged commit 29c8ce9 into tryAGI:main Oct 16, 2026
1 check passed
@Laurianti
Laurianti deleted the add-chroma-sample branch October 16, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants