Create an AwaDB vectorstore from a list of documents.
If a log_and_data_dir specified, the table will be persisted there.
from_documents(
cls: Type[AwaDB],
documents: List[Document],
embedding: Optional[Embeddings] = 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 |
|---|---|---|
documents* | List[Document] | List of documents to add to the vectorstore. |
embedding | Optional[Embeddings] | Default: NoneEmbedding function. Defaults to None. |
table_name | str | Default: _DEFAULT_TABLE_NAMEName of the table to create. |
log_and_data_dir | Optional[str] | Default: NoneDirectory to persist the table. |
client | Optional[awadb.Client] | Default: NoneAwaDB client. |
Any* | unknown | Any possible parameters in the future |