Chunk #643
Aus: AI-Services (Index: 8)
146
Tokens
Synced
Status
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
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 am | 20.12.2025 12:48:39 |
|---|---|
| Analyse-Modell | gemma3:4b-it-qat |
| Embedding-Modell | mxbai-embed-large |
| Qdrant-ID | 565c24c0-dda2-4a49-b598-a88cf014c7e0 |
| Erstellt | 20.12.2025 12:34:42 |
| Aktualisiert | 20.12.2025 12:53:41 |