Circle V2 API Docs
    Preparing search index...

    Function embedPatientChartData

    Server-only entry point for the chart-review code ported from circlehealthai-web. Importing this module pulls in @langchain/*, @pinecone-database/pinecone, and openai, so it must never be reached from a client bundle.

    This is the bootstrap surface — primitives only. The orchestrators (runChartReview, runChartReviewSingleQuestion) land in later PRs.

    • Stores patient chart documents in a patient- and document-specific namespace and enriches metadata with patient_id and doc_id for filtering/retrieval.

      Parameters

      • client: Pinecone
      • docs: any[]
      • patientId: string
      • docId: string
      • baseNamespace: string

      Returns Promise<void>