Create an AwaDB vectorstore from a raw documents.
from_texts(
cls: Type[AwaDB],
texts: List[str],
embedding: Optional[Embeddings] = None,
metadatas: Optional[List[dict]] = None,
table_name: str = _DEFAULT_TABLE_NAME,
log_and_data_dir: Optional[str] = None,
client: Optional[awadb.Client] = None,
**kwargs: Any = {}
) -> AwaDB| Name | Type | Description |
|---|---|---|
texts* | List[str] | List of texts to add to the table. |
embedding | Optional[Embeddings] | Default: NoneEmbedding function. Defaults to None. |
metadatas | Optional[List[dict]] | Default: NoneList of metadatas. Defaults to None. |
table_name | str | Default: _DEFAULT_TABLE_NAMEName of the table to create. |
log_and_data_dir | Optional[str] | Default: NoneDirectory of logging and persistence. |
client | Optional[awadb.Client] | Default: NoneAwaDB client |