awakeningspirit / ai-scribe-v2

AI Scribe demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI Scribe demo with Google Medical Speech Recognition and Gemini

@coreymaher

In this demo, we take recorded patient consults from a public research dataset and use the Gemini API to generate a summarized clinical note in the SOAP format. We make use of few-shot prompting with both a negative and positive example of the items to be summarized in the sections of the note, as well as role prompting in the context.

Architecture

Architecture diagram Single page web application using the Streamlit Python library, with Google's Medical ASR model performing the transcription of recorded calls. The transcription is then passed to Vertex Gemini Pro 1.5 Flash for constructing a SOAP note.

Deployment

Local:

  1. Clone the repo, setup and switch to a new python virtual environment
  2. pip install -r requirements.txt
  3. The Vertex python clients depend on the gcloud SDK for authentication, so follow the steps to download the gcloud CLI and authorize your development environment here: https://cloud.google.com/docs/authentication/provide-credentials-adc#google-idp. This will prompt you for a Google Cloud project ID and region, which the client libraries will use when making requests to the GCP APIs.
  4. Run streamlit run main.py in the root directory of this repository to launch the web server and open a browser window for the application

Screenshot

About

AI Scribe demo


Languages

Language:Python 61.5%Language:Jupyter Notebook 38.0%Language:Dockerfile 0.5%