Initialize Couchbase document loader.
Parameters
connection_string (str) – The connection string to the Couchbase cluster.
db_username (str) – The username to connect to the Couchbase cluster.
db_password (str) – The password to connect to the Couchbase cluster.
query (str) – The SQL++ query to execute.
page_content_fields (Optional[List[str]]) – The columns to write into the
page_content field of the document. By default, all columns are
written.
metadata_fields (Optional[List[str]]) – The columns to write into the
metadata field of the document. By default, no columns are written.
lazy_load() → Iterator[Document][source]¶
Load Couchbase data into Document objects lazily.
load() → List[Document][source]¶
Load Couchbase data into Document objects.
load_and_split(text_splitter: Optional[TextSplitter] = None) → List[Document]¶
Load Documents and split into chunks. Chunks are returned as Documents.
Parameters
text_splitter – TextSplitter instance to use for splitting documents.
Defaults to RecursiveCharacterTextSplitter.
Returns
List of Documents.