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