Posts

AI Harness Engineering Tutorial

Image
AI Harness Engineering: Build a Self-Correcting Python Agent Introduction         Artificial Intelligence has changed the way we build software applications. Today, we can use AI agents to perform tasks such as writing code, analyzing data, executing commands, debugging applications, and automating workflows. However, building an AI-powered application is not just about connecting an application to an AI model and sending instructions. Imagine building an AI coding agent that can identify errors in Python code, fix those errors, and execute the code again to verify whether the fix actually works. Would simply providing the code to an AI model be enough? Not really! We also need a mechanism to execute the generated code, capture errors, provide feedback, manage retries, validate the results, and maintain control over the entire execution process. This is where AI Harness Engineering comes into the picture. Harness Engineering focuses on building the inf...

Generative AI App LangChain Hugging Face Open Source Models Tutorial

Image
Generative AI App LangChain Hugging Face Open Source Models Tutorial Introduction         If you are looking to build a simple Generative AI App using open source models, then you are at the right place. When I was looking online for a tutorial to build a simple Generative AI App, I usually find videos which are very long and complex to follow or I find courses which are also very long and very time consuming. Hence I decided to come up with this tutorial.         In this tutorial we will focus on building a Generative AI App using simple Python code, LangChain, Open Source models from Hugging Face and Streamlit UI. In this tutorial we will build a simple Generative AI App which creates a caption for any uploaded image, then creates a short story based on the generated caption and then creates an audio file of the generated story which you can listen to. Basics         We will start with some basic concepts and then move on to ...

PHP MySQL REST API CRUD Tutorial

Image
PHP MySQL REST API CRUD Tutorial Introduction         I was looking for a simple Full Stack PHP CRUD REST API Tutorial online, but there was not one tutorial which had both the UI and the REST APIs together. In most of the tutorials either the UI only is explained or else the REST APIs are explained without the UI. Hence I decided to come up with a simple post on this which can be used as a base to build your own full stack PHP app.         In this post, we will build an Employee Dashboard App which can be used to view, create, update and delete Employee Data. We will be building the corresponding CRUD APIs.  PHP         PHP (Hypertext Preprocessor), originally stood for “Personal Home Page” and is a scripting language used for web development. Advantages of PHP include: State: Each and every web request starts from a completely blank slate. Concur...