Skip to main content

This package is Python SDK for Polaris AI DataInsight.

Project description

polaris-ai-datainsight

This package is Python SDK for Polaris AI DataInsight.

Polaris AI DataInsight is a document parser that extracts document elements (text, images, complex tables, charts, etc.) from various file formats into structured JSON, making them easy to integrate into RAG systems.

  • Supported document formats : docx, xlsx, pptx, hwpx, hwp
  • Supported elements types : text, table, image, chart, shape, header, footer, caption

Installation and Setup

You need to install a python package:

pip install -U polaris-ai-datainsight

And you should configure credentials by setting the following environment variables:

export POLARIS_AI_DATA_INSIGHT_API_KEY="your-api-key"

Refer to here how to get an Polaris AI DataInsight API key.

Document Extractor

Set the file path to extract and the directory path to store resource files included in the file:

from polaris_ai_datainsight import PolarisAIDataInsightExtractor

loader = PolarisAIDataInsightExtractor(
    file_path="path/to/file",
    resources_dir="path/to/dir"
)

Extract document data:

dict_data = loader.extract()

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

polaris_ai_datainsight-1.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

polaris_ai_datainsight-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file polaris_ai_datainsight-1.0.0.tar.gz.

File metadata

  • Download URL: polaris_ai_datainsight-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.11 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for polaris_ai_datainsight-1.0.0.tar.gz
Algorithm Hash digest
SHA256 18dfe2a74e5ac5af5a8f861f1a5c2fb2fba9cd2f5b1d226e1ef077d70f6141c3
MD5 20e4034661d7168a3cbaaef3e0a1714f
BLAKE2b-256 e67ec60a1a778ba8343e30d50d2c03d2c18e11e01f34438b97a64a4f5abee0d8

See more details on using hashes here.

File details

Details for the file polaris_ai_datainsight-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: polaris_ai_datainsight-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.11 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for polaris_ai_datainsight-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e205a544eb69b079ee06c249f5cc0301ad419c4d6f790cf663c5dd9818b0f0ec
MD5 ac87e43e7590afc9cda17127d7a62728
BLAKE2b-256 c9930bc72e26b9e3627090ff14301eb05a7c11ce437c23c73c49aff3f05387e1

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