Create Apache Doris wrapper with existing texts
from_texts(
cls,
texts: List[str],
embedding: Embeddings,
metadatas: Optional[List[Dict[Any, Any]]] = None,
config: Optional[ApacheDorisSettings] = None,
text_ids: Optional[Iterable[str]] = None,
batch_size: int = 32,
**kwargs: Any = {}
) -> ApacheDorisReturns: Apache Doris Index
| Name | Type | Description |
|---|---|---|
embedding_function* | Embeddings | Function to extract text embedding |
texts* | Iterable[str] | List or tuple of strings to be added |
config | (ApacheDorisSettings, Optional) | Default: NoneApache Doris configuration |
text_ids | Optional[Iterable] | Default: NoneIDs for the texts. Defaults to None. |
batch_size | int | Default: 32BatchSize when transmitting data to Apache Doris. Defaults to 32. |
metadata* | List[dict] | metadata to texts. Defaults to None. |