Skip to main content

An integration package connecting PODataInsight and LangChain

Project description

langchain-polaris-ai-datainsight

This package covers Polaris AI DataInsight integration with LangChain.

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

Documents

You can refer to the following examples to learn how to work with PolarisAIDataInsightLoader.

  1. How to load documents in langchain Open In Colab

  2. How to build a RAG: Refer to a cookbook directory

Installation and Setup

To use PolarisAIDataInsight model, you need to install a python package:

pip install -U langchain-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 Loaders

from langchain_polaris_ai_datainsight import PolarisAIDataInsightLoader

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

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

langchain_polaris_ai_datainsight-1.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

  • Download URL: langchain_polaris_ai_datainsight-1.0.0.tar.gz
  • Upload date:
  • Size: 5.7 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 langchain_polaris_ai_datainsight-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c07553fa524f2eae69c4b5fb1e4974bacdd9258886058361e892b7557bc1976e
MD5 a5ae7a6b05482b61ce4360f7733b234f
BLAKE2b-256 e2e8f9ec294665b8b2a2625fe463c77d837d783206d6faf701d6e3f7753c3080

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_polaris_ai_datainsight-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37d947b558c5ae0b780a37095ab4a012343c08278ca502cb5f0a7dd7f7907373
MD5 6cff8fc1a9bde63ba8fbeee75513528a
BLAKE2b-256 24c851ea54e30306cd052706df1ce631af3ff6f143509a8ff4ebedece566e67e

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