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.2.0.tar.gz (3.3 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.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_feishu_docs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a004a10eff79be73b231a40779e500dda5cf3d0e41b39e8cea860045bc3dc4c5
MD5 9f71a6e18c5be210868253dfa8d2bb32
BLAKE2b-256 c1ad31634dade39239e8a271cacbe55295662251e52523ed96444583690f3bf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_feishu_docs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7852049c70dbfb44259e9f425899b7b5b065dc831d4f40114e969568a8460789
MD5 8cf14f90cbae0b58e828bfc26f083760
BLAKE2b-256 37b283a148e2075c58a6974bb35698c621556d356cf5149c042163e93860bd7f

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