Upgrade Webpack & Dependencies (Recommended Long-Term) 🔧 Problem: You’re hitting the classic OpenSSL incompatibility issue that started affecting many Webpack 4/5 projects when Node.js v17+ introduced changes to the OpenSSL crypto defaults. Node.js v17 and later uses OpenSSL 3.0, which by default disables legacy algorithms used in Webpack for hashing.Fix it by upgrading webpack Then […]
Once you have Docker installed, you can simply run Qdrant with an API key For testing, just make your own value without the API key you chose -> Qdrant Rust Client Create a “collection” and “upsert” some data Do a vector search Filter search Prepare a model to do embeddings with Qdrant (fastembed) *Each model […]
This tutorial demonstrates the powerful combination of Factory and Builder patterns in Rust. It’s useful to know, and also be able to recognize. Key Concepts Covered: Factory Pattern: The DatabaseType enum acts as a factory that knows how to create different database implementations. It encapsulates the creation logic and provides a clean interface for object […]
What’s the big deal, why not use Arc and Mutex ? Actors Are Not Rust-Specific – They’re a Universal Pattern!The Actor Model is Language-AgnosticThe Actor Model was actually invented in 1973 by Carl Hewitt – way before Rust existed! It’s a conceptual framework that can be implemented in any language. The WebSocket Challenge Imagine you’re […]
The singleton pattern gives you the benefits of global access while maintaining control over how that global state is created, accessed, and modified. It’s essentially “global variables done right” for cases where you genuinely need global state. To demo this, we’ll code an example to connect to a database. This is just to make the […]
Revisiting A’ Level Maths – Calculus with the help of AI 🔢 What is Calculus? Calculus is the branch of mathematics that studies change. It has two big halves: 1. Differential Calculus 2. Integral Calculus Bonus: They’re Connected! They’re two sides of the same coin — and the Fundamental Theorem of Calculus links them.It basically […]
Rather than use Rig.rs or Ollama-rs let’s consider the bare bones of the frameworks that we take for granted.. We make a POST reqwest to the Ollama API and send a body specifying the model and messages ( role & content ). Next – iterate over the stream and display the chunks until there are […]
MCP is completely agnostic to HTTP (and its versions). MCP doesn’t require HTTP at all. ✅ MCP Is Transport-Agnostic MCP is fundamentally about structured message passing, not the transport. It can work over: 🧠 Why MCP Skips HTTP HTTP comes with baggage MCP doesn’t need, like: HTTP Concern Needed in MCP? Why Not? Verb (GET/POST/PUT/…) […]