API

Interne PHP-Services und REST-Endpunkte für KI-Integration.

Unterkapitel

Chat API

RAG-Chat mit Vektorsuche und LLM-Integration

Tasks API

Task-Management, Zuweisungen, KI-Ausführung

Content API

Content-Aufträge erstellen und bearbeiten

Explorer API

Dokumente, Chunks, Taxonomie, Suche

Services

OllamaService, QdrantService, ClaudeService

Architektur

Vollständig in PHP implementiert (Migration von Python zu nativen Services abgeschlossen):

Browser (HTMX/JS)
    ↓
PHP Controller (/src/Controller/)
    ↓
PHP Services (/src/Infrastructure/AI/)
├── AIConfig.php         (Config & Factory)
├── ChatService.php      (RAG-Orchestrator)
├── OllamaService.php    (Embeddings)
├── QdrantService.php    (Vektorsuche)
└── ClaudeService.php    (LLM)
    ↓
┌─────────────┬─────────────┬─────────────┐
│ Ollama API  │ Qdrant API  │ Claude API  │
│ :11434      │ :6333       │ anthropic   │
└─────────────┴─────────────┴─────────────┘

Endpunkte-Übersicht

Chat API

MethodePfadBeschreibung
POST/api/v1/chatChat-Nachricht senden
GET/api/v1/chat/searchVektorsuche
GET/api/v1/chat/statsStatistiken

Tasks API

MethodePfadBeschreibung
GET/POST/api/v1/tasksTasks auflisten/erstellen
GET/PUT/DELETE/api/v1/tasks/{id}Task-Details/Update/Löschen
POST/api/v1/tasks/{id}/executeKI-Ausführung

Content API

MethodePfadBeschreibung
PUT/api/v1/content/{id}Auftrag aktualisieren

Explorer API

MethodePfadBeschreibung
GET/api/v1/explorer/statsStatistiken
GET/api/v1/explorer/dokumenteDokumente-Liste
GET/api/v1/explorer/seitenSeiten-Liste
GET/api/v1/explorer/chunksChunks-Liste
GET/api/v1/explorer/taxonomieTaxonomie
GET/api/v1/explorer/entitiesEntities
POST/api/v1/explorer/sucheHybrid-Suche

Services

ServicePfadFunktion
AIConfig/src/Infrastructure/AI/AIConfig.phpConfig & Factory
ChatService/src/Infrastructure/AI/ChatService.phpRAG-Orchestrator
OllamaService/src/Infrastructure/AI/OllamaService.phpEmbeddings & LLM
QdrantService/src/Infrastructure/AI/QdrantService.phpVektorsuche
ClaudeService/src/Infrastructure/AI/ClaudeService.phpLLM-Antworten

Unterseiten