from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.extract(
documents=[{
"id": "id",
"file_name": "fileName",
}],
prompt="prompt",
response_json_schema={
"foo": "bar"
},
)
print(response.async_result_id)
{
"asyncResultId": "<string>"
}
Initiates a modern, flexible asynchronous data extraction process using a JSON schema for the desired output and a prompt. Returns an ID for tracking.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.documents.extract(
documents=[{
"id": "id",
"file_name": "fileName",
}],
prompt="prompt",
response_json_schema={
"foo": "bar"
},
)
print(response.async_result_id)
{
"asyncResultId": "<string>"
}
Accepted. Advanced extraction process initiated.