Fix RAG Pipeline – HIPAA-Compliant Medical Document Q&A API (LLM/FastAPI)

Posted 2 weeks ago

Worldwide

Summary

We are looking for an experienced AI/Backend Engineer to troubleshoot and optimize a partially developed RAG (Retrieval-Augmented Generation) pipeline that processes HIPAA-regulated medical documents, including clinical notes, insurance claims, and prior authorization letters. The application is built using FastAPI, LangChain, OpenAI, and Pinecone, with integration into a Node.js backend. While the system is functional, it is currently producing inaccurate retrieval results and, in rare cases, exposing raw PHI in generated responses. Addressing these issues is critical to ensuring both accuracy and HIPAA compliance. Scope of Work - Review and debug the vector embedding and retrieval pipeline. - Optimize chunk sizing, overlap settings, and metadata filtering to improve retrieval accuracy. - Update LLM prompts and response handling to ensure PHI is properly redacted before responses are returned. - Verify that FastAPI endpoints return clean, structured JSON responses, including confidence scores where applicable. - Confirm that HIPAA audit logging is functioning correctly and capturing all required request activity. - Test and validate the overall system to ensure reliable, compliant, and accurate output. Requirements - Proven experience with RAG systems, LangChain, OpenAI APIs, and Pinecone. - Strong knowledge of FastAPI and backend API development. - Familiarity with HIPAA compliance, PHI handling, and healthcare-related applications. - Ability to quickly identify root causes and implement effective solutions. The codebase is clean, documented, and ready for review. We are seeking a professional who can efficiently diagnose the issues, implement fixes, and verify that the system meets both accuracy and compliance requirements.

  • $25.00

    Fixed-price
  • Intermediate
    Experience Level
  • Remote Job
  • One-time project
    Project Type
Skills and Expertise
Mandatory skills
OpenAI API
Docker
Python
Activity on this job
  • Proposals:20 to 50
  • Last viewed by client:2 weeks ago
  • Hires:
    1
  • Interviewing:
    0
  • Invites sent:
    0
  • Unanswered invites:
    0
About the client
Member since Oct 11, 2025
  • United States
    Fairbanls4:27 AM
  • $11K total spent
    609 hires, 22 active
  • 73 hours

Explore similar jobs on Upwork

Git
WordPress
PHP
MySQL
JavaScript
Backend Laravel DeveloperFixed-price‐ Posted 2 months ago
Laravel
PHP
MySQL
MySQL Programming

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers earned on Upwork in 2020

Find the best freelance jobs

Growing your career is as easy as creating a free profile and finding work like this that fits your skills.

Trusted by

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo