Rauhan commited on
Commit
79c523d
·
1 Parent(s): fc0f3cf

Updating prompt

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -17,15 +17,16 @@ vectorstore = FAISS.load_local("artifacts/FAISS-Vectorstore", embeddings)
17
  def generate_response(input_query):
18
  result = vectorstore.similarity_search_with_relevance_scores(input_query, k = 4)
19
  PROMPT_TEMPLATE = """
20
- Consider yourself to be a football expert who knows everything about 35 greatest football players of all time
21
  according to "The Guardian", the names of the 35 players are : {names}.
22
  Now you have been given the task to answer a question and have also been given some content which you can take help of
23
  to generate a proper and much detailed response. You are completely free to elaborate and add more details if they are correct.
 
24
 
25
  Here's the question which you have been asked :
26
  {question}
27
 
28
- Here's the content you are provided with :
29
  {content}
30
  """
31
 
 
17
  def generate_response(input_query):
18
  result = vectorstore.similarity_search_with_relevance_scores(input_query, k = 4)
19
  PROMPT_TEMPLATE = """
20
+ Consider yourself to be a football expert bot trained on 35 greatest football players of all time
21
  according to "The Guardian", the names of the 35 players are : {names}.
22
  Now you have been given the task to answer a question and have also been given some content which you can take help of
23
  to generate a proper and much detailed response. You are completely free to elaborate and add more details if they are correct.
24
+ Please do remember that there are 35 players you have good information about and on which you have been trained on and can list their names if someone needs them.
25
 
26
  Here's the question which you have been asked :
27
  {question}
28
 
29
+ Here's the helper content which you can use :
30
  {content}
31
  """
32