AYX / KNOWLEDGE BASE
Algorithms, language models and AI agents.
Source research checked: 2026-10-14
19
AI, algorithms and machine learning
What is artificial intelligence, in practical terms?
Artificial intelligence is a broad field concerned with systems that perform tasks such as recognising patterns, making predictions or producing language. It is not one product or a single algorithm. Some systems use explicit rules, others learn from data, and many applications combine the two.
Explanation, examples & sources
What is an algorithm, and is every algorithm AI?
An algorithm is a defined procedure for solving a problem or carrying out a task. Sorting a list, calculating a price and following a control sequence all use algorithms; none automatically makes a system AI. AI systems also rely on algorithms, including procedures for training models and using their predictions.
Explanation, examples & sources
How do machine learning, deep learning and neural networks differ?
Machine learning develops models whose behaviour is fitted from data. Neural networks are one family of such models, built from connected computational layers. Deep learning generally uses neural networks with multiple layers. These terms overlap, but machine learning also includes methods that are not neural networks.
Explanation, examples & sources
What is the difference between training and inference?
Training adjusts a model using data and an objective. Inference uses the resulting model to produce an output from new inputs. A deployed model does not necessarily keep learning from every interaction; additional learning, memory storage and retrieval are separate mechanisms that depend on the application.
Explanation, examples & sources
How do I know whether an AI model is good enough for my task?
Test it on representative examples that were not used to tune it, using metrics that reflect the consequences of mistakes. Overall accuracy alone can hide serious failures, especially when important events are rare. Include a baseline and define what the system should do when it cannot make a reliable decision.
Explanation, examples & sources
20
Language models and applications
What is an LLM, and how is it different from a chatbot?
A large language model, or LLM, is a learned model that processes and generates language-related representations and outputs. A chatbot is an application that may use an LLM together with search, memory, tools, permissions and an interface. The same model can behave differently inside different products or workflows.
Explanation, examples & sources
Why can an LLM give a confident but incorrect answer?
Fluent language and correct formatting are not proof that an answer is true. A model can produce unsupported details, misread evidence or apply the wrong rule. Retrieval and structured outputs can reduce particular failure modes, but neither turns generated content into automatically verified knowledge.
Explanation, examples & sources
What are tokens and context windows?
Tokens are the units a model uses to represent input and output; they may be words, parts of words or other encoded elements. The context window limits the material processed together in a request. A larger window allows more material, but does not guarantee that every detail will be used correctly.
Explanation, examples & sources
When should I use RAG, fine-tuning or ordinary rules?
Retrieval-augmented generation, or RAG, supplies relevant external material during inference. Fine-tuning adjusts model behaviour using training examples. Ordinary rules enforce explicit conditions in code. Use retrieval for accessible changing knowledge, training for demonstrated behavioural gaps, and rules for requirements that should not depend on a probabilistic guess.
Explanation, examples & sources
Should I run a language model locally or use a cloud service?
Choose based on data handling, quality, latency, availability, operational effort and total cost. Local execution can reduce dependence on an external inference service, but requires compatible hardware and maintenance. Cloud services can simplify operation, while introducing provider, network, contractual and data-governance dependencies.
Explanation, examples & sources
Does open-weight mean open-source, free and unrestricted?
No. Open-weight means model parameters are available under specified terms; it does not by itself establish access to training data, full development code or unrestricted use. Different models, runtimes and datasets have different licences. Downloadability, zero price and permission for a commercial deployment are separate questions.
Explanation, examples & sources
30
AI agents, coding tools and software workflows
What is the difference between an AI assistant, an agent and a workflow?
An assistant is the user-facing role; a workflow follows a defined sequence; an agent can use a model to choose steps or tools within an assigned objective. These can overlap in one product. Calling something an agent does not establish how independently, reliably or safely it operates.
Explanation, examples & sources
What should a useful prompt for a coding agent contain?
Give the agent a specific outcome, verified context, boundaries and a way to prove completion. Include relevant files or interfaces, the intended design, tests, acceptance criteria and what must not change. A narrow, evidence-based assignment is easier to review than an instruction to improve an entire application without constraints.
Explanation, examples & sources
How should I limit an AI agent's access to files, accounts and tools?
Give the agent only the access needed for the task, and separate reading information from taking consequential actions. Retrieved pages, documents and tool outputs can contain untrusted instructions. Treat them as data rather than as authority to change the task, expose secrets or grant additional permissions.
Explanation, examples & sources
How can I reduce AI coding costs without weakening review and testing?
Reduce avoidable work rather than removing essential checks. Keep tasks small, reuse verified findings, supply relevant context and ask for focused changes. Token usage, tool execution, retries and review effort can all contribute to cost, so a cheaper model or shorter initial prompt is not automatically the cheapest completed task.
Explanation, examples & sources
Can an AI code review replace tests or a human reviewer?
No. An AI review can identify issues or propose checks, but a plausible explanation is not execution evidence. Tests, static checks, security review and human judgement address different failure modes. The appropriate release gate depends on the change and the consequences of getting it wrong.