from_texts(
cls: Type[AzureSearch],
texts: List[str],
| Name | Type | Description |
|---|---|---|
texts* | List[str] | List of texts to add to the vector store. |
embedding* | Embeddings | Embeddings instance to use for encoding texts. |
metadatas | Optional[List[dict]] | Default: None |
azure_search_endpoint | str | Default: '' |
azure_search_key | str | Default: '' |
azure_ad_access_token | Optional[str] | Default: None |
index_name | str | Default: 'langchain-index' |
fields | Optional[List[SearchField]] | Default: None |
**kwargs | Any | Default: {} |
Create Azure Search vector store from a list of texts.
Optional list of metadata dicts for each text.
Azure Search service endpoint.
Azure Search service API key.
Azure AD access token for authentication.
Name of the search index. Defaults to "langchain-index".
List of search fields to use for the index.
Additional keyword arguments.