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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_feishu_docs-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c802169b8c89daf70e73aa4c5ec876b34d559cd4e34dde8a90678c2df073fa1a
MD5 ecce2ac9c09cd13aee8ac7d69764cc0f
BLAKE2b-256 6932a504013648232f5fd18025d0314b678d710d550e439686340be80382a609

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_feishu_docs-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff0e28f09b8da48108b7caf8c08bdeec7f00ceb19666faa347fd974c5912b4d7
MD5 eb4a22f9e76723a636eaffedd6ab6a2d
BLAKE2b-256 c3c3ac7555ea732c49a21e986b8e57eb5e566a8a9230874ee0dd813d626958dd

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