mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-13 14:11:20 +08:00
[improvement](chat) Add an in_process provider and support offline loading of local embedding models. (#505)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package dev.langchain4j;
|
||||
|
||||
class InProcess {
|
||||
|
||||
/***
|
||||
* the model local path
|
||||
*/
|
||||
private String modelPath;
|
||||
|
||||
/***
|
||||
* the model's vocabulary local path
|
||||
*/
|
||||
private String vocabularyPath;
|
||||
|
||||
public String getModelPath() {
|
||||
return modelPath;
|
||||
}
|
||||
|
||||
public void setModelPath(String modelPath) {
|
||||
this.modelPath = modelPath;
|
||||
}
|
||||
|
||||
public String getVocabularyPath() {
|
||||
return vocabularyPath;
|
||||
}
|
||||
|
||||
public void setVocabularyPath(String vocabularyPath) {
|
||||
this.vocabularyPath = vocabularyPath;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user