Skip to content

Commit b79d05b

Browse files
committed
fix(store): qdrant arguments moved to optionals
1 parent 8be61b1 commit b79d05b

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
@@ -2976,6 +2976,24 @@ private function getFullConfig(): array
29762976
'distance' => 'Cosine',
29772977
'async' => false,
29782978
],
2979+
'my_custom_dimensions_qdrant_store' => [
2980+
'endpoint' => 'http://127.0.0.1:8000',
2981+
'api_key' => 'test',
2982+
'collection_name' => 'foo',
2983+
'dimensions' => 768,
2984+
],
2985+
'my_custom_distance_qdrant_store' => [
2986+
'endpoint' => 'http://127.0.0.1:8000',
2987+
'api_key' => 'test',
2988+
'collection_name' => 'foo',
2989+
'distance' => 'Cosine',
2990+
],
2991+
'my_async_qdrant_store' => [
2992+
'endpoint' => 'http://127.0.0.1:8000',
2993+
'api_key' => 'test',
2994+
'collection_name' => 'foo',
2995+
'async' => false,
2996+
],
29792997
],
29802998
'redis' => [
29812999
'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)