Couchbase
CouchbaseReader #
Bases: BaseReader
Couchbase document loader.
Loads data from a Couchbase cluster into Document used by LlamaIndex.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
client(Optional[Any])
|
A Couchbase client to use. If not provided, the client will be created based on the connection_string and database credentials. |
required | |
connection_string
|
Optional[str]
|
The connection string to the Couchbase cluster. |
None
|
db_username
|
Optional[str]
|
The username to connect to the Couchbase cluster. |
None
|
db_password
|
Optional[str]
|
The password to connect to the Couchbase cluster. |
None
|
Source code in llama-index-integrations/readers/llama-index-readers-couchbase/llama_index/readers/couchbase/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 |
|
lazy_load_data #
lazy_load_data(query: str, text_fields: Optional[List[str]] = None, metadata_fields: Optional[List[str]] = []) -> Iterable[Document]
Load data from the Couchbase cluster lazily.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
The SQL++ query to execute. |
required |
text_fields
|
Optional[List[str]]
|
The columns to write into the
|
None
|
metadata_fields
|
Optional[List[str]]
|
The columns to write into the
|
[]
|
Source code in llama-index-integrations/readers/llama-index-readers-couchbase/llama_index/readers/couchbase/base.py
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 |
|
load_data #
load_data(query: str, text_fields: Optional[List[str]] = None, metadata_fields: Optional[List[str]] = None) -> List[Document]
Load data from the Couchbase cluster.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
The SQL++ query to execute. |
required |
text_fields
|
Optional[List[str]]
|
The columns to write into the
|
None
|
metadata_fields
|
Optional[List[str]]
|
The columns to write into the
|
None
|
Source code in llama-index-integrations/readers/llama-index-readers-couchbase/llama_index/readers/couchbase/base.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|