Create an AtlasDB vectorstore from a raw documents.
from_texts(
cls: Type[AtlasDB],
texts: List[str],
embedding: Optional[Embeddings] = None,
metadatas: Optional[List[dict]] = None,
ids: Optional[List[str]] = None,
name: Optional[str] = None,
api_key: Optional[str] = None,
description: str = 'A description for your project',
is_public: bool = True,
reset_project_if_exists: bool = False,
index_kwargs: Optional[dict] = None,
**kwargs: Any = {}
) -> AtlasDB| Name | Type | Description |
|---|---|---|
texts* | List[str] | The list of texts to ingest. |
name | str | Default: NoneName of the project to create. |
api_key | str | Default: NoneYour nomic API key, |
embedding | Optional[Embeddings] | Default: NoneEmbedding function. Defaults to None. |
metadatas | Optional[List[dict]] | Default: NoneList of metadatas. Defaults to None. |
ids | Optional[List[str]] | Default: NoneOptional list of document IDs. If None, ids will be auto created |
description | str | Default: 'A description for your project'A description for your project. |
is_public | bool | Default: TrueWhether your project is publicly accessible. True by default. |
reset_project_if_exists | bool | Default: FalseWhether to reset this project if it already exists. Default False. Generally useful during development and testing. |
index_kwargs | Optional[dict] | Default: NoneDict of kwargs for index creation. See https://docs.nomic.ai/atlas_api.html |