[improvement](chat) Add an in_process provider and support offline loading of local embedding models. (#505)

This commit is contained in:
lexluo09
2023-12-14 14:16:03 +08:00
committed by GitHub
parent 169262cc62
commit 287a6561ff
9 changed files with 292 additions and 55 deletions

View File

@@ -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;
}
}