langchain_community.vectorstores.hippo.Hippo¶
class langchain_community.vectorstores.hippo.Hippo(embedding_function: Embeddings, table_name: str = 'test', database_name: str = 'default', number_of_shards: int = 1, number_of_replicas: int = 1, connection_args: Optional[Dict[str, Any]] = None, index_params: Optional[dict] = None, drop_old: Optional[bool] = False)[source]¶
Hippo vector store.
You need to install hippo-api and run Hippo.
Please visit our official website for how to run a Hippo instance:
https://www.transwarp.cn/starwarp
Parameters
embedding_function (Embeddings) – Function used to embed the text.
table_name (str) – Which Hippo table to use. Defaults to
“test”.
database_name (str) – Which Hippo database to use. Defaults to
“default”.
number_of_shards (int) – The number of shards for the Hippo table.Defaults to
1.
number_of_replicas (int) – The number of replicas for the Hippo table.Defaults to
1.
connection_args (Optional[dict[str, any]]) – The connection args used for
this class comes in the form of a dict.
index_params (Optional[dict]) – Which index params to use. Defaults to
IVF_FLAT.
drop_old (Optional[bool]) – Whether to drop the current collection. Defaults
to False.
primary_field (str) – Name of the primary key field. Defaults to “pk”.
text_field (str) – Name of the text field. Defaults to “text”.
vector_field (str) – Name of the vector field. Defaults to “vector”.
The connection args used for this class comes in the form of a dict,