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.
- Addition: Adds two integers.
- Subtraction: Subtracts one integer from another.
- Multiplication: Multiplies two integers.
- Division: Divides one integer by another.
- Python
nest_asyncio
chainlit
- Clone the repository:
git clone https://github.com/prajuktadey/agent-basic-calculator cd agent-basic-calculator
- Install the required libraries:
pip install nest_asyncio chainlit
- Start the Chainlit server:
chainlit run app.py
- 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.
Below is a visual representation of how it works: