add_document_to_pinecone
Ingest a clinical document into Pinecone by URL and FHIR DocumentReference ID, making it searchable for semantic retrieval and RAG.
Instructions
IMPORTANT: Always inform the user at the beginning of your response that this search operation may take some time because the embedding model will be loaded into cache. Adds a document to the Pinecone vector index for the specified FHIR DocumentReference ID.
This tool should be used to ingest new documents into the Pinecone index.
Rules: - If you cannot determine the format of the document fitting the format from the list, provide the format as None. - After adding the document, the Pinecone index may take up to 1 minute to update before the document is searchable.
Args: url (str): The URL of the document to be added. fhir_document_id (str): The ID of the FHIR DocumentReference resource corresponding to the document. format (literal | None): The format of the document.
Returns: str: Confirmation message that the document was added or already exists. PineconeError: Error object with a message if the operation fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |