Skip to main content

Add your description here

Project description

🏥 Patient Query Assistant with RAG + OpenAI API

A Python-based MCP Server that answers patient-specific medical queries using a Retrieval-Augmented Generation (RAG) system integrated with the OpenAI Chat Completions API.
The function retrieves context-specific medical data about a patient from an Azure AI Search (a Vector Database), and uses an LLM to generate precise, context-aware responses.


📖 Overview

This utility allows you to query a patient's medical information by providing:

  • patient_name: The name of the patient (as a string).
  • query: The natural language question you want to ask (as a string).

The system normalizes the patient’s name by removing spaces and converting it to lowercase, retrieves relevant data using an indexer, and sends this context along with your query to an OpenAI model to generate a smart, human-readable response.


🛠️ Features

✅ Patient name normalization (removes spaces and lowercases for consistent lookups)
✅ Retrieval-Augmented Generation (RAG) powered by Azure AI Search and Storage Accounts ✅ Natural language interaction via OpenAI Chat Completions API
✅ Designed for secure and context-aware medical information handling


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ho_rag-0.5.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ho_rag-0.5.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ho_rag-0.5.0.tar.gz.

File metadata

  • Download URL: ho_rag-0.5.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for ho_rag-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d4df961449961658123f1a2bb7a6b6e5957f393e64ba1d9ad78bd1edb344e9da
MD5 376ba6f92c1c4599884e5d9d8b5daa33
BLAKE2b-256 01f4ef8af02a26084252e2cdc6c4f938f450ed663f564158da88ec6a917fba12

See more details on using hashes here.

File details

Details for the file ho_rag-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: ho_rag-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for ho_rag-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0037a8f1f45c35a79e9e64d5e1d59f1d6e75d5234a06fa05daec30ed2258576a
MD5 c6c6c1e8fc796934f9c00d2494eab8b0
BLAKE2b-256 18cfe8b0990d3bb920493d31be3360758fcc75f974ceffccc80a353c4e77b7f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page