Chunk #643

Aus: AI-Services (Index: 8)

146 Tokens
Synced Status
« Vorheriger (#7) Nächster (#9) »

Taxonomie

Kategorie AI-Services
Pfad AI-Services > QdrantService > Vector Search
Heading-Pfad AI-Services > AI Services > QdrantService > Code-Beispiel

Entities

Name Typ
Qdrant SERVICE
Infrastructure TECHNOLOGY
Vektorsuche CONCEPT
Vektoren DATA
Collection CONCEPT

Keywords

Qdrant Vector Search Vektoren Collection Search

Inhalt

use Infrastructure\AI\QdrantService;

$qdrant = new QdrantService('http://localhost:6333');

// Vektorsuche
$vector = [0.123, -0.456, 0.789, ...]; // 1024-dimensional
$results = $qdrant->search($vector, 'documents', 5);
// Returns: [
//   ['id' => 1, 'score' => 0.89, 'payload' => ['content' => '...', 'title' => '...']],
//   ['id' => 2, 'score' => 0.76, 'payload' => ['content' => '...', 'title' => '...']]
// ]

// Collection prüfen
if ($qdrant->collectionExists('documents')) {
    $info = $qdrant->getCollectionInfo('documents');
    echo "Vektoren: " . $info['vectors_count'];
}

Clean Content

```
`use Infrastructure\AI\QdrantService;

$qdrant = new QdrantService('http://localhost:6333');

// Vektorsuche
$vector = [0.123, -0.456, 0.789, ...]; // 1024-dimensional
$results = $qdrant->search($vector, 'documents', 5);
// Returns: [
// ['id' => 1, 'score' => 0.89, 'payload' => ['content' => '...', 'title' => '...']],
// ['id' => 2, 'score' => 0.76, 'payload' => ['content' => '...', 'title' => '...']]
// ]

// Collection prüfen
if ($qdrant->collectionExists('documents')) {
 $info = $qdrant->getCollectionInfo('documents');
 echo "Vektoren: " . $info['vectors_count'];
}`
```

Metadaten

Analysiert am20.12.2025 12:48:39
Analyse-Modellgemma3:4b-it-qat
Embedding-Modellmxbai-embed-large
Qdrant-ID565c24c0-dda2-4a49-b598-a88cf014c7e0
Erstellt20.12.2025 12:34:42
Aktualisiert20.12.2025 12:53:41