Skip to content

Commit

Permalink
docs: add package diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Nov 14, 2024
1 parent 833b539 commit 3b17f6b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions docs/diagrams/package-diagram.puml
Original file line number Diff line number Diff line change
@@ -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 <<Factory Pattern>>"
[extract_text] --> [create_reader] : "Read File Using Strategy <<Strategy Pattern>>"
}

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

0 comments on commit 3b17f6b

Please sign in to comment.