Author: marjavamitjava

How does attention changes context and embeddings

🟦 1. What is a word embedding? Let’s say a model reads this sentence: “The cat sat on the mat.“ Each word like “cat”, “mat”, “sat” is turned into a vector — imagine this...

How LLMs Work: A Deep Dive into Text Prediction

Large Language Models (LLMs) like OpenAI’s GPT, Google’s Gemini, or Meta’s LLaMA have become incredibly powerful at understanding and generating human-like text. But how do they actually work under the hood? What happens when...

How to Build an MCP Client Using the Java SDK

The Model Context Protocol (MCP) allows language models to interface with tools and external systems in a structured, programmable way. If you’re building intelligent apps or agents that need dynamic tool invocation, MCP gives...

Compressing Vector DB data

Question: If a system has 100 million user-product interactions, and if each order is mapped toa vector of 768 dimensions, how much space will the system require to store all vectors?Answer: 100 million interactions...

Transformer layer in NLP – Layman’s terms

🔷 What are Transformer Layers? Each layer in a Transformer is like a stage in a mental process — every stage helps a token (word) understand more about its meaning in the sentence. A...

Vector data simplified

Vector embeddings convert real-world content, like documents and images, into 1-D numericalrepresentations (arrays).These arrays have N values, representing N dimensions. They are called vectors and can becompared with each other efficiently.These vectors aren’t random...

Unlocking the Power of Local LLMs with Ollama

In the rapidly evolving world of AI and large language models (LLMs), most people associate cutting-edge capabilities with cloud-based giants like OpenAI, Anthropic, and Google. However, a new tool called Ollama is shifting this...

Understanding MCP Client-Server Communication in ColdFusion

In a modern AI-assisted development environment, the Model Context Protocol (MCP) facilitates interaction between tools like Cursor VSCode and a backend server written in ColdFusion. Let’s walk through how an MCP client initializes communication,...