llama-index readers feishu_docs integration
Project description
Feishu Doc Loader
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
.
from llama_index import download_loader
app_id = "cli_slkdjalasdkjasd"
app_secret = "dskLLdkasdjlasdKK"
doc_ids = ["HIH2dHv21ox9kVxjRuwc1W0jnkf"]
FeishuDocsReader = download_loader("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 and/or subsequently used as a Tool in a LangChain Agent. See here for examples.
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
Built Distribution
Hashes for llama_index_readers_feishu_docs-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfd04a956b56ca252ddc4d185c23563916f22a9eb848baffd6b95bcfe1980585 |
|
MD5 | a4c4c2c7e3b3d60d725af4aa9c41ae01 |
|
BLAKE2b-256 | d3468368efdf456dd2dc1ed0bca4e8cca8be5958b173e2c925c09da0185c939f |
Hashes for llama_index_readers_feishu_docs-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 034c9035fd01e5984a959ec4c779ee1efd851ff2a3230aa0b3c65e11df2fc5f0 |
|
MD5 | 43b407c9fae90ef160c100ded8c3b956 |
|
BLAKE2b-256 | d44f74d0eed4597753897189a8332b8d0cd205987e52eec4e2fc0cbe047ea181 |