rayymaxx commited on
Commit
e19f75e
·
1 Parent(s): 868c437

Fixed model

Browse files
Files changed (2) hide show
  1. backend/chains/router.py +1 -1
  2. backend/server.py +3 -0
backend/chains/router.py CHANGED
@@ -27,7 +27,7 @@ from backend.prompts.templates import (
27
 
28
  vector_store = Chroma(
29
  persist_directory="app/vector_store",
30
- embedding_function=HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2"),
31
  )
32
  openai_llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0.1)
33
  finetuned_llm = CustomChatModel(
 
27
 
28
  vector_store = Chroma(
29
  persist_directory="app/vector_store",
30
+ embedding_function=HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2"),
31
  )
32
  openai_llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0.1)
33
  finetuned_llm = CustomChatModel(
backend/server.py CHANGED
@@ -21,6 +21,9 @@ app.add_middleware(
21
  allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"],
22
  )
23
 
 
 
 
24
 
25
  add_routes(
26
  app,
 
21
  allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"],
22
  )
23
 
24
+ os.environ["HF_HOME"] = "/tmp/huggingface"
25
+ os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface/transformers"
26
+ os.environ["SENTENCE_TRANSFORMERS_HOME"] = "/tmp/huggingface/sentence_transformers"
27
 
28
  add_routes(
29
  app,