Spaces:
Sleeping
Sleeping
samlonka
commited on
Commit
•
96702d3
1
Parent(s):
e2ced3e
'maximum_iterations'
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ query_engine_tools = [
|
|
103 |
The column names as follows:\
|
104 |
'mantra_id', 'scripture_name', 'KandahNumber', 'PrapatakNumber','AnuvakNumber', 'MantraNumber', 'DevataName', 'RishiName', 'SwarahName', 'ChandaName',\
|
105 |
'padapatha', 'vedamantra', 'AdhyayaNumber', 'ArchikahNumber', 'ArchikahName', 'ShuktaNumber', 'keyShukta', 'ParyayaNumber', 'MandalaNumber'
|
106 |
-
''This tool is very useful to answer questions related to
|
107 |
Sample Query:\
|
108 |
1. How many mantras are there in RigVeda whose swarah is gāndhāraḥ?\
|
109 |
2. How many different devata present in rigveda?\
|
@@ -131,7 +131,7 @@ context = """
|
|
131 |
# Function to create ReActAgent instance (change it based on your initialization logic)
|
132 |
@st.cache_resource(show_spinner=False) # Set allow_output_mutation to True for mutable objects like instances
|
133 |
def create_react_agent():
|
134 |
-
return ReActAgent.from_tools(tools, llm=llm_AI4, context=context, memory = memory, verbose=True)
|
135 |
|
136 |
# Example usage
|
137 |
react_agent_instance = create_react_agent()
|
|
|
103 |
The column names as follows:\
|
104 |
'mantra_id', 'scripture_name', 'KandahNumber', 'PrapatakNumber','AnuvakNumber', 'MantraNumber', 'DevataName', 'RishiName', 'SwarahName', 'ChandaName',\
|
105 |
'padapatha', 'vedamantra', 'AdhyayaNumber', 'ArchikahNumber', 'ArchikahName', 'ShuktaNumber', 'keyShukta', 'ParyayaNumber', 'MandalaNumber'
|
106 |
+
''This tool is very useful to answer questions related to count or list etc. \
|
107 |
Sample Query:\
|
108 |
1. How many mantras are there in RigVeda whose swarah is gāndhāraḥ?\
|
109 |
2. How many different devata present in rigveda?\
|
|
|
131 |
# Function to create ReActAgent instance (change it based on your initialization logic)
|
132 |
@st.cache_resource(show_spinner=False) # Set allow_output_mutation to True for mutable objects like instances
|
133 |
def create_react_agent():
|
134 |
+
return ReActAgent.from_tools(tools, llm=llm_AI4, context=context, memory = memory, max_iterations = 50,verbose=True)
|
135 |
|
136 |
# Example usage
|
137 |
react_agent_instance = create_react_agent()
|