Skip to content

ChromaDotNet.VectorData 0.4.0 - #4

Merged
Laurianti merged 1 commit into
mainfrom
vectordata-0.4.0
Oct 6, 2026
Merged

Laurianti merged 1 commit into
mainfrom
vectordata-0.4.0

Conversation

@Laurianti

Copy link
Copy Markdown
Member
  • ChromaDotNet.VectorData 0.4.0 and ChromaDotNet.Testcontainers 0.1.6.
  • ChromaVectorStore takes ownsClient: each sample gives the vector store the ChromaClient it creates for it (ownsClient: true), and the tests share the client of the fixture (ownsClient: false).

…rs 0.1.6

ChromaVectorStore takes ownsClient: each sample gives the vector store the
ChromaClient it creates for it, and the tests share the client of the fixture.
Copilot AI balanced review requested due to automatic review settings October 6, 2026 22:55
@Laurianti
Laurianti merged commit 7b3f3bf into main Oct 6, 2026
2 checks passed
@Laurianti
Laurianti deleted the vectordata-0.4.0 branch October 6, 2026 22:56

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.

Copilot review overview

🟡 Changes recommended

Undisposed collections and providers prevent the newly owned clients from being released, while the fixture no longer disposes its client.

Review effort: Balanced
Findings: 7 Medium severity

Open (7)
What changed in this PR

Updates Chroma dependencies and adopts explicit ChromaClient ownership.

Changes:

  • Upgrades VectorData to 0.4.0 and Testcontainers to 0.1.6.
  • Configures client ownership for samples and tests.
File Description
test/​.../​ChromaFixture.cs Marks the shared client as externally owned.
test/​.../​ChromaDB.AgentFramework.Sample.Tests.csproj Updates test dependencies.
test/​.../​BasicTextRagTests.cs Uses the fixture-owned client.
samples/​AgentWithRAG_Step06_ChromaRAG/​Program.cs Assigns client ownership to the store.
samples/​AgentWithRAG_Step06_ChromaRAG/​AgentWithRAG_Step06_ChromaRAG.csproj Updates VectorData.
samples/​AgentWithRAG_Step06_ChromaRAG_Ollama/​Program.cs Assigns client ownership to the store.
samples/​AgentWithRAG_Step06_ChromaRAG_Ollama/​AgentWithRAG_Step06_ChromaRAG_Ollama.csproj Updates VectorData.
samples/​AgentWithRAG_Step07_ChromaBasicTextRAG/​Program.cs Assigns client ownership to the store.
samples/​AgentWithRAG_Step07_ChromaBasicTextRAG/​AgentWithRAG_Step07_ChromaBasicTextRAG.csproj Updates VectorData.
samples/​AgentWithRAG_Step07_ChromaBasicTextRAG_Ollama/​Program.cs Assigns client ownership to the store.
samples/​AgentWithRAG_Step07_ChromaBasicTextRAG_Ollama/​AgentWithRAG_Step07_ChromaBasicTextRAG_Ollama.csproj Updates VectorData.
samples/​AgentWithMemory_Step10_MemoryUsingChroma/​Program.cs Assigns client ownership to the store.
samples/​AgentWithMemory_Step10_MemoryUsingChroma/​AgentWithMemory_Step10_MemoryUsingChroma.csproj Updates VectorData.
samples/​AgentWithMemory_Step10_MemoryUsingChroma_Ollama/​Program.cs Assigns client ownership to the store.
samples/​AgentWithMemory_Step10_MemoryUsingChroma_Ollama/​AgentWithMemory_Step10_MemoryUsingChroma_Ollama.csproj Updates VectorData.

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

using HttpClient httpClient = new();
using ChromaVectorStore vectorStore = new(
new ChromaClient(new ChromaConfigurationOptions(chromaEndpoint), httpClient),
ownsClient: true,
using HttpClient httpClient = new();
using ChromaVectorStore vectorStore = new(
new ChromaClient(new ChromaConfigurationOptions(chromaEndpoint), httpClient),
ownsClient: true,
using HttpClient httpClient = new();
using ChromaVectorStore vectorStore = new(
new ChromaClient(new ChromaConfigurationOptions(chromaEndpoint), httpClient),
ownsClient: true,
using HttpClient httpClient = new();
using ChromaVectorStore vectorStore = new(
new ChromaClient(new ChromaConfigurationOptions(chromaEndpoint), httpClient),
ownsClient: true,
using HttpClient httpClient = new();
using ChromaVectorStore vectorStore = new(
new ChromaClient(new ChromaConfigurationOptions(chromaEndpoint), httpClient),
ownsClient: true,
using HttpClient httpClient = new();
using ChromaVectorStore vectorStore = new(
new ChromaClient(new ChromaConfigurationOptions(chromaEndpoint), httpClient),
ownsClient: true,
await _container.StartAsync();
ChromaClient = new ChromaClient(new ChromaConfigurationOptions(_container.GetConnectionString()), _httpClient);
VectorStore = new ChromaVectorStore(ChromaClient, new ChromaVectorStoreOptions { EmbeddingGenerator = new WordEmbeddingGenerator(EmbeddingDimensions) });
VectorStore = new ChromaVectorStore(ChromaClient, ownsClient: false, new ChromaVectorStoreOptions { EmbeddingGenerator = new WordEmbeddingGenerator(EmbeddingDimensions) });
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.

2 participants