tferhan commited on
Commit
18538ee
·
verified ·
1 Parent(s): 3959b0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -49,7 +49,7 @@ qa_faq = StructuredTool.from_function(
49
  analyze_data = StructuredTool.from_function(
50
  func=get_data,
51
  description = """
52
- Extract and analyze and summarize data from a given url.
53
  Parameters :
54
  - url (string) : the url given by the user.
55
  Returns :
@@ -71,7 +71,7 @@ def request_data(query: str) -> str:
71
  fetch_data = StructuredTool.from_function(
72
  func=request_data,
73
  description="""
74
- Request and fetch data using a search keyword.
75
  Parameters :
76
  - query (string) : the same input as the user input no more no less and always it must be in french if it isn't already. For example : "give me data about health" the input is health in french which is santé, same for other languages and the words translatted must be nouns not adjectives or verbs also the user may request data about an organization where you need to take just the main subject for example "Je veux les données de l'agence de développement digitale" you take just "développement".
77
  Returns :
@@ -126,7 +126,7 @@ template = '''Answer the following questions as best you can. You have access to
126
 
127
  Use the following format:
128
 
129
- Question: the input question you must answer
130
  Thought: you should always think about what to do
131
  Action: the action to take, should be one of [{tool_names}]
132
  Action Input: the input to the action
 
49
  analyze_data = StructuredTool.from_function(
50
  func=get_data,
51
  description = """
52
+ Analyze and summarize data from a given url asked by the user to summarize or analyze dont use it with the tool request_data .
53
  Parameters :
54
  - url (string) : the url given by the user.
55
  Returns :
 
71
  fetch_data = StructuredTool.from_function(
72
  func=request_data,
73
  description="""
74
+ Request and fetch data using a search keyword and return the results without analyse them.
75
  Parameters :
76
  - query (string) : the same input as the user input no more no less and always it must be in french if it isn't already. For example : "give me data about health" the input is health in french which is santé, same for other languages and the words translatted must be nouns not adjectives or verbs also the user may request data about an organization where you need to take just the main subject for example "Je veux les données de l'agence de développement digitale" you take just "développement".
77
  Returns :
 
126
 
127
  Use the following format:
128
 
129
+ Question: the input question you must answer and must be in french if not translate it in french
130
  Thought: you should always think about what to do
131
  Action: the action to take, should be one of [{tool_names}]
132
  Action Input: the input to the action