Create an AtlasDB vectorstore from a list of documents.
from_documents(
cls: Type[AtlasDB],
documents: List[Document],
embedding: Optional[Embeddings] = None,
ids: Optional[List[str]] = None,
name: Optional[str] = None,
api_key: Optional[str] = None,
persist_directory: 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 |
|---|---|---|
name | str | Default: NoneName of the collection to create. |
api_key | str | Default: NoneYour nomic API key, |
documents* | List[Document] | List of documents to add to the vectorstore. |
embedding | Optional[Embeddings] | Default: NoneEmbedding function. 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 |