ArturG9 commited on
Commit
6684bbc
·
verified ·
1 Parent(s): 8e064c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def create_retriever_from_chroma(vectorstore_path="./docs/chroma/", search_type=
37
 
38
  model_name = "Alibaba-NLP/gte-base-en-v1.5"
39
  model_kwargs = {'device': 'cpu',
40
- "trust_remote_code" : 'True'}
41
  encode_kwargs = {'normalize_embeddings': True}
42
  embeddings = HuggingFaceEmbeddings(
43
  model_name=model_name,
@@ -177,7 +177,7 @@ def create_conversational_rag_chain(retriever):
177
  verbose=False,
178
  )
179
 
180
- template = """Answer the question using English language, based only on context:
181
  {context}. Be consise.
182
  Question: {question}
183
  """
 
37
 
38
  model_name = "Alibaba-NLP/gte-base-en-v1.5"
39
  model_kwargs = {'device': 'cpu',
40
+ "trust_remote_code" : 'False'}
41
  encode_kwargs = {'normalize_embeddings': True}
42
  embeddings = HuggingFaceEmbeddings(
43
  model_name=model_name,
 
177
  verbose=False,
178
  )
179
 
180
+ template = """Answer the question using natural language, based only on context:
181
  {context}. Be consise.
182
  Question: {question}
183
  """