Chunk #642

Aus: AI-Services (Index: 7)

201 Tokens
Synced Status
« Vorheriger (#6) Nächster (#8) »

Taxonomie

Kategorie AI Services
Pfad AI Services > QdrantService > Vector Similarity Search
Heading-Pfad AI-Services > AI Services > QdrantService > Methoden

Entities

Name Typ
QdrantService SERVICE
Qdrant TECHNOLOGY
Vector CONCEPT
Embedding Vector CONCEPT
Collection CONFIG
Runtime Exception ERROR

Keywords

Qdrant Vector Search Similarity Collection API

Inhalt

final readonly class QdrantService
{
    public function __construct(string $host = 'http://localhost:6333');

    /**
     * Sucht ähnliche Dokumente per Vektor-Similarity.
     * @param array<int, float> $vector Embedding-Vektor
     * @return array<int, array{id: int|string, score: float, payload: array}>
     * @throws RuntimeException
     */
    public function search(
        array $vector,
        string $collection = 'documents',
        int $limit = 5
    ): array;

    /**
     * Prüft ob Collection existiert.
     */
    public function collectionExists(string $collection): bool;

    /**
     * Prüft ob Qdrant API erreichbar ist.
     */
    public function isAvailable(): bool;

    /**
     * Holt Collection-Informationen.
     * @return array<string, mixed>|null
     * @throws RuntimeException
     */
    public function getCollectionInfo(string $collection): ?array;
}

Clean Content

```
`final readonly class QdrantService
{
 public function __construct(string $host = 'http://localhost:6333');

 /**
 * Sucht ähnliche Dokumente per Vektor-Similarity.
 * @param array<int, float> $vector Embedding-Vektor
 * @return array<int, array{id: int|string, score: float, payload: array}>
 * @throws RuntimeException
 */
 public function search(
 array $vector,
 string $collection = 'documents',
 int $limit = 5
 ): array;

 /**
 * Prüft ob Collection existiert.
 */
 public function collectionExists(string $collection): bool;

 /**
 * Prüft ob Qdrant API erreichbar ist.
 */
 public function isAvailable(): bool;

 /**
 * Holt Collection-Informationen.
 * @return array<string, mixed>|null
 * @throws RuntimeException
 */
 public function getCollectionInfo(string $collection): ?array;
}`
```

Metadaten

Analysiert am20.12.2025 12:48:36
Analyse-Modellgemma3:4b-it-qat
Embedding-Modellmxbai-embed-large
Qdrant-ID32518342-fc67-4748-81c4-6e59a9b22afe
Erstellt20.12.2025 12:34:42
Aktualisiert20.12.2025 12:53:41