Case Study

Providing Timely Healthcare with a Private AI Support Agent for an iOS app

Solution

Conversational AI | iOS App Integration

Industry

Healthcare | MedTech | Field Healthcare Operations

Core Technology

 iOS | RAG | AI

Overview

A healthcare provider’s iOS app was backed by lengthy training documentation that healthcare workers and field operators found difficult to navigate. It slowed down onboarding of end users and overall field usage. 

The issue was caused by the complexity of the training material and the highly specific terminology used in the app. So, we built a private AI-powered support agent using a RAG-based approach that lets users ask natural-language questions and receive instant, accurate answers pulled directly from the client’s approved training documents. 

Business Challenge

The client’s users needed fast, accurate answers from lengthy training documentation. All the answers existed in the training material, but users had to manually search through many pages to find them. 

So, the challenge for us to solve was about accessibility. Moreover, the client also had an important privacy requirement that the training data needed to remain private and controlled. That meant the solution couldn’t rely on OpenAI or public AI APIs.  

the solution

We built a Retrieval-Augmented Generation, or RAG-based, AI agent. Instead of training a model from scratch or sending the full document to an external API, the system retrieves only the relevant parts of the training document and uses those sections to generate an answer.

Content Row Format (8)
Content Row Format (9)
outcomes & benefits
Business Support Impact

The agent is able to support multiple areas of the client’s business operations: 

Tools & tech stack

For the proof of concept, we used a private local AI architecture that could later be moved to production. The main components included:

FastAPI backend
exposed chat and retrieval APIs for the iOS app.

Document ingestion pipeline
read training documents to extract text and clean repeated noise, splitting the content into searchable chunks.

Hybrid retrieval improved search accuracy by combining semantic vector search with keyword-based BM25 search.

Large Language Model (LLM)
were used to generate answers from retrieved training document sections.

Vector search and keyword search helped find the most relevant parts of the training documentation.
Streaming response API sent answers back gradually, improving the chat experience in the iOS app.
Production Architecture Path 

The POC validated the concept, but a production deployment requires stronger infrastructure.
The recommended production architecture includes:

For production, the local POC components can be upgraded as follows: 

conclusion

The client needed a private, document-grounded AI assistant for an iOS application. We addressed this by building a RAG-based AI agent that retrieves relevant sections from approved training documents and generates answers from that context. 

Our POC demonstrated that AI can make complex training documentation easier to use, especially for app-specific workflows, device status interpretation, and troubleshooting scenarios. 

Fusing hybrid retrieval with local model inference and streaming responses delivered a practical path toward a secure, production-ready AI assistant that can improve user support and operational efficiency. 

Looking to implement AI in your app?

Xavor helps client make their iOS and Android apps AI-based. 

Scroll to Top