(improvement)(chat) Support loading local embedding models through the in-memory configuration method (#1201)

This commit is contained in:
lexluo09
2024-06-23 22:57:35 +08:00
committed by GitHub
parent 15ceca3102
commit a7d367baa3
25 changed files with 56 additions and 3464 deletions

View File

@@ -108,7 +108,10 @@ langchain4j:
# model-name: qwen-max-1201
# embedding-model:
# api-key: ${OPENAI_API_KEY:demo}
in-memory:
embedding-model:
model-name: bge-small-zh
#modelPath: /data/model.onnx
#vocabularyPath: /data/onnx_vocab.txt
embedding-store:
file-path: /tmp

View File

@@ -108,5 +108,9 @@ langchain4j:
# base-url: ${OPENAI_API_BASE:https://api.openai.com/v1}
# api-key: ${OPENAI_API_KEY:demo}
in-memory:
embedding-model:
model-name: bge-small-zh
#modelPath: /data/model.onnx
#vocabularyPath: /data/onnx_vocab.txt
embedding-store:
file-path: /tmp