AsyncEmbeddingModel instances via an EmbeddingModelCache.
Always use the cache so that only one instance (and one background download/load task) is ever
created per embedding model name.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AsyncEmbeddingModel | create(String embeddingModelName, EmbeddingModelCache cache)
Returns the cached |
| public static AsyncEmbeddingModel | create(AiPreferences aiPreferences, EmbeddingModelCache cache)
Convenience overload that reads the embedding model kind from |
| EmbeddingModelFactory | back to summary |
|---|---|
| private EmbeddingModelFactory() | |
| create | back to summary |
|---|---|
| public static AsyncEmbeddingModel create(String embeddingModelName, EmbeddingModelCache cache) Returns the cached | |
| create | back to summary |
|---|---|
| public static AsyncEmbeddingModel create(AiPreferences aiPreferences, EmbeddingModelCache cache) Convenience overload that reads the embedding model kind from | |