Daily tips and tutorials on LLM, RAG and AI Agents | Author of books on GPT-3 & Neural Search in Production | DMs open for collaboration
10 subscribers
Nov 10 • 9 tweets • 3 min read
Build an AI Finance Agent with web access using xAI Grok in just 20 lines of Python Code (step-by-step instructions):
For easy viewing, follow this blog post with step-by-step code instructions.
Alternatively, continue reading for detailed code instructions and steps.
Build a team of AI Agents to create an AI financial analyst with web access using GPT-4o in just 20 lines of Python Code (step-by-step instructions):
For easy viewing, follow this blog post with step-by-step code instructions.
Alternatively, continue reading for detailed code instructions and steps.
Build an AI RAG agent with web access using GPT-4o in just 15 lines of Python Code (step-by-step instructions):
For easy viewing, follow this blog post with step-by-step code instructions.
Alternatively, continue reading for detailed code instructions and steps.
Finetune Llama 3.2 for free in just 30 lines of Python Code (step-by-step instructions):
For easy viewing, follow this blog post with step-by-step code instructions.
Alternatively, continue reading for detailed code instructions and steps.
Build a LLM app with RAG to chat with PDF using Llama 3.2 running locally on your computer (100% free and without internet):
1. Import necessary libraries
• Streamlit for building the web app
• Embedchain for the RAG functionality
• tempfile for creating temporary files and directories
Sep 25 • 9 tweets • 3 min read
Build an Autonomous AI Web Agent that can take actions on its own in just 10 lines of Python Code (step-by-step instructions):
1. Install the required Python library
You will need to set the OPENAI_API_KEY variable in your local environment with a valid API key for this example to work.
Sep 24 • 8 tweets • 3 min read
5 opensource frameworks to build LLM apps with RAG (100% free):
1. @n8n_io
Opensource AI toolkit to build local LLM apps with RAG and AI agents.
It uses @ollama for serving local LLMs like Llama-3 and @qdrant_engine to for local vector database.
Run an Opensource conversational AI model like ChatGPT voice mode locally on your computer in just three simple steps (100 % free and offline):
1. Install the Python Library Moshi MLX
Sep 14 • 13 tweets • 4 min read
Build an AI Customer Support Agent with memory using GPT-4o and vector database in less than 100 lines of Python Cod (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Aug 17 • 12 tweets • 4 min read
Build an LLM app with Mixture of AI Agents using small Opensource LLMs that can beat GPT-4o in just 40 lines of Python Code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Aug 15 • 12 tweets • 4 min read
Build a Multi LLM playground with OpenAI GPT-4o, Claude Sonnet 3.5 and Cohere Command R in just 15 lines of Python Code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Jul 28 • 5 tweets • 2 min read
3 ways to run Llama 3.1 locally on your computer (100% free and without internet):
1. Ollama + OpenWebUI
Ollama is an opensource project that provides an easy way to download and run local LLMs like Llama 3.1 on your computer.
Ollama integrates with the OpenWebUI project, which gives you a web-based ChatGPT like user interface to interact with the local LLMs.
Jul 23 • 12 tweets • 4 min read
Build an AI Research Agent with memory using GPT-4o-mini and vector database to search relevant research papers based on your interest in just 40 lines of Python Code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Jul 22 • 14 tweets • 5 min read
Build a LLM app with shared Memory across multiple LLMs like GPT-4o, Claude Sonnet 3.5 and Llama-3 using vector database in less than 100 lines of Python Code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Jul 21 • 13 tweets • 4 min read
Build an AI Travel Agent with memory using GPT-4o and vector database in less than 100 lines of Python Code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Jul 19 • 10 tweets • 3 min read
Build a LLM app with personalized memory using GPT-4o and vector database in just 30 lines of Python Code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Jul 15 • 10 tweets • 3 min read
Build an AI Movie Production Agent with Claude Sonnet 3.5 in just 30 lines of Python Code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following commands from your terminal to install the required libraries:
Jul 2 • 10 tweets • 3 min read
Claude Sonnet 3.5 can now search the web with just 15 lines of Python code (step-by-step instructions):
1. Install the necessary Python Libraries
Run the following command from your terminal.
Jun 30 • 4 tweets • 2 min read
Run Llama-3 on someone else's computer using world's largest peer-to-peer network for AI agents (100% free)
Here's how you can do it in 4 simple steps:
Step 1: Go to
Step 2: Simply install the client app on your laptop
Step 3: Open the app on your laptop
Step 4: Install "Llama-3" from AI models or use the model running on someone else's machine. aios.network
Jun 16 • 8 tweets • 2 min read
68 Prompt Engineering techniques for every Generative AI usecase (explained with examples):
1. Basic Text Prompting Techniques
Jun 14 • 7 tweets • 2 min read
AI code assistant in VS code using Llama-3 running locally on your computer (100% free and without internet):
1. Install Ollama for your Desktop
• Download & Install the @ollama desktop app
• Run the following command to download llama-3 instruct model