langchain_community.document_loaders.psychic
.PsychicLoader¶
- class langchain_community.document_loaders.psychic.PsychicLoader(api_key: str, account_id: str, connector_id: Optional[str] = None)[source]¶
从`Psychic.dev`加载。
使用API密钥、连接器ID和账户ID进行初始化。
- 参数:
api_key: Psychic API密钥。 account_id: Psychic账户ID。 connector_id: Psychic连接器ID。
Methods
__init__
(api_key, account_id[, connector_id])使用API密钥、连接器ID和账户ID进行初始化。
一个用于文档的惰性加载器。
aload
()将数据加载到文档对象中。
一个用于文档的惰性加载器。
load
()将数据加载到文档对象中。
load_and_split
([text_splitter])加载文档并分割成块。块作为文档返回。
- Parameters
api_key (str) –
account_id (str) –
connector_id (Optional[str]) –
- __init__(api_key: str, account_id: str, connector_id: Optional[str] = None)[source]¶
使用API密钥、连接器ID和账户ID进行初始化。
- 参数:
api_key: Psychic API密钥。 account_id: Psychic账户ID。 connector_id: Psychic连接器ID。
- Parameters
api_key (str) –
account_id (str) –
connector_id (Optional[str]) –
- load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document] ¶
加载文档并分割成块。块作为文档返回。
不要覆盖此方法。应该被视为已弃用!
- 参数:
- text_splitter: 用于分割文档的TextSplitter实例。
默认为RecursiveCharacterTextSplitter。
- 返回:
文档列表。
- Parameters
text_splitter (Optional[TextSplitter]) –
- Return type
List[Document]