Deletes every vector in the patient's EMR namespace tagged (via patient_chart_id metadata)
with one of the given chart ids. Serverless Pinecone cannot delete by metadata filter, so this
lists the whole namespace, fetches records in batches, and deletes the matching ids. Vectors
embedded before patient_chart_id metadata existed cannot be matched and are left in place.
Pinecone's list is eventually consistent: vectors upserted moments earlier may not be visible
yet, so back-to-back reprocesses of the same chart can leave a stragglers' worth of duplicates.
Deletes every vector in the patient's EMR namespace tagged (via
patient_chart_idmetadata) with one of the given chart ids. Serverless Pinecone cannot delete by metadata filter, so this lists the whole namespace, fetches records in batches, and deletes the matching ids. Vectors embedded beforepatient_chart_idmetadata existed cannot be matched and are left in place.Pinecone's list is eventually consistent: vectors upserted moments earlier may not be visible yet, so back-to-back reprocesses of the same chart can leave a stragglers' worth of duplicates.