<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The AI Algorithms Compendium Archives - ChoralSoft</title>
	<atom:link href="https://choralsoft.com/category/ai-algorithms-compendium/feed/" rel="self" type="application/rss+xml" />
	<link>https://choralsoft.com/category/ai-algorithms-compendium/</link>
	<description>Privacy-conscious apps, books and audiobooks</description>
	<lastBuildDate>Wed, 21 Oct 2026 15:44:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>
<site xmlns="com-wordpress:feed-additions:1">214551553</site>	<item>
		<title>RAG Is a Pipeline, Not a Single Algorithm</title>
		<link>https://choralsoft.com/2026/10/21/rag-is-a-pipeline-not-a-single-algorithm/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:42:41 +0000</pubDate>
				<category><![CDATA[The AI Algorithms Compendium]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11032</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Retrieval-augmented generation connects a language model to an external collection. Its quality depends on [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/rag-is-a-pipeline-not-a-single-algorithm/">RAG Is a Pipeline, Not a Single Algorithm</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Retrieval-augmented generation connects a language model to an external collection. Its quality depends on a sequence of design choices, any one of which can become the bottleneck.</strong></p>
<h2>Indexing and retrieval</h2>
<p>Documents are cleaned, divided into useful chunks, represented for search, and stored with metadata. At query time, lexical, vector, or hybrid retrieval produces candidates. Chunk size, overlap, filters, and embedding choice all affect recall.</p>
<h2>Ranking and generation</h2>
<p>A reranker can reorder candidates before the prompt is assembled. The generator should distinguish supplied evidence from its own prior patterns and cite the supporting passages when the application requires traceability.</p>
<h2>Evaluate each stage</h2>
<p>End-to-end answer quality alone does not show where failure occurred. Measure retrieval recall, ranking quality, groundedness, citation accuracy, latency, and cost separately. Also test adversarial documents, stale sources, access controls, and queries with no supported answer.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/the-ai-algorithms-compendium/"><em>The AI Algorithms Compendium</em></a>.</p>
<hr>
<p><small>Adapted from <em>The AI Algorithms Compendium</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/rag-is-a-pipeline-not-a-single-algorithm/">RAG Is a Pipeline, Not a Single Algorithm</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11032</post-id>	</item>
		<item>
		<title>Q-Learning and Policy Gradients Solve Different Problems</title>
		<link>https://choralsoft.com/2026/10/21/q-learning-and-policy-gradients-solve-different-problems/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:42:31 +0000</pubDate>
				<category><![CDATA[The AI Algorithms Compendium]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11030</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Q-learning estimates the value of actions; policy-gradient methods adjust a policy directly. Both optimize [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/q-learning-and-policy-gradients-solve-different-problems/">Q-Learning and Policy Gradients Solve Different Problems</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Q-learning estimates the value of actions; policy-gradient methods adjust a policy directly. Both optimize long-term reward, but they learn different objects and behave differently in practice.</strong></p>
<h2>Q-learning</h2>
<p>A Q-function predicts expected return for taking an action in a state and then following a policy. The classic update moves an estimate toward immediate reward plus the discounted best next-state value. It is naturally off-policy and works especially well with manageable discrete actions.</p>
<h2>Policy gradients</h2>
<p>A parameterized policy outputs action probabilities or continuous-action parameters. The gradient increases the probability of actions associated with higher return. This handles continuous control naturally but often has high-variance updates, so baselines and actor-critic methods are common.</p>
<h2>Choose from the environment</h2>
<p>Consider action space, sample cost, stability, and whether data comes from the current policy. Reinforcement-learning results are sensitive to reward design and evaluation protocol. Compare multiple seeds and report uncertainty rather than relying on one favorable run.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/the-ai-algorithms-compendium/"><em>The AI Algorithms Compendium</em></a>.</p>
<hr>
<p><small>Adapted from <em>The AI Algorithms Compendium</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/q-learning-and-policy-gradients-solve-different-problems/">Q-Learning and Policy Gradients Solve Different Problems</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11030</post-id>	</item>
		<item>
		<title>Why Attention Replaced Recurrence in Many Sequence Models</title>
		<link>https://choralsoft.com/2026/10/21/why-attention-replaced-recurrence-in-many-sequence-models/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:42:21 +0000</pubDate>
				<category><![CDATA[The AI Algorithms Compendium]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11028</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Recurrent networks process sequence positions through a chain of hidden states. Attention creates direct, [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/why-attention-replaced-recurrence-in-many-sequence-models/">Why Attention Replaced Recurrence in Many Sequence Models</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Recurrent networks process sequence positions through a chain of hidden states. Attention creates direct, content-dependent connections between positions, changing both the learning path and the computational trade-offs.</strong></p>
<h2>Shorter information paths</h2>
<p>In a recurrent model, information from an early token passes through many sequential updates before reaching a distant token. Self-attention can connect those positions in one layer, which helps models learn long-range dependencies.</p>
<h2>Parallel training</h2>
<p>Tokens in a transformer layer can be processed together once their representations are available. This maps well to modern accelerators. Standard full attention, however, compares every position with every other position and therefore becomes expensive for long contexts.</p>
<h2>Architecture is a trade-off</h2>
<p>Recurrence remains useful for streaming and bounded-memory settings. Attention is not automatically better for every sequence. The task, context length, latency target, hardware, and data regime determine whether full attention, sparse attention, recurrence, or a hybrid is appropriate.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/the-ai-algorithms-compendium/"><em>The AI Algorithms Compendium</em></a>.</p>
<hr>
<p><small>Adapted from <em>The AI Algorithms Compendium</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/why-attention-replaced-recurrence-in-many-sequence-models/">Why Attention Replaced Recurrence in Many Sequence Models</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11028</post-id>	</item>
		<item>
		<title>Bias and Variance: Diagnosing Model Error</title>
		<link>https://choralsoft.com/2026/10/21/bias-and-variance-diagnosing-model-error/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:42:11 +0000</pubDate>
				<category><![CDATA[The AI Algorithms Compendium]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11026</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Bias and variance describe two different ways a learned model can fail. They are [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/bias-and-variance-diagnosing-model-error/">Bias and Variance: Diagnosing Model Error</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Bias and variance describe two different ways a learned model can fail. They are most useful as diagnostic concepts rather than slogans about model complexity.</strong></p>
<h2>High bias</h2>
<p>A high-bias model cannot capture important structure. Training and validation errors are both poor and often close together. Useful responses include richer features, a more expressive model, or less restrictive regularization.</p>
<h2>High variance</h2>
<p>A high-variance model fits the training set well but performs much worse on unseen data. More representative data, stronger regularization, augmentation, ensembling, or a simpler hypothesis class may improve generalization.</p>
<h2>Use learning curves</h2>
<p>Compare training and validation performance as data volume grows. Curves reveal whether collecting more data is likely to help and whether the evaluation split resembles deployment. Always examine subgroup performance and distribution shift; one average error can hide important failures.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/the-ai-algorithms-compendium/"><em>The AI Algorithms Compendium</em></a>.</p>
<hr>
<p><small>Adapted from <em>The AI Algorithms Compendium</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/bias-and-variance-diagnosing-model-error/">Bias and Variance: Diagnosing Model Error</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11026</post-id>	</item>
		<item>
		<title>Bayesian Updating: From Prior Belief to Posterior Evidence</title>
		<link>https://choralsoft.com/2026/10/21/bayesian-updating-from-prior-belief-to-posterior-evidence/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:41:55 +0000</pubDate>
				<category><![CDATA[The AI Algorithms Compendium]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11024</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles Bayesian inference is a disciplined way to revise uncertainty. It combines what was believed [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/bayesian-updating-from-prior-belief-to-posterior-evidence/">Bayesian Updating: From Prior Belief to Posterior Evidence</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>Bayesian inference is a disciplined way to revise uncertainty. It combines what was believed before observing data with how likely that data is under competing explanations.</strong></p>
<h2>The three ingredients</h2>
<p>The prior represents belief before the new observation. The likelihood scores how compatible the observation is with each hypothesis. The posterior is the updated belief after multiplying prior and likelihood and normalizing across alternatives.</p>
<h2>A diagnostic-test example</h2>
<p>A highly accurate test can still produce a modest probability of disease when the disease is rare. The base rate belongs in the prior; sensitivity and false-positive rate belong in the likelihood. Ignoring the prior is the source of many intuitive mistakes.</p>
<h2>Modeling choices matter</h2>
<p>Bayesian arithmetic is exact only relative to the stated model. Poor priors, dependent observations treated as independent, or an incomplete set of hypotheses can mislead. Report assumptions and perform sensitivity checks instead of treating one posterior number as timeless truth.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/the-ai-algorithms-compendium/"><em>The AI Algorithms Compendium</em></a>.</p>
<hr>
<p><small>Adapted from <em>The AI Algorithms Compendium</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/bayesian-updating-from-prior-belief-to-posterior-evidence/">Bayesian Updating: From Prior Belief to Posterior Evidence</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11024</post-id>	</item>
		<item>
		<title>BFS, Uniform-Cost Search, and A*: What Changes?</title>
		<link>https://choralsoft.com/2026/10/21/bfs-uniform-cost-search-and-a-what-changes/</link>
		
		<dc:creator><![CDATA[alavingi]]></dc:creator>
		<pubDate>Wed, 21 Oct 2026 15:41:42 +0000</pubDate>
				<category><![CDATA[The AI Algorithms Compendium]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://choralsoft.com/?p=11022</guid>

					<description><![CDATA[<p>← Back to Blog &#38; Articles BFS, uniform-cost search, and A* can look nearly identical in code. Their difference is [&#8230;]</p>
<p>The post <a href="https://choralsoft.com/2026/10/21/bfs-uniform-cost-search-and-a-what-changes/">BFS, Uniform-Cost Search, and A*: What Changes?</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="/blog-articles/">← Back to Blog &amp; Articles</a></p>
<p><strong>BFS, uniform-cost search, and A* can look nearly identical in code. Their difference is the priority assigned to the next frontier state.</strong></p>
<h2>Breadth-first search</h2>
<p>BFS expands the shallowest state first. It is optimal when every action has the same cost because depth then equals path cost. A simple queue is sufficient.</p>
<h2>Uniform-cost search</h2>
<p>When action costs differ, prioritize the lowest accumulated cost g(n). A priority queue replaces the ordinary queue, and a state may need to be reconsidered if a cheaper route is discovered. With nonnegative costs, the first finalized goal has minimum cost.</p>
<h2>A* search</h2>
<p>A* prioritizes g(n)+h(n), combining cost so far with an estimate of remaining cost. An admissible heuristic never overestimates; a consistent heuristic also respects a triangle-like condition across each edge. Better heuristics can reduce expansions without changing the optimal result.</p>
<h2>Continue with the book</h2>
<p>Explore the full treatment, worked examples, and exercises in <a href="https://choralsoft.com/books/the-ai-algorithms-compendium/"><em>The AI Algorithms Compendium</em></a>.</p>
<hr>
<p><small>Adapted from <em>The AI Algorithms Compendium</em>, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.</small></p>
<p>The post <a href="https://choralsoft.com/2026/10/21/bfs-uniform-cost-search-and-a-what-changes/">BFS, Uniform-Cost Search, and A*: What Changes?</a> appeared first on <a href="https://choralsoft.com">ChoralSoft</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11022</post-id>	</item>
	</channel>
</rss>
