Skip to content

Commit 693fc5a

Browse files
committed
Add bundle configuration for Qdrant async
1 parent 8b90d1e commit 693fc5a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/ai-bundle/config/options.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@
607607
->stringNode('collection_name')->cannotBeEmpty()->end()
608608
->integerNode('dimensions')->end()
609609
->stringNode('distance')->end()
610+
->booleanNode('async')->defaultFalse()->end()
610611
->end()
611612
->end()
612613
->end()

src/ai-bundle/src/AiBundle.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,10 @@ private function processStoreConfig(string $type, array $stores, ContainerBuilde
11021102
$arguments[5] = $store['distance'];
11031103
}
11041104

1105+
if (\array_key_exists('async', $store)) {
1106+
$arguments[6] = $store['async'];
1107+
}
1108+
11051109
$definition = new Definition(QdrantStore::class);
11061110
$definition
11071111
->addTag('ai.store')

src/ai-bundle/tests/DependencyInjection/AiBundleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,6 +2942,7 @@ private function getFullConfig(): array
29422942
'collection_name' => 'foo',
29432943
'dimensions' => 768,
29442944
'distance' => 'Cosine',
2945+
'async' => false,
29452946
],
29462947
],
29472948
'redis' => [

0 commit comments

Comments
 (0)