| Modifier and Type | Field and Description |
|---|---|
| private final AiPreferences | |
| private static final Set | |
| public static final String | |
| private static final Logger | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private OptionalInt | |
| private OptionalLong | |
| private OptionalInt | |
| private OptionalInt | |
| private OptionalLong | |
| public List | getAvailableModels()
Returns the list of available embedding models discovered from the DJL HuggingFace Model Zoo. |
| public Optional | getMetadata(String modelName)
Queries metadata (download size in bytes and maximum snippet length in tokens) for the given embedding model from DJL ModelZoo, falling back to the Hugging Face Hub REST API. |
| private boolean | |
| private boolean |
| aiPreferences | back to summary |
|---|---|
| private final AiPreferences aiPreferences | |
| CONFIG_AND_TOKENIZER_FILES | back to summary |
|---|---|
| private static final Set<String> CONFIG_AND_TOKENIZER_FILES | |
| DJL_PYTORCH_GROUP_ID | back to summary |
|---|---|
| public static final String DJL_PYTORCH_GROUP_ID | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| metadataCache | back to summary |
|---|---|
| private final Map<String, EmbeddingModelMetadata> metadataCache | |
| EmbeddingModelMetadataService | back to summary |
|---|---|
| public EmbeddingModelMetadataService(AiPreferences aiPreferences) | |
| EmbeddingModelMetadataService | back to summary |
|---|---|
| public EmbeddingModelMetadataService() | |
| extractMaxTokensFromArtifact | back to summary |
|---|---|
| private OptionalInt extractMaxTokensFromArtifact(ai. | |
| extractSizeFromArtifact | back to summary |
|---|---|
| private OptionalLong extractSizeFromArtifact(ai. | |
| fetchIntFieldFromJson | back to summary |
|---|---|
| private OptionalInt fetchIntFieldFromJson(String url, String fieldName) | |
| fetchMaxTokensFromHuggingFace | back to summary |
|---|---|
| private OptionalInt fetchMaxTokensFromHuggingFace(String modelName) | |
| fetchSizeFromHuggingFace | back to summary |
|---|---|
| private OptionalLong fetchSizeFromHuggingFace(String modelName) | |
| getAvailableModels | back to summary |
|---|---|
| public List Returns the list of available embedding models discovered from the DJL HuggingFace Model Zoo. | |
| getMetadata | back to summary |
|---|---|
| public Optional Queries metadata (download size in bytes and maximum snippet length in tokens) for the given embedding model from DJL ModelZoo, falling back to the Hugging Face Hub REST API. | |
| isAiEnabled | back to summary |
|---|---|
| private boolean isAiEnabled() | |
| isTokenizerOrConfigFile | back to summary |
|---|---|
| private boolean isTokenizerOrConfigFile(String path) | |