Intelligence beneath the interface.
A language model is only one part of the system. Conversation history, retrieved knowledge and safety screening shape the response.
Retrieval-augmented generation (RAG)
Rather than relying solely on a language model’s pretrained knowledge, RAG uses vector embeddings and semantic search to identify relevant reference material. Retrieved knowledge and conversation context inform the response, supporting relevance and continuity.
Patient messageSafety screening first
Conversation contextRelevant earlier exchanges
Semantic retrievalRelevant reference knowledge
LLM generationContext-informed response synthesis
Output screening & responseSafety checks
Conceptual non-high-risk pathway in the independent private integration. The gallery floors are not a literal processing sequence.
Contextual intelligence
Conversation history helps maintain continuity across interactions. The independent experience illustrates how context and retrieved knowledge contribute to a response; the private integration can demonstrate actual retrieval and model outputs. The gallery represents system behavior, not hidden model reasoning.
Intelligence with boundaries
Safety screening can route interactions away from ordinary generation toward predefined safety guidance and human review. Clinician accountability, continuity of care records and traceable reviews are central to the product design.
Technology stack
- Language model
- OpenAI API
- Semantic retrieval
- Sentence Transformers
- Original vector store
- PostgreSQL · pgvector
- Backend & persistence
- Python · FastAPI · Supabase
- Interfaces
- React (capstone) · JavaScript / Canvas (studio)
Public visitors explore a preset simulation; actual retrieval and model calls are available only in the optional private local integration. Retrieval supplies reference material, not a guarantee of accuracy or clinical effectiveness.