Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 8405efb

Browse files
authored
fix: chroma db namespace (#27)
1 parent b1450f5 commit 8405efb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=8.2",
14-
"php-llm/llm-chain": "^0.2",
14+
"php-llm/llm-chain": "^0.3",
1515
"symfony/config": "^6.4 || ^7.0",
1616
"symfony/dependency-injection": "^6.4 || ^7.0",
1717
"symfony/framework-bundle": "^6.4 || ^7.0"

src/DependencyInjection/LlmChainExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PhpLlm\LlmChain\OpenAI\Platform\Azure as AzurePlatform;
1313
use PhpLlm\LlmChain\OpenAI\Platform\OpenAI as OpenAIPlatform;
1414
use PhpLlm\LlmChain\Store\Azure\SearchStore as AzureSearchStore;
15-
use PhpLlm\LlmChain\Store\ChromaDb\Store as ChromaDbStore;
15+
use PhpLlm\LlmChain\Store\ChromaDB\Store as ChromaDBStore;
1616
use PhpLlm\LlmChain\Store\StoreInterface;
1717
use PhpLlm\LlmChain\Store\VectorStoreInterface;
1818
use PhpLlm\LlmChain\ToolBox\AsTool;
@@ -148,7 +148,7 @@ private function processEmbeddingsConfig(string $name, array $embeddings, Contai
148148
private function processStoreConfig(string $name, array $stores, ContainerBuilder $container): void
149149
{
150150
if ('chroma-db' === $stores['engine']) {
151-
$definition = new ChildDefinition(ChromaDbStore::class);
151+
$definition = new ChildDefinition(ChromaDBStore::class);
152152
$definition->replaceArgument('$collectionName', $stores['collection_name']);
153153

154154
$container->setDefinition('llm_chain.store.'.$name, $definition);

src/Resources/config/services.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PhpLlm\LlmChain\OpenAI\Platform\Azure as AzurePlatform;
1313
use PhpLlm\LlmChain\OpenAI\Platform\OpenAI as OpenAIPlatform;
1414
use PhpLlm\LlmChain\Store\Azure\SearchStore as AzureSearchStore;
15-
use PhpLlm\LlmChain\Store\ChromaDb\Store as ChromaDbStore;
15+
use PhpLlm\LlmChain\Store\ChromaDB\Store as ChromaDBStore;
1616
use PhpLlm\LlmChain\ToolBox\ParameterAnalyzer;
1717
use PhpLlm\LlmChain\ToolBox\ToolAnalyzer;
1818
use PhpLlm\LlmChain\ToolBox\ToolBox;
@@ -66,7 +66,7 @@
6666
'$indexName' => abstract_arg('Name of Azure AI Search index'),
6767
'$apiVersion' => abstract_arg('API version for Azure AI Search API'),
6868
])
69-
->set(ChromaDbStore::class)
69+
->set(ChromaDBStore::class)
7070
->abstract()
7171
->args([
7272
'$collectionName' => abstract_arg('Name of ChromaDB collection'),

0 commit comments

Comments
 (0)