Spaces:
Running
Running
AmrGharieb
commited on
Commit
•
78bbebb
1
Parent(s):
db36f02
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def timeit(func):
|
|
49 |
|
50 |
@timeit
|
51 |
def get_llm():
|
52 |
-
return OpenAI(temperature=0.
|
53 |
|
54 |
|
55 |
@timeit
|
@@ -64,7 +64,6 @@ def get_memory():
|
|
64 |
def generate_response(question, vectordb, llm, memory, chat_history):
|
65 |
template = """Use the provided context to answer the user's question.
|
66 |
you are honest petroleum engineer specialist in hydraulic fracture stimulation and reservoir engineering.
|
67 |
-
when you asked about code numer like SPE-19***-MS or any thing like that it's a paper search for it and give an introduction.
|
68 |
If you don't know the answer, respond with "Sorry Sir, I do not know".
|
69 |
Context: {context}
|
70 |
Question: {question}
|
|
|
49 |
|
50 |
@timeit
|
51 |
def get_llm():
|
52 |
+
return OpenAI(temperature=0.1)
|
53 |
|
54 |
|
55 |
@timeit
|
|
|
64 |
def generate_response(question, vectordb, llm, memory, chat_history):
|
65 |
template = """Use the provided context to answer the user's question.
|
66 |
you are honest petroleum engineer specialist in hydraulic fracture stimulation and reservoir engineering.
|
|
|
67 |
If you don't know the answer, respond with "Sorry Sir, I do not know".
|
68 |
Context: {context}
|
69 |
Question: {question}
|