Aita
  • Introduction
  • Roadmap
  • Aita Lab
    • Chat
    • Data Source
  • Architecture
  • Contribution
  • Getting Started
    • Quick Start
  • Installation
  • Reference
    • Aita agent
      • Pandas Agent
      • Pyarrow Agent
      • Python Agent
      • Spark Agent
      • SqlAgent
    • Data Sources
      • sql
      • File Data Source
      • Postgres Data Source
      • Snowflake Data Source
    • Aita tool
      • PythonTool
      • PandasTool
      • PyArrow Tool
      • pyspark tool
      • Sql Tools
  • Tech specs
    • Aita tech spec v1
Powered by GitBook
On this page
  1. Reference
  2. Aita agent

Pyarrow Agent

The Pyarrow agent is an Aita agent that runs on the Pyarrow library. The Pyarrow agent can be used to ask questions in natural language and interact with Pyarrow Tables.

Example

python
from aita.agent.pyarrow import PyArrowAgent 
import pyarrow as pa

table = pa.table({
    'customer_id': pa.array([1, 2, 3, 4, 5]),
    'purchase_amount': pa.array([100, 200, 300, 400, 500])
})

pa_agent = PyArrowAgent("gpt-3.5-turbo") \
    .add_table(table)

pa_agent.stream("I want to get the top customers which making the most purchases")
PreviousPandas AgentNextPython Agent

Last updated 11 months ago