Skip to content

Commit

Permalink
fix: EMBEDDING_MODEL env config (#265)
Browse files Browse the repository at this point in the history
1.solve the problem that EMBEDDING_MODEL config did not work 
Close #264
  • Loading branch information
csunny authored Jun 22, 2023
2 parents 3b17fa4 + cc422a2 commit 879f6ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pilot/server/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
DATASETS_DIR,
KNOWLEDGE_UPLOAD_ROOT_PATH,
LOGDIR,
LLM_MODEL_CONFIG,
)

from pilot.conversation import (
Expand Down Expand Up @@ -631,7 +632,7 @@ def knowledge_embedding_store(vs_id, files):
)
knowledge_embedding_client = KnowledgeEmbedding(
file_path=os.path.join(KNOWLEDGE_UPLOAD_ROOT_PATH, vs_id, filename),
model_name=CFG.EMBEDDING_MODEL,
model_name=LLM_MODEL_CONFIG[CFG.EMBEDDING_MODEL],
vector_store_config={
"vector_store_name": vector_store_name["vs_name"],
"vector_store_path": KNOWLEDGE_UPLOAD_ROOT_PATH,
Expand Down

0 comments on commit 879f6ae

Please sign in to comment.