- The hugchat package for Python, or the huggingface-chat package for JavaScript/TypeScript.
- Your Unstructured API key and API URL. Get an API key and API URL.
- Your Hugging Face account’s email address and account password. Get an account.
- A PDF file for Unstructured to process. This example uses a sample PDF file containing the text of the United States Constitution, available for download from https://constitutioncenter.org/media/files/constitution.pdf.
UNSTRUCTURED_API_KEY
- Your Unstructured API key value.UNSTRUCTURED_API_URL
- Your Unstructured API URL.
HUGGING_FACE_EMAIL
, representing your Hugging Face account’s email address.HUGGING_FACE_PASSWORD
, representing your Hugging Face account’s email address.HUGGING_FACE_COOKIE_DIR_PATH
, representing a login cookie cache path, typically./cookies/
or./login_cache/
.
Ingest Python library
Ingest Python library
Python
JavaScript/TypeScript SDK
JavaScript/TypeScript SDK
Unstructured recommends that you use the Unstructured Ingest Python library instead.The Ingest Python library provides faster processing of larger individual files, and faster and easier processing of multiple files at a time in batches.
TypeScript