Skip to content

Commit 2865328

Browse files
committed
docs: diagrams
1 parent 4a15007 commit 2865328

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

structurizr/diagrams/structurizr-1-Components.svg

+1-1
Loading

structurizr/diagrams/structurizr-1-Containers.svg

+1-1
Loading

structurizr/diagrams/structurizr-1-SystemContext.svg

+1-1
Loading

structurizr/workspace.dsl

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
workspace "AIDocumentLibraryChat" "A project to show howto use SpringAI with OpenAI to chat with the documents in a library. Documents are stored in a normal/vector database. The AI is used to create embeddings from documents that are stored in the vector database. The vector database is used to query for the nearest document. That document is used by the AI to generate the answer. " {
2-
model {
3-
user = person "User"
2+
model {
3+
documentUser = person "Document User"
4+
imageUser = person "Image User"
5+
functionUser = person "Function User"
6+
dbUser = person "Database User"
47
aiDocumentLibraryChatSystem = softwareSystem "AIDocumentLibraryChat System" "AIDocumentLibraryChat System" {
58
aiModel = container "OpenAI/Ollama AI Model" "The AI Model provides the Embeddings(OpenAI) and Answers to the questions based on the documents. The OpenAI is an external model Ollama is a local model."
69
aiDocumentLibraryChat = container "AIDocumentLibraryChat" "Angular Frontend and Spring Boot Backend integrated." {
@@ -25,12 +28,16 @@ workspace "AIDocumentLibraryChat" "A project to show howto use SpringAI with Ope
2528
#databaseSystem = softwareSystem "Postgresql Db" "Postgresql relational and vector data database"
2629

2730
# relationships people / software systems
28-
user -> aiDocumentLibraryChatSystem "ask questions about documents"
31+
#user -> aiDocumentLibraryChatSystem "ask questions about documents"
32+
2933
aiDocumentLibraryChatSystem -> aiModelSystem "generate embeddings/answers"
3034
#aiDocumentLibraryChatSystem -> databaseSystem "store relational/vector data"
3135

3236
# relationships containers
33-
user -> aiDocumentLibraryChat "manages the document/image imports/searches and queries dbs and calls functions"
37+
documentUser -> aiDocumentLibraryChat "manages the document imports/searches"
38+
imageUser -> aiDocumentLibraryChat "manages the image imports/searches"
39+
functionUser -> aiDocumentLibraryChat "manages the function call and the parameters"
40+
dbUser -> aiDocumentLibraryChat "manages the sql query creation and execution"
3441
aiDocumentLibraryChat -> aiModel "create embeddings/answers or sql queries or funtion calls"
3542
aiDocumentLibraryChat -> database "read/store document/image data and embeddings"
3643

0 commit comments

Comments
 (0)