Posts

Showing posts from May, 2025

Prompt Engineering - 01

Image
  Before Digging in to what prompt engineering is make sure you have some idea about below terms. Generative AI : Unlike traditional AI, generative AI can create new content in response to natural language input (Human language), making it highly versatile and powerful. Large Language Models (LLMs) : These models, like GPT-4 and Ollama, Deepseek, are trained on vast amounts of text and can engage in realistic conversations and reasoning. AI Applications : Generative AI includes various applications such as text-to-image (e.g., DALL-E 2), text-to-music, and even action transformers that can perform tasks like browsing the internet. Technological Foundations : The transformer architecture, attention mechanism, and reinforcement learning with human feedback(RLHF) are crucial components of these models. These are the key concepts behind gen-AI applications. the mechanism like transformer architecture, attention mechanism and RLHF , if we talk about those in detail it will be highly tec...

Run AI models in your local machine

Image
Can I run some lightweight AI models on my local machine. How can you do it? Ollama comes to your rescue. Navigate to https://ollama.com/ Download based on your OS and install it. Nothing fancy. Once you've installed it, you can use your terminal to verify the installation. Run: ollama -v Now we are all set to run an AI model on your local machine. Choose any AI model from the list below based on your preference: https://ollama.com/search Consider the size of the AI model because getting a large one might slow down your PC drastically. Let's choose Gemma3, for example: https://ollama.com/library/gemma3 I chose a very basic one with the smallest size: https://ollama.com/library/gemma3:1b So now, to run the Gemma3 AI model in Ollama: Run: ollama run gemma3:1b in your terminal. It's downloading... 💪 once it is downloaded it will start the AI model,  Ask something and see how it replies. That's it for today.. Let's see how we can use Spring AI in the n...