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.0a0.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.0a0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polaris_ai_datainsight-1.0.0a0.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.0a0.tar.gz
Algorithm Hash digest
SHA256 6b65573864d187139bca4b0505f5483d2026b435b08e813b6a191e1762cef27b
MD5 3df7616b6b7b1c494a3810dea43a9eb9
BLAKE2b-256 f05c574dbef5ea39e25d07ee6e64dadaad1431692104525fb0dd693d893fdf47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polaris_ai_datainsight-1.0.0a0-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.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c0ec7ba8b07085a40db85aaa5ece20bb3a7cab8617785260c45491ee2dead38
MD5 94ba06d3fbf106f771c88a911da9a824
BLAKE2b-256 35d1b0cedb9052df5a2682df98a8a7153312214e1ec8b4766163c6b09b96f12c

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