Chunk #649

Aus: AI-Services (Index: 14)

127 Tokens
Synced Status
« Vorheriger (#13) Nächster (#15) »

Taxonomie

Kategorie AI-Services
Pfad AI-Services > ChatService > RAG Pipeline
Heading-Pfad AI-Services > AI Services > ChatService > Methoden

Entities

Name Typ
OllamaService SERVICE
QdrantService SERVICE
ClaudeService SERVICE
RAG TECHNOLOGY
Chat SERVICE
Anthropic MODEL

Keywords

ChatService RAG Ollama Qdrant Claude Model Question Answer Sources

Inhalt

final readonly class ChatService
{
    public function __construct(
        OllamaService $ollama,
        QdrantService $qdrant,
        ClaudeService $claude
    );

    /**
     * Führt vollständige RAG-Chat-Pipeline aus.
     * @return array{
     *   question: string,
     *   answer: string,
     *   sources: array,
     *   model: string,
     *   usage?: array,
     *   chunks_used: int
     * }
     * @throws RuntimeException
     */
    public function chat(
        string $question,
        string $model = 'anthropic',
        string $collection = 'documents',
        int $limit = 5
    ): array;
}

Clean Content

```
`final readonly class ChatService
{
 public function __construct(
 OllamaService $ollama,
 QdrantService $qdrant,
 ClaudeService $claude
 );

 /**
 * Führt vollständige RAG-Chat-Pipeline aus.
 * @return array{
 * question: string,
 * answer: string,
 * sources: array,
 * model: string,
 * usage?: array,
 * chunks_used: int
 * }
 * @throws RuntimeException
 */
 public function chat(
 string $question,
 string $model = 'anthropic',
 string $collection = 'documents',
 int $limit = 5
 ): array;
}`
```

Metadaten

Analysiert am20.12.2025 12:48:57
Analyse-Modellgemma3:4b-it-qat
Embedding-Modellmxbai-embed-large
Qdrant-IDf154882b-efd8-46ba-b3a9-5ef656430734
Erstellt20.12.2025 12:34:42
Aktualisiert20.12.2025 12:53:41