Skip to content

Phase 2.4: — Conversation (Memory) Support #7

Description

@vimal-java-dev

Before Phase 2.4:

Current architecture:

Client
    │
    ▼
ChatController
    │
    ▼
ChatService
    │
    ▼
AiService (Interface)
    │
    ▼
OllamaService
    │
    ▼
Ollama (Qwen3:4b)

================
Current completed phases:

  • ✅ Phase 1 — Spring Boot foundation
  • ✅ Phase 2.0 — Chat persistence redesign
  • ✅ Phase 2.1 — AI configuration layer
  • ✅ Phase 2.2 — AI service abstraction
  • ✅ Phase 2.3 — Ollama integration

Everything up to this point establishes a solid foundation.


After Phase 2.4:

Production Architecture

Client
        │
        ▼
ChatController
        │
        ▼
ChatService
        │
        ├──────────────┐
        ▼              │
Conversation Builder   │
        │              │
        ▼              │
List<ChatMessage>      │
        │              │
        ▼              │
AiService              │
        ▼              │
OllamaService          │
        ▼              │
Ollama                 │
        ▲              │
        │              │
AI Response────────────┘
        │
        ▼
Save both messages

Why this phase now?

Every future AI feature depends on conversation memory.
Examples include:

  • RAG
  • Tool calling
  • Function calling
  • AI agents
  • Customer sessions
  • Ticket generation
  • Intent detection
  • Semantic search

Without conversation history, those capabilities are much less effective.

Metadata

Metadata

Labels

CodeDesign and deploy new servicesbugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions