Create an index of embeddings for a list of contexts.
create_index(
contexts: List[str],
embeddings: Embeddings,
) -> np.ndarray| Name | Type | Description |
|---|---|---|
contexts* | List[str] | List of contexts to embed. |
embeddings* | Embeddings | Embeddings model to use. |