Canvas AI¶
Parse and Analyse image containing mathematical expression or problem (it can be in a drawing format) using AI to give a structured response by leveraging Langchain framework. Also created API out of it using FastAPI which has containerized with Docker.
Prompt Examples¶
These are some samples which I have used to verify my AI and be sure that it is working fine. You can see the images and their respective structured responses (responses are written inside code-blocks, just below each image).
Example 1¶
Example 2¶
{
"expression": "(x + y)^2",
"result": "225",
"explanation": "Substitute the values of x and y in the expression and simplify using BODMAS."
}
Example 3¶
{
"expression": "10 km/hr * (50 meters / 1000 meters/km) * (3600 seconds / 1 hour)",
"result": "18 seconds",
"explanation": "The car is travelling at 10 km/hr and it has to cover 50 meters, so we can calculate the time it takes to cover the distance."
}
{
"expression": "10 km/hr * 50 meters",
"result": "13.89 seconds",
"explanation": "First convert 10 km/hr to meters/second, then divide 50 meters by the speed to get time."
}
Example 4¶
{
"expression": "√(10² + 10²)",
"result": "14.14 m",
"explanation": "The diagonal of a square forms a right-angled triangle with two sides of the square. Using Pythagoras theorem, we can calculate the diagonal."
}