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