langchain.vectorstores.hologres
.HologresWrapper¶
- class langchain.vectorstores.hologres.HologresWrapper(connection_string: str, ndims: int, table_name: str)[source]¶
Hologres API wrapper.
Initialize the wrapper.
- Parameters
connection_string – Hologres connection string.
ndims – Number of dimensions of the embedding output.
table_name – Name of the table to store embeddings and data.
Methods
__init__
(connection_string, ndims, table_name)Initialize the wrapper.
create_table
([drop_if_exist])get_by_id
(id)insert
(embedding, metadata, document[, id])query_nearest_neighbours
(embedding, k[, filter])- __init__(connection_string: str, ndims: int, table_name: str) None [source]¶
Initialize the wrapper.
- Parameters
connection_string – Hologres connection string.
ndims – Number of dimensions of the embedding output.
table_name – Name of the table to store embeddings and data.