Giter Club home page Giter Club logo

autogen-experiments's Introduction

AutoGen experiments

This project is a learning exercise on learning LLM agents using AutoGen.

Examples of items to explore:

  • How to use agents to solve a task.
  • What are the limitations? For example, do we need GPT-4, or could a simpler (and cheaper) model do the job?
  • How many tokens do we consume for the agents and the behind-the-scenes processing (the selection and coordination of the agents)?

How to use this project

If you haven't done so yet, prepare the environment. If you have already prepared the environment, activate it with source venv/bin/activate.

Each notebook is a self-contained experiment. You can run them in any order.

You may need to select a Python kernel the first time you open a notebook. Choose the kernel from the virtual environment you created.

  • Sequential chat: Given a starting and ending number, select math operators (agents) to transform the starting number into the ending number.

Preparing the environment

OpenAI key

Create a file named .env in the root of the project with the following content:

OPENAI_API_KEY=your-openai-api-key

This file is in the .gitignore. It will never be committed to the repository.

Python environment

This is a one-time step. If you have already done this, just activate the virtual environment with source venv/bin/activate.

Run the following commands to create a virtual environment and install the required packages.

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

autogen-experiments's People

Contributors

cgarbin avatar

Stargazers

Vladislav Sorokin avatar

Watchers

 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.