# ayfondation/aywizz architecture

> Architecture diagram of the GitHub repository ayfondation/aywizz, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ayfondation/aywizz
- Repository: https://github.com/ayfondation/aywizz

## Overview

AyWizz is a requirements-driven platform for conversational, AI-assisted artifact generation, with requirement traceability and ongoing validation. Its principal workflow is users working through the UI and conversation experience, managing requirements, generating artifacts, and validating implementation against requirements; memory and the LLM gateway support platform capabilities. The repository also includes AyExtractor for document extraction and enrichment. The graph combines README-documented product relationships with source-index and excerpt evidence; several subsystem internals and their wiring were not sampled, so those links are omitted.

Main entry points: [`ay_platform_core/src/ay_platform_core/c4_orchestrator/service.py`](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/service.py) (Orchestrator), [`ay_platform_core/src/ay_platform_core/c5_requirements`](https://github.com/ayfondation/aywizz/tree/main/ay_platform_core/src/ay_platform_core/c5_requirements) (Requirements), [`ay_platform_ui/app/(protected)/projects/[pid]/working-area/page.tsx`](https://github.com/ayfondation/aywizz/blob/main/ay_platform_ui/app/(protected)/projects/%5Bpid%5D/working-area/page.tsx) (Web UI), [`ay_platform_core/src/ay_platform_core/c3_conversation/service.py`](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c3_conversation/service.py) (Conversation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User Experience"]
  node_ui["Web UI<br/>[page.tsx]"]
  node_conversation["Conversation<br/>[service.py]"]
end

subgraph group_generation["Generation Workflow"]
  node_orchestrator["Orchestrator<br/>[service.py]"]
  node_dispatcher["Agent Dispatcher<br/>[in_process.py]"]
  node_generator["Generation Engine<br/>[generate_engine.py]"]
  node_artifacts[("Artifact Storage")]
end

subgraph group_assurance["Requirements Assurance"]
  node_requirements["Requirements"]
  node_validation["Validation<br/>[service.py]"]
end

subgraph group_platform["Platform Services"]
  node_memory["Memory and RAG<br/>[service.py]"]
  node_llm["LLM Gateway<br/>[client.py]"]
  node_minio[("MinIO")]
  node_arango[("ArangoDB")]
end

subgraph group_extractor["Document Extraction"]
  node_extractor["Document Extractor<br/>[main.py]"]
  node_image_enrichment["Image Enrichment<br/>[image_pipeline.py]"]
  node_embedding_client["Embeddings Client"]
end

node_user(("Platform User"))

node_user -->|"uses"| node_ui
node_ui -.->|"starts conversation"| node_conversation
node_conversation -.->|"works with"| node_requirements
node_requirements -->|"grounds generation"| node_orchestrator
node_orchestrator -->|"dispatches"| node_dispatcher
node_dispatcher -.->|"invokes"| node_generator
node_generator -->|"calls model"| node_llm
node_orchestrator -->|"materializes artifacts"| node_artifacts
node_requirements -->|"validated against implementation"| node_validation
node_orchestrator -.->|"uses memory"| node_memory
node_extractor -.->|"enriches images"| node_image_enrichment
node_image_enrichment -.->|"uses embeddings"| node_embedding_client
node_requirements -->|"persists documents"| node_minio
node_memory -.->|"stores index"| node_arango

click node_ui "https://github.com/ayfondation/aywizz/blob/main/ay_platform_ui/app/(protected)/projects/%5Bpid%5D/working-area/page.tsx"
click node_conversation "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c3_conversation/service.py"
click node_requirements "https://github.com/ayfondation/aywizz/tree/main/ay_platform_core/src/ay_platform_core/c5_requirements"
click node_orchestrator "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/service.py"
click node_dispatcher "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/dispatcher/in_process.py"
click node_generator "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/pipeline/generate_engine.py"
click node_artifacts "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/artifacts_storage.py"
click node_validation "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c6_validation/service.py"
click node_memory "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c7_memory/service.py"
click node_llm "https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c8_llm/client.py"
click node_extractor "https://github.com/ayfondation/aywizz/blob/main/ay_extractor/src/main.py"
click node_image_enrichment "https://github.com/ayfondation/aywizz/blob/main/ay_extractor/src/extraction/image_pipeline.py"
click node_embedding_client "https://github.com/ayfondation/aywizz/blob/main/ay_extractor/src/llm/embeddings_client.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ui,node_conversation,node_user toneBlue
class node_orchestrator,node_dispatcher,node_generator,node_artifacts toneAmber
class node_requirements,node_validation toneMint
class node_memory,node_llm,node_minio,node_arango toneRose
class node_extractor,node_image_enrichment,node_embedding_client toneIndigo
```

## Components

### User Experience

- [Web UI](https://github.com/ayfondation/aywizz/blob/main/ay_platform_ui/app/(protected)/projects/%5Bpid%5D/working-area/page.tsx): `ay_platform_ui/app/(protected)/projects/[pid]/working-area/page.tsx`
- [Conversation](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c3_conversation/service.py): `ay_platform_core/src/ay_platform_core/c3_conversation/service.py`

### Generation Workflow

- [Orchestrator](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/service.py): `ay_platform_core/src/ay_platform_core/c4_orchestrator/service.py`
- [Agent Dispatcher](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/dispatcher/in_process.py): `ay_platform_core/src/ay_platform_core/c4_orchestrator/dispatcher/in_process.py`
- [Generation Engine](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/pipeline/generate_engine.py): `ay_platform_core/src/ay_platform_core/c4_orchestrator/pipeline/generate_engine.py`
- [Artifact Storage](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c4_orchestrator/artifacts_storage.py): `ay_platform_core/src/ay_platform_core/c4_orchestrator/artifacts_storage.py`

### Requirements Assurance

- [Requirements](https://github.com/ayfondation/aywizz/tree/main/ay_platform_core/src/ay_platform_core/c5_requirements): `ay_platform_core/src/ay_platform_core/c5_requirements`
- [Validation](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c6_validation/service.py): `ay_platform_core/src/ay_platform_core/c6_validation/service.py`

### Platform Services

- [Memory and RAG](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c7_memory/service.py): `ay_platform_core/src/ay_platform_core/c7_memory/service.py`
- [LLM Gateway](https://github.com/ayfondation/aywizz/blob/main/ay_platform_core/src/ay_platform_core/c8_llm/client.py): `ay_platform_core/src/ay_platform_core/c8_llm/client.py`
- **MinIO**
- **ArangoDB**

### Document Extraction

- [Document Extractor](https://github.com/ayfondation/aywizz/blob/main/ay_extractor/src/main.py): `ay_extractor/src/main.py`
- [Image Enrichment](https://github.com/ayfondation/aywizz/blob/main/ay_extractor/src/extraction/image_pipeline.py): `ay_extractor/src/extraction/image_pipeline.py`
- [Embeddings Client](https://github.com/ayfondation/aywizz/blob/main/ay_extractor/src/llm/embeddings_client.py): `ay_extractor/src/llm/embeddings_client.py`

### Other components

- **Platform User**

## Connections

- Platform User → Web UI: uses (evidence: `README.md`)
- Web UI → Conversation: starts conversation
- Conversation → Requirements: works with
- Requirements → Orchestrator: grounds generation (evidence: `README.md`)
- Orchestrator → Agent Dispatcher: dispatches
- Agent Dispatcher → Generation Engine: invokes (evidence: `ay_platform_core/src/ay_platform_core/c4_orchestrator/pipeline/generate_engine.py`)
- Generation Engine → LLM Gateway: calls model (evidence: `ay_platform_core/src/ay_platform_core/c4_orchestrator/pipeline/generate_engine.py`)
- Orchestrator → Artifact Storage: materializes artifacts (evidence: `README.md`)
- Requirements → Validation: validated against implementation (evidence: `README.md`)
- Orchestrator → Memory and RAG: uses memory
- Document Extractor → Image Enrichment: enriches images
- Image Enrichment → Embeddings Client: uses embeddings
- Requirements → MinIO: persists documents (evidence: `ay_platform_core/src/ay_platform_core/c5_requirements/intake/storage.py`)
- Memory and RAG → ArangoDB: stores index
