From 3b17f6b931ebf4fbdd5eeaac37371d4369b56027 Mon Sep 17 00:00:00 2001 From: Sverre Nystad Date: Thu, 14 Nov 2024 17:35:34 +0100 Subject: [PATCH] docs: add package diagram --- docs/diagrams/package-diagram.puml | 43 ++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docs/diagrams/package-diagram.puml diff --git a/docs/diagrams/package-diagram.puml b/docs/diagrams/package-diagram.puml new file mode 100644 index 0000000..9754749 --- /dev/null +++ b/docs/diagrams/package-diagram.puml @@ -0,0 +1,43 @@ +@startuml +!define RECTANGLE_BACK_COLOR #EEEEEE +skinparam shadowing false +skinparam rectangle { + BackgroundColor RECTANGLE_BACK_COLOR + BorderColor #333333 + FontStyle bold + FontSize 13 +} + +rectangle "AI Assistant API" { + rectangle "Endpoints" { + [Summarize Endpoint] + [PlanChat Endpoint] + } + + rectangle "Services" { + rectangle "Document Reader" { + [Reader] <|-- [PdfReader] + [Reader] <|-- [XmlReader] + [Reader] <|-- [OCRReader] + + [create_reader] --> [Reader] : "Create Reader Instance <>" + [extract_text] --> [create_reader] : "Read File Using Strategy <>" + } + + rectangle "AI Agent Services" { + [invoke_agent] + [invoke_plan_agent] + } + rectangle "External AI Models" { + [query_cad_aid] + [query_arkivgpt] + } + } +} + +[Summarize Endpoint] --> [extract_text] : "Trigger Text Extraction" +[Summarize Endpoint] --> [External AI Models] : "Send Data to External AI Models" +[Summarize Endpoint] --> [invoke_agent] : "Invoke Agent Chain with Extracted Text" +[PlanChat Endpoint] --> [invoke_plan_agent] : "Invoke Plan Agent Chain with User Query" + +@enduml