Skip to main content

Client library for LLM Whisperer

Project description

Unstract LLMWhisperer Python Client

PyPI - Downloads Python Version from PEP 621 TOML PyPI - Version

LLMs are powerful, but their output is as good as the input you provide. LLMWhisperer is a technology that presents data from complex documents (different designs and formats) to LLMs in a way that they can best understand. LLMWhisperer features include Layout Preserving Mode, Auto-switching between native text and OCR modes, proper representation of radio buttons and checkboxes in PDF forms as raw text, among other features. You can now extract raw text from complex PDF documents or images without having to worry about whether the document is a native text document, a scanned image or just a picture clicked on a smartphone. Extraction of raw text from invoices, purchase orders, bank statements, etc works easily for structured data extraction with LLMs powered by LLMWhisperer's Layout Preserving mode.

Refer to the client documentation for more information: LLMWhisperer Client Documentation

Client

This package provides LLMWhispererClientV2, the client for LLMWhisperer API v2. It is required for all users on API version 2.0.0 and above.

Documentation is available here.

Running Tests

Install test dependencies and run all tests:

uv run --group test pytest

To run only unit tests (skipping integration tests):

uv run --group test pytest tests/unit tests/utils_test.py

To run only integration tests:

uv run --group test pytest tests/integration

Integration tests require a valid API key. Copy sample.env to .env and fill in your credentials before running them.

Questions and Feedback

On Slack, join great conversations around LLMs, their ecosystem and leveraging them to automate the previously unautomatable!

LLMWhisperer Playground: Test drive LLMWhisperer with your own documents. No sign up needed!

LLMWhisperer developer documentation and playground: Learn more about LLMWhisperer and its API.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llmwhisperer_client-2.7.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llmwhisperer_client-2.7.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file llmwhisperer_client-2.7.0.tar.gz.

File metadata

  • Download URL: llmwhisperer_client-2.7.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.14

File hashes

Hashes for llmwhisperer_client-2.7.0.tar.gz
Algorithm Hash digest
SHA256 bebf3ca95b4a9a0802d290d88a834539e8054f68b1013298f1730dbcaafc69ea
MD5 f4d67783b5bac20f5e1fe9cda19eac31
BLAKE2b-256 c8f1ac02558536cb97db15c2e6047f7943869f260299c700c3b5bce6821982e6

See more details on using hashes here.

File details

Details for the file llmwhisperer_client-2.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llmwhisperer_client-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72903da9b7f07a2584792cb59094b703a31fc48ad33b6dee27a1ec14d84e0d18
MD5 701534a1ecb20de80052e3661d981c33
BLAKE2b-256 c4d9b481433b644541a745c1d7de4fb2f53df088110ac34e4a1e89dc3ff9e28f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page