Quick Start
Quickest way to get started using the client libraries.
Installation Instructions
pip install mindee>=4.32npm install [email protected]php composer.phar require "mindee/mindee:>=2.3"gem install mindee -v '~> 4.10'dotnet add package Mindee --version 3.37Send a File and Poll
from mindee import ClientV2, InferenceParameters, PathInput
input_path = "/path/to/the/file.ext"
api_key = "MY_API_KEY"
model_id = "MY_MODEL_ID"
# Init a new client
mindee_client = ClientV2(api_key)
# Set inference parameters
params = InferenceParameters(
# ID of the model, required.
model_id=model_id,
# Options: set to `True` or `False` to override defaults
# Enhance extraction accuracy with Retrieval-Augmented Generation.
rag=None,
# Extract the full text content from the document as strings.
raw_text=None,
# Calculate bounding box polygons for all fields.
polygon=None,
# Boost the precision and accuracy of all extractions.
# Calculate confidence scores for all fields.
confidence=None,
)
# Load a file from disk
input_source = PathInput(input_path)
# Send for processing using polling
response = mindee_client.enqueue_and_get_inference(
input_source, params
)
# Print a brief summary of the parsed data
print(response.inference)
# Access the result fields
fields: dict = response.inference.result.fieldsDetails on Sending
Processing the Results
Details on Processing
Last updated
Was this helpful?

