Skip to content

prajuktadey/agent-basic-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Calculator AI Agent

This project sets up an AI agent that performs basic mathematical operations using the Llama Index framework and the Ollama model. The agent can handle addition, subtraction, multiplication, and division of integers based on user input.

Features

  • Addition: Adds two integers.
  • Subtraction: Subtracts one integer from another.
  • Multiplication: Multiplies two integers.
  • Division: Divides one integer by another.

Prerequisites

  • Python
  • nest_asyncio
  • chainlit

Installation

  1. Clone the repository:
    git clone https://github.com/prajuktadey/agent-basic-calculator
    cd agent-basic-calculator
    
  2. Install the required libraries:
pip install nest_asyncio chainlit
  1. Start the Chainlit server:
chainlit run app.py
  1. Interact with the AI Agent:
  • Open the provided URL in your browser.

  • The agent will greet you and you can input mathematical expressions for it to solve.

    Overview

Below is a visual representation of how it works:

Workflow Workflow

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages