All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.extension.ai.deployment.AIAttachements Maven / Gradle / Ivy

There is a newer version: 0.1.0
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */
package org.wildfly.extension.ai.deployment;

import dev.langchain4j.model.chat.ChatLanguageModel;
import dev.langchain4j.model.embedding.EmbeddingModel;
import dev.langchain4j.rag.content.retriever.ContentRetriever;
import dev.langchain4j.store.embedding.EmbeddingStore;
import org.jboss.as.server.deployment.AttachmentKey;
import org.jboss.as.server.deployment.AttachmentList;

/**
 *
 * @author Emmanuel Hugonnet (c) 2024 Red Hat, Inc.
 */
public class AIAttachements {

    static final AttachmentKey> CHAT_MODELS = AttachmentKey.createList(ChatLanguageModel.class);
    static final AttachmentKey> CHAT_MODEL_KEYS = AttachmentKey.createList(String.class);
    static final AttachmentKey> EMBEDDING_MODELS = AttachmentKey.createList(EmbeddingModel.class);
    static final AttachmentKey> EMBEDDING_MODEL_KEYS = AttachmentKey.createList(String.class);
    static final AttachmentKey> EMBEDDING_STORES = AttachmentKey.createList(EmbeddingStore.class);
    static final AttachmentKey> EMBEDDING_STORE_KEYS = AttachmentKey.createList(String.class);
    static final AttachmentKey> CONTENT_RETRIEVERS = AttachmentKey.createList(ContentRetriever.class);
    static final AttachmentKey> CONTENT_RETRIEVER_KEYS = AttachmentKey.createList(String.class);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy