Diagrams Directory
This directory contains JSON specifications for Nano Banana Pro diagrams.
Diagram Organization
JSON Specifications
- Location:
docs/diagrams/*.json - Purpose: JSON specifications for Nano Banana Pro (Gemini 3) diagram generation
- Usage: These JSON files are used by Sage or Nano Banana Pro to generate actual diagram images
Generated Diagram Images
- Location:
docs/assets/diagrams/*.png - Purpose: Generated PNG images from the JSON specifications
- Naming Convention: Match the JSON filename (e.g.,
memory-enrichment-workflow-diagram.json→memory-enrichment-workflow-diagram.pngorengram-memory-enrichment-workflow.png)
Current Diagrams
Memory Enrichment Workflow
- JSON:
memory-enrichment-workflow-diagram.json - Image:
docs/assets/diagrams/engram-memory-enrichment-workflow.png(to be generated) - Description: Shows how sessions, episodes, stories, and chat interactions work together to enrich Zep memory
Other Architecture Diagrams
- Architecture diagram images are in
docs/architecture/*.png - Diagram JSON specs may be in
docs/architecture/*.jsonordocs/assets/diagrams/*.json
Generating Diagrams
To generate a diagram from a JSON specification:
- Using Sage Agent:
- Use the
create_visualorcreate_diagramtool - Sage will generate the diagram image using Nano Banana Pro
- Use the
- Using Nano Banana Pro directly:
- Provide the JSON specification to Nano Banana Pro
- Save the generated PNG to
docs/assets/diagrams/
- Naming Convention:
- Use descriptive names matching the JSON file
- Prefix with
engram-for consistency (optional) - Example:
engram-memory-enrichment-workflow.png
Related Documentation
docs/architecture/memory-enrichment-workflow.md- Full documentationdocs/sop/sage_nano_banana.md- Sage Nano Banana Pro SOPbackend/llm/gemini_client.py- Diagram generation implementation