Package Methods (0.2.0)

Summary of entries of Methods for langchain-google-el-carro.

langchain_google_el_carro.chat_message_history.ElCarroChatMessageHistory.add_message

add_message(message: langchain_core.messages.base.BaseMessage) -> None

Append the message to the record in the database.

See more: langchain_google_el_carro.chat_message_history.ElCarroChatMessageHistory.add_message

langchain_google_el_carro.chat_message_history.ElCarroChatMessageHistory.clear

clear() -> None

langchain_google_el_carro.loader.ElCarroDocumentSaver

ElCarroDocumentSaver(
    elcarro_engine: langchain_google_el_carro.engine.ElCarroEngine,
    table_name: str,
    content_column: typing.Optional[str] = None,
    metadata_json_column: typing.Optional[str] = None,
)

ElCarroDocumentSaver allows for saving of langchain documents in an ElCarro-Oracle database.

See more: langchain_google_el_carro.loader.ElCarroDocumentSaver

langchain_google_el_carro.loader.ElCarroDocumentSaver._parse_row_from_doc

_parse_row_from_doc(
    column_names: typing.Iterable[str],
    doc: langchain_core.documents.base.Document,
    content_column: str = "page_content",
    metadata_json_column: str = "langchain_metadata",
    json_as_string=True,
) -> typing.Dict

Convert a Document into a dictionary according to the table schema: Store Doc.page_content in result[content_column] If a Doc metadata fields exist in the Table Schema, add them to the result.

See more: langchain_google_el_carro.loader.ElCarroDocumentSaver._parse_row_from_doc

langchain_google_el_carro.loader.ElCarroDocumentSaver.add_documents

add_documents(docs: typing.List[langchain_core.documents.base.Document]) -> None

Save documents in the DocumentSaver table.

See more: langchain_google_el_carro.loader.ElCarroDocumentSaver.add_documents

langchain_google_el_carro.loader.ElCarroDocumentSaver.delete

delete(docs: typing.List[langchain_core.documents.base.Document]) -> None

Delete all instances of a document from the DocumentSaver table by matching the entire Document object.

See more: langchain_google_el_carro.loader.ElCarroDocumentSaver.delete

langchain_google_el_carro.loader.ElCarroLoader

ElCarroLoader(
    elcarro_engine: langchain_google_el_carro.engine.ElCarroEngine,
    table_name: str = "",
    query: str = "",
    content_columns: typing.Optional[typing.List[str]] = None,
    metadata_columns: typing.Optional[typing.List[str]] = None,
    metadata_json_column: typing.Optional[str] = None,
)

Document page content defaults to the first column present in the query or table and metadata defaults to all other columns.

See more: langchain_google_el_carro.loader.ElCarroLoader

langchain_google_el_carro.loader.ElCarroLoader.lazy_load

lazy_load() -> typing.Iterator[langchain_core.documents.base.Document]

Lazy Load langchain documents from an Elcarro-Oracle database.

See more: langchain_google_el_carro.loader.ElCarroLoader.lazy_load

langchain_google_el_carro.loader.ElCarroLoader.load

load() -> typing.List[langchain_core.documents.base.Document]

Load langchain documents from an Elcarro-Oracle database.

See more: langchain_google_el_carro.loader.ElCarroLoader.load