Skip to main content

llama-index readers feishu_docs integration

Project description

Feishu Doc Loader

pip install llama-index-readers-feishu-docs

This loader takes in IDs of Feishu Docs and parses their text into documents. You can extract a Feishu Doc's ID directly from its URL. For example, the ID of https://test-csl481dfkgqf.feishu.cn/docx/HIH2dHv21ox9kVxjRuwc1W0jnkf is HIH2dHv21ox9kVxjRuwc1W0jnkf. As a prerequisite, you will need to register with Feishu and build an custom app. See here for instructions.

Usage

To use this loader, you simply need to pass in an array of Feishu Doc IDs. The default API endpoints are for Feishu, in order to switch to Lark, we should use set_lark_domain.

app_id = "cli_slkdjalasdkjasd"
app_secret = "dskLLdkasdjlasdKK"
doc_ids = ["HIH2dHv21ox9kVxjRuwc1W0jnkf"]
from llama_index.readers.feishu_docs import FeishuDocsReader

loader = FeishuDocsReader(app_id, app_secret)
documents = loader.load_data(document_ids=doc_ids)

This loader is designed to be used as a way to load data into LlamaIndex.

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

llama_index_readers_feishu_docs-0.4.0.tar.gz (4.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 llama_index_readers_feishu_docs-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_feishu_docs-0.4.0.tar.gz
Algorithm Hash digest
SHA256 aa287d263dc2ae75df79fbfbce2deec1985bca66fe6682aa218b246fb79548de
MD5 c7188756a40ec78d4a0b777584530c0f
BLAKE2b-256 c0d2b7dd0ffd9a4d9aa4b4a89633164d32c1d88f69678a382751336be7c5218b

See more details on using hashes here.

File details

Details for the file llama_index_readers_feishu_docs-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_feishu_docs-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9aaed1cbf48a036eb62c9757eddf15f333e9d5c3feef28e7664c5ec893eb059
MD5 cd9a4fcee322d8120636fb32029e57af
BLAKE2b-256 4b7c7688d26817e2df11ac7ca7d9e6708462d04589c7e7d92b5975d4c5bfce9f

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