Psychic
PsychicReader #
基类: BaseReader
Psychic 阅读器。
Psychic 是一个平台,允许通过一个通用 API 同步来自许多 SaaS 应用的数据。该阅读器连接到 Psychic 实例,并根据连接器 ID、账户 ID 和 API 密钥从其中读取数据。
在 docs.psychic.dev 了解更多信息。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
psychic_key
|
str
|
Psychic 的密钥。请在 https://dashboard.psychic.dev/api-keys 获取。 |
None
|
源代码位于 llama-index-integrations/readers/llama-index-readers-psychic/llama_index/readers/psychic/base.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
load_data #
load_data(connector_id: Optional[str] = None, account_id: Optional[str] = None) -> List[Document]
从 Psychic 连接加载数据。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
connector_id
|
str
|
要连接的连接器 ID |
None
|
account_id
|
str
|
要连接的账户 ID |
None
|
返回值
类型 | 描述 |
---|---|
List[Document]
|
List[Document]:文档列表。 |
源代码位于 llama-index-integrations/readers/llama-index-readers-psychic/llama_index/readers/psychic/base.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|