real-estate listing example, the complete architecture with Spring Boot + Ollama + nomic-embed-text + Qdrant + Llama 3.2 looks like this
Complete architecture:-
CUSTOMER
│
│
▼
"Find a family house in Austin
with a swimming pool"
│
▼
┌──────────────────┐
│ Spring Boot │
│ Application │
└────────┬─────────┘
│
│ 1. Create embedding
▼
┌──────────────────┐
│ Ollama │
│ │
│ nomic-embed-text │
└────────┬─────────┘
│
│ Query → Vector
▼
┌──────────────────┐
│ Qdrant │
│ Vector DB │
└────────┬─────────┘
│
│ Similarity Search
▼
┌──────────────────┐
│ Top 4 Listings │
│ │
│ #101 │
│ #102 │
│ #103 │
│ #104 │
└────────┬─────────┘
│
│ Question +
│ 4 Listings +
│ Instruction
▼
┌──────────────────┐
│ Ollama │
│ │
│ Llama 3.2 │
└────────┬─────────┘
│
│ Generated Answer
▼
CUSTOMER
complete flow:-
┌───────────────┐
│ Customer │
└───────┬───────┘
│
│ Question
▼
┌───────────────┐
│ Spring Boot │
└───────┬───────┘
│
▼
┌───────────────┐
│ Ollama │
│ │
│ nomic-embed │
│ -text │
└───────┬───────┘
│
Query Vector
│
▼
┌───────────────┐
│ Qdrant │
└───────┬───────┘
│
Top 4 Listings
│
▼
┌───────────────┐
│ Spring Boot │
│ │
│ Build Prompt │
└───────┬───────┘
│
Question + Listings + Instruction
│
▼
┌───────────────┐
│ Ollama │
│ │
│ Llama 3.2 │
└───────┬───────┘
│
Final Answer
│
▼
┌───────────────┐
│ Customer │
└───────────────┘