Giter VIP home page Giter VIP logo

plot-generator-agent's Introduction

Let's build our first LLM agent

Table of Contents

What is this repo about?

In this repository you will find a Python implementation of an LLM agent that can generate visualisations using public data available on the Internet.

What is an LLM agent?

An agent is essentially a wrapper around your LLM, that provides extra functionality like

  • Tool usage. The LLM is able to select and use tools, like internet search, to fetch relevant information it might need to accomplish the task.

  • Multi-step reasoning. The LLM can generate a plan, execute it, and adjust it based on the partial outcomes obtained.

The LLM acts as a reasoning machine, that helps the agent choose the sequence of actions to take to solve the task.

Let me show you how to build a ReAct (Reason and Act) agent in Python that can generate the plot we want.

Run the whole thing in 3 minutes

  1. Create Python virtual environment and install all dependencies using Python Poetry

    $ make install
    
  2. Set API keys for Tavily and Cohere in an .env file

    $ cp .env.sample .env
    

    and replace placeholders with your keys.

  3. Ask the agent to generate a plot example

    $ make run-agent
    

Wanna get more hands-on content like this?

Jon 15k+ builders to the the Real-World ML Newsletter, and learn to build real-world ML products.

-> Click to join for FREE

plot-generator-agent's People

Contributors

paulescu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.