Update app.py
Browse files
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" : '
|
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
|
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 |
"""
|