Skip to content

Commit aa28ae0

Browse files
committed
fix(store): qdrant arguments moved to optionals
1 parent 46f0b27 commit aa28ae0

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2987,6 +2987,24 @@ private function getFullConfig(): array
29872987
'distance' => 'Cosine',
29882988
'async' => false,
29892989
],
2990+
'my_custom_dimensions_qdrant_store' => [
2991+
'endpoint' => 'http://127.0.0.1:8000',
2992+
'api_key' => 'test',
2993+
'collection_name' => 'foo',
2994+
'dimensions' => 768,
2995+
],
2996+
'my_custom_distance_qdrant_store' => [
2997+
'endpoint' => 'http://127.0.0.1:8000',
2998+
'api_key' => 'test',
2999+
'collection_name' => 'foo',
3000+
'distance' => 'Cosine',
3001+
],
3002+
'my_async_qdrant_store' => [
3003+
'endpoint' => 'http://127.0.0.1:8000',
3004+
'api_key' => 'test',
3005+
'collection_name' => 'foo',
3006+
'async' => false,
3007+
],
29903008
],
29913009
'redis' => [
29923010
'my_redis_store' => [

src/store/src/Bridge/Qdrant/Store.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public function __construct(
3131
private readonly string $endpointUrl,
3232
#[\SensitiveParameter] private readonly string $apiKey,
3333
private readonly string $collectionName,
34-
private readonly int $embeddingsDimension = 1536,
35-
private readonly string $embeddingsDistance = 'Cosine',
36-
private readonly bool $async = false,
34+
private readonly ?int $embeddingsDimension = 1536,
35+
private readonly ?string $embeddingsDistance = 'Cosine',
36+
private readonly ?bool $async = false,
3737
) {
3838
}
3939

0 commit comments

Comments
 (0)