Skip to content

Commit

Permalink
adds sequence diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored May 27, 2024
1 parent 1526728 commit 50fd3a1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions chatbot-ollama-springai/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

## Sequence Diagram

Before Vector Store

```mermaid
sequenceDiagram
participant User
Expand All @@ -18,5 +20,27 @@ participant ChatMemory
ChatbotService->>ChatMemory: saveInteraction(message, response)
ChatbotService-->>ChatbotController: response
ChatbotController-->>User: response
```

After Vector Store

```mermaid
sequenceDiagram
participant User
participant ChatbotController
participant ChatbotService
participant ChatService
participant ChatMemory
participant VectorStore
User->>ChatbotController: POST /api/ai/chat
ChatbotController->>ChatbotService: chat(message)
ChatbotService->>ChatService: Process Chat Request
ChatService->>ChatMemory: Retrieve Memory
ChatService->>VectorStore: Retrieve Vectors
ChatMemory-->>ChatService: Return Memory Data
VectorStore-->>ChatService: Return Vector Data
ChatService-->>ChatbotService: Processed Response
ChatbotService-->>ChatbotController: response
ChatbotController-->>User: response
```

0 comments on commit 50fd3a1

Please sign in to comment.