TiDBVectorStore(
self,
connection_string: str,
embedding_function: Embeddings,
table_name: str = | Name | Type | Description |
|---|---|---|
connection_string* | str | The connection string for the TiDB database, format: "mysql+pymysql://root@34.212.137.91:4000/test". |
embedding_function* | Embeddings | The embedding function used to generate embeddings. |
table_name | str | Default: DEFAULT_TiDB_VECTOR_TABLE_NAMEThe name of the table that will be used to
store vector data. If you do not provide a table name,
a default table named |
distance_strategy | str | Default: DEFAULT_DISTANCE_STRATEGY |
engine_args | Optional[Dict] | Default: None |
drop_existing_table | bool | Default: False |
**kwargs | Any | Default: {} |
TiDB Vector Store.
The strategy used for similarity search, defaults to "cosine", valid values: "l2", "cosine".
Additional arguments for the database engine, defaults to None.
Drop the existing TiDB table before initializing, defaults to False.
Additional keyword arguments.