ecarr-bend commited on
Commit
ec8a6f6
·
1 Parent(s): 7b559e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -72,6 +72,10 @@ def predict(message, model_type):
72
  q = Queue()
73
  job_done = object()
74
 
 
 
 
 
75
  # create retrieval tool
76
  tool = create_retriever_tool(
77
  retriever,
@@ -79,10 +83,6 @@ def predict(message, model_type):
79
  "Searches and returns information about the MarkStrat simulation program."
80
  )
81
  tools = [tool]
82
-
83
- # load existing index
84
- vectorsearch = Pinecone.from_existing_index(index_name, embeddings)
85
- retriever = vectorsearch.as_retriever()
86
 
87
  # conversational retrieval agent component construction - memory, prompt template, agent, agent executor
88
  # specifying LLM to use
 
72
  q = Queue()
73
  job_done = object()
74
 
75
+ # load existing index
76
+ vectorsearch = Pinecone.from_existing_index(index_name, embeddings)
77
+ retriever = vectorsearch.as_retriever()
78
+
79
  # create retrieval tool
80
  tool = create_retriever_tool(
81
  retriever,
 
83
  "Searches and returns information about the MarkStrat simulation program."
84
  )
85
  tools = [tool]
 
 
 
 
86
 
87
  # conversational retrieval agent component construction - memory, prompt template, agent, agent executor
88
  # specifying LLM to use