app.py
CHANGED
@@ -232,7 +232,7 @@ import gradio as gr
|
|
232 |
|
233 |
def ask_query(query):
|
234 |
|
235 |
-
# LLM
|
236 |
llm = ChatOpenAI(temperature=0, model_name='gpt-4') # 'gpt-3.5-turbo'
|
237 |
agent = initialize_agent(agent="zero-shot-react-description", tools=tools, llm=llm, verbose=True, max_iterations=7, return_intermediate_steps=True)
|
238 |
system = "If the answer is not in the tools or context passed to you then don't answer. \nIf you don't know the answer then say so."
|
|
|
232 |
|
233 |
def ask_query(query):
|
234 |
|
235 |
+
# LLM
|
236 |
llm = ChatOpenAI(temperature=0, model_name='gpt-4') # 'gpt-3.5-turbo'
|
237 |
agent = initialize_agent(agent="zero-shot-react-description", tools=tools, llm=llm, verbose=True, max_iterations=7, return_intermediate_steps=True)
|
238 |
system = "If the answer is not in the tools or context passed to you then don't answer. \nIf you don't know the answer then say so."
|