-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from MuleSoft-AI-Chain-Project/feature/enhance…
…d-module-configuration Feature/enhanced module configuration
- Loading branch information
Showing
51 changed files
with
927 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
...va/org/mule/extension/vectors/internal/helper/provider/EmbeddingModelServiceProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
src/main/java/org/mule/extension/vectors/internal/helper/provider/VectorStoreProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/java/org/mule/extension/vectors/internal/model/BaseModelConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.mule.extension.vectors.internal.model; | ||
|
||
public interface BaseModelConfiguration { | ||
|
||
String getEmbeddingModelService(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
.../org/mule/extension/vectors/internal/model/azureopenai/AzureOpenAIModelConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.mule.extension.vectors.internal.model.azureopenai; | ||
|
||
import org.mule.extension.vectors.internal.constant.Constants; | ||
import org.mule.extension.vectors.internal.model.BaseModelConfiguration; | ||
import org.mule.extension.vectors.internal.store.BaseStoreConfiguration; | ||
import org.mule.runtime.api.meta.ExpressionSupport; | ||
import org.mule.runtime.extension.api.annotation.Alias; | ||
import org.mule.runtime.extension.api.annotation.Expression; | ||
import org.mule.runtime.extension.api.annotation.param.Parameter; | ||
import org.mule.runtime.extension.api.annotation.param.display.DisplayName; | ||
import org.mule.runtime.extension.api.annotation.param.display.Password; | ||
import org.mule.runtime.extension.api.annotation.param.display.Placement; | ||
|
||
@Alias("azureOpenAI") | ||
@DisplayName("Azure OpenAI") | ||
public class AzureOpenAIModelConfiguration implements BaseModelConfiguration { | ||
|
||
@Parameter | ||
@Expression(ExpressionSupport.SUPPORTED) | ||
@Placement(order = 1) | ||
private String endpoint; | ||
|
||
@Parameter | ||
@Password | ||
@Expression(ExpressionSupport.SUPPORTED) | ||
@Placement(order = 2) | ||
private String apiKey; | ||
|
||
@Override | ||
public String getEmbeddingModelService() { | ||
return Constants.EMBEDDING_MODEL_SERVICE_AZURE_OPENAI; | ||
} | ||
|
||
public String getEndpoint() { | ||
return endpoint; | ||
} | ||
|
||
public String getApiKey() { | ||
return apiKey; | ||
} | ||
} |
Oops, something went wrong.