Categories

Jacar categories — explore the topics A rocket whose eyes follow your cursor.
Architecture

Vector Databases: Qdrant, Pinecone, and Weaviate

Vector databases have gone from an experimental curiosity to the central component of most LLM-based products. This comparison covers Qdrant, Pinecone, and Weaviate: architecture, strengths, limitations, and a decision tree for choosing the right option based on your operational priorities and budget.

Artificial Intelligence

LangChain: The Framework for Orchestrating LLM Applications

LangChain is a Python framework that unifies building LLM applications: prompt templates, retrievers over vector databases, function-calling agents, and conversational memory. It earns its keep in fast prototypes and multi-model systems, but for a single well-defined production use case, direct code usually stays more maintainable.

Architecture

Chroma: A Lightweight Vector Database for Embedding Prototypes

Chroma is the easiest vector database to get started with embeddings and semantic search: install it with pip install chromadb, no extra infrastructure required, and it exposes a minimal API (add, query, delete). It suits prototypes and mid-sized RAG systems well; past a few million vectors, Qdrant or Milvus scale better.

Artificial Intelligence

Midjourney v5: Photorealistic Quality at Prompt’s Reach

Midjourney v5, released in March 2023, delivers consistent photorealism in skin, light, and depth of field, something v4 could not manage. The --style raw parameter disables the default artistic look, ideal for product photography. It still lacks an official API and only runs through Discord, so Stable Diffusion XL and DALL-E 3 remain more practical for automating pipelines.

Artificial Intelligence

Generative AI and Regulation: First Legislative Steps

In 2023, three frameworks address generative AI regulation differently: the EU AI Act sets four risk tiers with fines up to 6% of global turnover; the US NIST framework is voluntary; the UK delegates to sector regulators. Product teams should inventory AI use cases and document risks now.

Artificial Intelligence

How to Install Ollama to Run LLMs on Your Computer

Ollama makes it trivial to run models like Llama 2 or Mistral on your own computer: one binary, one command, and quantised weights downloading to disk with no compilation required. Covers installation on macOS, Linux, and Windows with an honest look at what local inference can and cannot do compared to frontier models.

Artificial Intelligence

Predictive Maintenance with Classic Machine Learning

Industrial predictive maintenance rarely needs deep learning: classic models such as random forests, SVMs, or survival models solve 80% of cases. The key lies in feature engineering over vibration, temperature, and power-consumption signals, with pipelines that run on as little as 50 MB of RAM without a GPU.

Artificial Intelligence

Vector Database Comparison: Qdrant, Pinecone, and Weaviate

Qdrant is the pick when full control and performance in self-hosted setups matter most; Pinecone wins for fully managed SaaS with zero operations; Weaviate stands out when native embeddings and hybrid search built into one pipeline add real value. This comparison covers architecture, quantisation, filtering, and RAG use cases to help you decide based on budget and control needs.

Artificial Intelligence

The Hyperbolic Tangent: A Powerful Activation Function

The hyperbolic tangent (tanh) is an activation function that maps any real value to the interval (-1, 1) with zero-centred output, which makes it more stable than sigmoid in hidden layers. It is the standard in LSTM and GRU memory cells, though it shares with sigmoid the vanishing-gradient problem at extreme inputs.

Artificial Intelligence

The Sigmoid Function: A Key Tool in Neural Networks

The sigmoid function compresses any real value into the range (0, 1), making it the natural activation function for modelling probabilities in neural networks. It is differentiable everywhere, enabling training via backpropagation, though it suffers from saturation and vanishing gradients in deep layers, where ReLU and tanh have taken over.

Artificial Intelligence

Softmax Function: Activation for Classification

The Softmax function converts a vector of logits (arbitrary values) into a probability distribution where every value is positive and the values sum to exactly 1. It is the standard output-layer activation for multi-class classification, and the final operation language models use to predict the next token.

Artificial Intelligence

Linear Function: A Common Activation Function

The linear function, f(x) = ax + b, is the simplest activation a neural network can use: its output is directly proportional to the input, with no non-linear transformation. It is the standard choice for the output layer in regression problems, but in hidden layers it collapses the entire network into a single linear model, so it should never be used there.

Artificial Intelligence

Mathematical Formulation of Artificial Neural Network Input

In a neural network, the input is represented as a column vector x in R^n that the hidden layer transforms through a weight matrix W, a bias vector b, and a non-linear activation function such as ReLU, sigmoid, or tanh. Training adjusts W and b by minimising the loss function via gradient descent and backpropagation.

Artificial Intelligence

Multilayer Neural Networks: Advancing Artificial Intelligence

A multilayer neural network consists of an input layer, one or more hidden layers, and an output layer, where each neuron weights its inputs and applies a non-linear activation function before passing the result to the next layer. Through forward propagation and backpropagation, the network adjusts millions of weights to learn hierarchical representations capable of classifying images, translating text, or generating language.

Artificial Intelligence

DataFrames and Pipelines in Spark: Data Processing Optimisation

Spark DataFrames are distributed, schema-based tables that the Catalyst engine optimises automatically, while pipelines chain those transformations into a reproducible end-to-end flow. Together they let you process large data volumes efficiently across a cluster, scaling from a laptop to hundreds of nodes without rewriting code.

Artificial Intelligence

ChatGPT 4: Advances in Chatbot Technology

ChatGPT 4 combines advanced natural language processing with deep learning to deliver conversations that are more natural, coherent, and personalised than earlier chatbots. It understands intent and accumulated context, handles multiple intents in a single turn, and reduces escalations to human agents, though it still requires careful design and human oversight.

Artificial Intelligence

Pre-trained Models and Transfer Learning

Transfer learning lets you reuse a model already trained on a massive dataset, such as ImageNet or a large text corpus, to solve a new task with far less proprietary data and compute time. It works through fine-tuning, feature extraction, or prompting, and it performs best when the source and target domains are similar to each other.

Artificial Intelligence

Explaining AI Through XAI

Explainable AI (XAI) is the set of techniques that open the black box of AI models and answer why they made a given decision. Methods such as LIME, SHAP and Grad-CAM activation maps are the most widely used. Its adoption is mandatory in regulated environments: healthcare, justice, and financial services.