Skip to main content

AI Context

This document serves as a machine-readable reference of the Zyrabit SLM architecture for AI coding assistants.

Hexagonal Schema​

{
"project": "Zyrabit SLM",
"architecture": "Hexagonal (Ports and Adapters)",
"layers": {
"domain": ["use_cases", "services"],
"ports": ["InferencePort", "StreamingInferencePort", "VectorStorePort", "McpClientPort"],
"adapters": ["OllamaInferenceAdapter", "ChromaAdapter", "InternalMcpClientAdapter"]
}
}

File Path Reference​

  • Domain Logic: api-rag/app/domain/
  • Ports: api-rag/app/ports/
  • Adapters: api-rag/app/infrastructure/
  • FastAPI Endpoints: api-rag/app/api/v1/endpoints/
  • Wiring (DI): api-rag/app/wiring.py

Architecture Diagram​

Environment Variables​

VariableDescription
INFERENCE_PROVIDERSelects the active Inference Adapter (e.g., ollama, mlx)
VECTOR_STORESelects the active Vector Store Adapter (e.g., chroma)
MODEL_NAMEActive text generation model