File size: 616 Bytes
f175d26
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
SERVICES PACKAGE
================

Business logic lives here. The API layer (app.main) calls these services;
they do not handle HTTP, only chat flow, LLM calls, and data.

MODULES:
  chat_service      - Sessions (get/create, load from disk), message list, format history for LLM, save to disk.
  groq_servoce      - General chat: retrieve context from vector store, build prompt, call Groq LLM.
  realtime_service  - Realtime chat: Taviyly search first, then same as groq (inherits GroqService).
  vector_store      - Load learning_data + chats_data, chunk, embed, FAISS index; provide retriever for context.
"""