Graphdb cypher
GraphDBCypherReader #
Bases: BaseReader
图数据库 Cypher 阅读器。
将所有 Cypher 查询结果组合成 LlamaIndex 使用的 Document 类型。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
uri
|
str
|
图数据库 URI |
必需 |
username
|
str
|
用户名 |
必需 |
password
|
str
|
密码 |
必需 |
源代码位于 llama-index-integrations/readers/llama-index-readers-graphdb-cypher/llama_index/readers/graphdb_cypher/base.py
中
10 11 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 |
|
load_data #
load_data(query: str, parameters: Optional[Dict] = None) -> List[Document]
使用可选参数运行 Cypher 并将结果转换为文档。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
query
|
str
|
图 Cypher 查询字符串。 |
必需 |
parameters
|
Optional[Dict]
|
可选查询参数。 |
工作流程运行检查点
|
返回
类型 | 描述 |
---|---|
List[Document]
|
List[Document]:文档列表。 |
源代码位于 llama-index-integrations/readers/llama-index-readers-graphdb-cypher/llama_index/readers/graphdb_cypher/base.py
中
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|