Skip to main content

No project description provided

Project description

A minimalistic LLM agent for Exploratory Data Analysis (EDA) using pandas library

Task: given a CSV or a XLSX file, respond to user's query about this table by generating a python code and executing it.

  • Using LangChain routers/tagging, a prompt type will be established: to produce a plot or to compute the numerical values.
  • The GPT model breaks down the user's request into several subtasks.
  • The LLM generates code based on these subtasks.
  • The code is executed using the python REPL.
  • If the REPL throws an error, GPT will begin debugging until resolved.
  • The result is the string output of the code 'print(result)' + optionally, saved image with a plot.

Query example: 'Find correlation between GDP and happiness index, subtract 0.4 and multiply by 1e6.'

alt text

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agenttobenamed-0.1.14.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

agenttobenamed-0.1.14-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page