Weaviate
WeaviateReader #
Bases: BaseReader
Weaviate阅读器。
通过向量查找从Weaviate中检索文档。允许选择将检索到的文档连接成一个文档,或者返回单独的每个文档的文档对象。
Parameters:
Name | Type | Description | Default |
---|---|---|---|
host |
str
|
主机。 |
required |
auth_client_secret |
Optional[AuthCredentials]
|
auth_client_secret。 |
None
|
Source code in llama_index/readers/weaviate/base.py
9 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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|
load_data #
load_data(
class_name: Optional[str] = None,
properties: Optional[List[str]] = None,
graphql_query: Optional[str] = None,
separate_documents: Optional[bool] = True,
) -> List[Document]
从Weaviate加载数据。
如果在load_kwargs中找不到“graphql_query”,我们假设提供了“class_name”和“properties”。
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]:文档的列表。 |
Source code in llama_index/readers/weaviate/base.py
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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|