Chunk #639
Aus: AI-Services (Index: 4)
152
Tokens
Synced
Status
Taxonomie
| Kategorie | AI Services |
|---|---|
| Pfad | AI Services > Ollama Service > API Methods |
| Heading-Pfad | AI-Services > AI Services > OllamaService > Methoden |
Entities
| Name | Typ |
|---|---|
| OllamaService | SERVICE |
| Embedding | CONCEPT |
| Text Generation | SERVICE |
| Ollama API | SERVICE |
| gemma3:4b-it-qat | TECHNOLOGY |
| mxbai-embed-large | TECHNOLOGY |
Keywords
Inhalt
final readonly class OllamaService
{
public function __construct(string $host = 'http://localhost:11434');
/**
* Generiert Embedding-Vektor für Text.
* @return array<int, float> 1024-dimensionaler Vektor
* @throws RuntimeException
*/
public function getEmbedding(
string $text,
string $model = 'mxbai-embed-large'
): array;
/**
* Generiert Text-Antwort mit Ollama-LLM.
* @throws RuntimeException
*/
public function generate(
string $prompt,
string $model = 'gemma3:4b-it-qat'
): string;
/**
* Prüft ob Ollama API erreichbar ist.
*/
public function isAvailable(): bool;
}Clean Content
```
`final readonly class OllamaService
{
public function __construct(string $host = 'http://localhost:11434');
/**
* Generiert Embedding-Vektor für Text.
* @return array<int, float> 1024-dimensionaler Vektor
* @throws RuntimeException
*/
public function getEmbedding(
string $text,
string $model = 'mxbai-embed-large'
): array;
/**
* Generiert Text-Antwort mit Ollama-LLM.
* @throws RuntimeException
*/
public function generate(
string $prompt,
string $model = 'gemma3:4b-it-qat'
): string;
/**
* Prüft ob Ollama API erreichbar ist.
*/
public function isAvailable(): bool;
}`
```
Metadaten
| Analysiert am | 20.12.2025 12:48:28 |
|---|---|
| Analyse-Modell | gemma3:4b-it-qat |
| Embedding-Modell | mxbai-embed-large |
| Qdrant-ID | 41116e10-22eb-4504-a3fe-03450f737aaf |
| Erstellt | 20.12.2025 12:34:42 |
| Aktualisiert | 20.12.2025 12:53:41 |