Slide 20
Slide 20 text
© NTT Communications Corporation All Rights Reserved. 20
Call for Sponsors
When & Where is PyCon APAC 2025?
PyCon APAC 2015 Theme
Agent
● Agents track the state of the conversation
○ Capable of handling multiple turns of
conversation
● Clarification questions
○ If you do not have enough information to
answer the query
○ If you don't have enough information to
answer the query, request clarifying questions
● Explanation
○ why they gave the answer they did.
● Rephrase Question
○ If you want to get a more accurate answer
○ Ask the LLM side to rephrase the question
from pandasai import Agent
sales_by_country = pd.DataFrame({
"country": ["United States", "United Kingdom", "France",
"Germany", "Italy", "Spain", "Canada", "Australia", "Japan",
"China"],
"sales": [5000, 3200, 2900, 4100, 2300, 2100, 2500, 2600,
4500, 7000],.
"deals_opened":[142, 80, 70, 90, 60, 50, 40, 30, 110, 120],.
"deals_closed":[120, 70, 60, 80, 50, 40, 30, 20, 100, 110]
})
agent = Agent(sales_by_country)
agent.chat('Which are the top 5 countries by sales?')
# Output: China, United States, Japan, Germany, Australia
agent.chat('And which one has the most deals?')
# Output: United States has the most deals