-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
115 additions
and
279 deletions.
There are no files selected for viewing
81 changes: 0 additions & 81 deletions
81
...ain/java/ai/dragon/controller/api/backendapi/repository/ProviderBackendApiController.java
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
backend/src/main/java/ai/dragon/entity/ProviderEntity.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
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
2 changes: 0 additions & 2 deletions
2
backend/src/main/java/ai/dragon/enumeration/VectorStoreType.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
21 changes: 21 additions & 0 deletions
21
backend/src/main/java/ai/dragon/job/silo/embedding/EmbeddingModelDefinition.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,21 @@ | ||
package ai.dragon.job.silo.embedding; | ||
|
||
import java.util.List; | ||
import java.util.function.Function; | ||
|
||
import ai.dragon.enumeration.ProviderType; | ||
import dev.langchain4j.model.embedding.EmbeddingModel; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class EmbeddingModelDefinition { | ||
private String embeddingModelClassName; | ||
private String embeddingModelName; | ||
private Function<EmbeddingModelSettings, EmbeddingModel> embeddingModelWithSettings; | ||
private List<String> languages; | ||
private ProviderType providerType; | ||
private int dimensions; | ||
private int maxTokens; | ||
} |
8 changes: 8 additions & 0 deletions
8
backend/src/main/java/ai/dragon/job/silo/embedding/EmbeddingModelSettings.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,8 @@ | ||
package ai.dragon.job.silo.embedding; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class EmbeddingModelSettings { | ||
private String apiKey; | ||
} |
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
10 changes: 0 additions & 10 deletions
10
backend/src/main/java/ai/dragon/repository/ProviderRepository.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
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
Oops, something went wrong.