<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mehmet akar</title>
    <description>The latest articles on DEV Community by mehmet akar (@mehmetakar).</description>
    <link>https://dev.to/mehmetakar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2732806%2Ffbd48fb0-0a5d-4505-a802-4fdad6574509.jpg</url>
      <title>DEV Community: mehmet akar</title>
      <link>https://dev.to/mehmetakar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mehmetakar"/>
    <language>en</language>
    <item>
      <title>How to Run LLMs Locally on a Mac in 2027 (Even with 8GB or 16GB)</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Sat, 21 Nov 2026 22:13:13 +0000</pubDate>
      <link>https://dev.to/mehmetakar/how-to-run-llms-locally-on-a-mac-in-2027-even-with-8gb-or-16gb-116n</link>
      <guid>https://dev.to/mehmetakar/how-to-run-llms-locally-on-a-mac-in-2027-even-with-8gb-or-16gb-116n</guid>
      <description>&lt;p&gt;&lt;em&gt;Last updated: November 2026. Prices, versions and benchmarks below are as of that date.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Run LLMs Locally on a Mac?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; You can run an LLM locally on any Apple Silicon Mac. With 8GB of RAM, use a ~4B model like Qwen3.5 4B. With 16GB, Gemma 4 E4B (QAT) or Qwen3.5 9B run at roughly 12–20 tokens/sec on an M2 Air. With 24GB, Mixture-of-Experts models in the 26–35B range fit, and a base M4 Mac mini can generate around 40 tokens/sec with them. Generation speed is limited mostly by memory bandwidth, not by chip generation. The easiest tools are LM Studio and Ollama; the fastest on Apple Silicon is usually Apple's MLX.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;I haven't written here in almost a year. The last thing I want to do coming back is pretend nothing changed, so let me start with the post most of you found me through.&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Back in early 2025 I wrote about how to run an LLM locally on a Mac. It's still the most-read thing on this blog. It also aged badly. The Exo install command I gave you doesn't exist anymore, the models I recommended are two generations old, and the whole "you need an M4 Max" angle turned out to be the wrong question.&lt;/p&gt;

&lt;p&gt;So this is the rewrite, and it's narrower on purpose: if you want to run LLMs locally on a Mac today, &lt;strong&gt;what's the least Mac you can get away with, what exactly runs on it, and how fast?&lt;/strong&gt; At the end I'll look at 2027, and I'll try hard to keep what's announced, what's rumored and what's just me guessing in separate boxes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is memory bandwidth the number that matters?
&lt;/h2&gt;

&lt;p&gt;Before tools and models, one idea that will save you money.&lt;/p&gt;

&lt;p&gt;When a local model writes text, every new token requires reading the model's active weights from memory. So generation speed is capped by roughly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;max tokens/sec ≈ memory bandwidth (GB/s) ÷ active weights read per token (GB)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's why chip generation matters less than you'd think, and why RAM size and bandwidth matter more. Some reference points:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mac&lt;/th&gt;
&lt;th&gt;Unified memory bandwidth&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MacBook Neo (A18 Pro, 8GB)&lt;/td&gt;
&lt;td&gt;60 GB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M1&lt;/td&gt;
&lt;td&gt;~68 GB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M2 / M3&lt;/td&gt;
&lt;td&gt;100 GB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M4&lt;/td&gt;
&lt;td&gt;120 GB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M5&lt;/td&gt;
&lt;td&gt;153 GB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M6 (24GB and 32GB configs)&lt;/td&gt;
&lt;td&gt;170 GB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M1 Pro&lt;/td&gt;
&lt;td&gt;200 GB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: Apple's M5/MLX post for M4 and M5 (&lt;a href="https://machinelearning.apple.com/research/exploring-llms-mlx-m5" rel="noopener noreferrer"&gt;Apple ML Research&lt;/a&gt;), MacRumors for M6 (&lt;a href="https://www.macrumors.com/2026/10/27/14-inch-macbook-pro-with-m6-chip/" rel="noopener noreferrer"&gt;link&lt;/a&gt;), &lt;a href="https://llmrun.dev/device/macbook-neo-8gb" rel="noopener noreferrer"&gt;llmrun.dev&lt;/a&gt; for the Neo.&lt;/p&gt;

&lt;p&gt;Look at the last row. A used 2021 M1 Pro has more bandwidth than a brand-new M5 MacBook Air. Samuel Wong made exactly this point in a &lt;a href="https://x.com/samuel_wong_/status/2116037131823096229" rel="noopener noreferrer"&gt;thread on X&lt;/a&gt;: "A 2021 M1 Pro writes answers faster than a new M5 Air." If you're buying a Mac for local AI on a budget, a used Pro/Max chip with more RAM often beats a new base chip.&lt;/p&gt;

&lt;p&gt;Quick worked example: a 4-bit 8B dense model is about 5GB. On an M4 (120 GB/s) that's a ceiling of ~24 tok/s, and real numbers land below the ceiling. Now take a &lt;strong&gt;Mixture-of-Experts&lt;/strong&gt; model like Qwen3-30B-A3B: 30B total parameters, but only ~3B are active per token. At 4-bit that's under 2GB read per token, so the same chip can generate several times faster, &lt;em&gt;as long as the whole model fits in RAM&lt;/em&gt;. That's the single biggest shift since my 2025 post, and it's why MoE shows up everywhere below.&lt;/p&gt;

&lt;h3&gt;
  
  
  What speed to expect on your Mac
&lt;/h3&gt;

&lt;p&gt;I put the formula to work. The table below is my estimate of generation speed (4-bit, short context) for each chip, calibrated against the real measurements quoted later in this post: an M2 Air doing 12–18 tok/s on Qwen3.5 9B and ~20 tok/s on Gemma 4 E4B, and a base M4 Mac mini doing 44 tok/s on a 35B MoE. In practice people land at about 60–70% of the theoretical ceiling, so that's what I used. Expect ±20% depending on tool, context length and what else is running.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Chip (bandwidth)&lt;/th&gt;
&lt;th&gt;Qwen3.5 4B&lt;/th&gt;
&lt;th&gt;Gemma 4 E4B&lt;/th&gt;
&lt;th&gt;Qwen3.5 9B&lt;/th&gt;
&lt;th&gt;Gemma 4 12B&lt;/th&gt;
&lt;th&gt;Gemma 4 26B-A4B&lt;/th&gt;
&lt;th&gt;Qwen3-30B-A3B&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MacBook Neo (60 GB/s)&lt;/td&gt;
&lt;td&gt;~13–16&lt;/td&gt;
&lt;td&gt;won't fit well&lt;/td&gt;
&lt;td&gt;won't fit&lt;/td&gt;
&lt;td&gt;won't fit&lt;/td&gt;
&lt;td&gt;won't fit&lt;/td&gt;
&lt;td&gt;won't fit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M1 (68 GB/s)&lt;/td&gt;
&lt;td&gt;~15–18&lt;/td&gt;
&lt;td&gt;~11–14&lt;/td&gt;
&lt;td&gt;~7–9&lt;/td&gt;
&lt;td&gt;~5–7 (16GB)&lt;/td&gt;
&lt;td&gt;needs 24GB+&lt;/td&gt;
&lt;td&gt;needs 24GB+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M2 / M3 (100 GB/s)&lt;/td&gt;
&lt;td&gt;~22–27&lt;/td&gt;
&lt;td&gt;~17–21&lt;/td&gt;
&lt;td&gt;~11–14&lt;/td&gt;
&lt;td&gt;~8–10&lt;/td&gt;
&lt;td&gt;~20–23 (24GB)&lt;/td&gt;
&lt;td&gt;~30–35 (24GB)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M4 (120 GB/s)&lt;/td&gt;
&lt;td&gt;~27–32&lt;/td&gt;
&lt;td&gt;~21–25&lt;/td&gt;
&lt;td&gt;~13–16&lt;/td&gt;
&lt;td&gt;~10–12&lt;/td&gt;
&lt;td&gt;~24–28&lt;/td&gt;
&lt;td&gt;~36–44&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M5 (153 GB/s)&lt;/td&gt;
&lt;td&gt;~35–40&lt;/td&gt;
&lt;td&gt;~27–31&lt;/td&gt;
&lt;td&gt;~17–19&lt;/td&gt;
&lt;td&gt;~13–15&lt;/td&gt;
&lt;td&gt;~30–35&lt;/td&gt;
&lt;td&gt;~45–50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M6 (170 GB/s)&lt;/td&gt;
&lt;td&gt;~38–44&lt;/td&gt;
&lt;td&gt;~30–34&lt;/td&gt;
&lt;td&gt;~19–21&lt;/td&gt;
&lt;td&gt;~14–16&lt;/td&gt;
&lt;td&gt;~33–38&lt;/td&gt;
&lt;td&gt;~50–56&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M1 Pro (200 GB/s)&lt;/td&gt;
&lt;td&gt;~45–52&lt;/td&gt;
&lt;td&gt;~35–40&lt;/td&gt;
&lt;td&gt;~22–25&lt;/td&gt;
&lt;td&gt;~17–19&lt;/td&gt;
&lt;td&gt;~38–45 (32GB)&lt;/td&gt;
&lt;td&gt;~60–65 (32GB)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are estimates, not benchmarks. If your numbers differ a lot, tell me in the comments and I'll update the table.&lt;/p&gt;

&lt;h2&gt;
  
  
  How much RAM do you need to run an LLM locally on a Mac?
&lt;/h2&gt;

&lt;p&gt;macOS itself needs around 3.5–4GB. Your browser and editor want more. So "fits" means the model file &lt;strong&gt;plus&lt;/strong&gt; its KV cache (grows with context length) &lt;strong&gt;plus&lt;/strong&gt; your apps.&lt;/p&gt;

&lt;p&gt;Model sizes below are from the Ollama library pages for &lt;a href="https://ollama.com/library/gemma4/tags" rel="noopener noreferrer"&gt;gemma4&lt;/a&gt; and &lt;a href="https://ollama.com/library/qwen3.5" rel="noopener noreferrer"&gt;qwen3.5&lt;/a&gt;, checked Nov 2026.&lt;/p&gt;

&lt;h3&gt;
  
  
  8GB (MacBook Neo, older 8GB Airs)
&lt;/h3&gt;

&lt;p&gt;Realistic picks: &lt;strong&gt;Qwen3.5 4B&lt;/strong&gt; (3.3–4.0GB), &lt;strong&gt;Qwen3.5 2B&lt;/strong&gt; (2.7–3.1GB), &lt;strong&gt;Gemma 4 E2B QAT&lt;/strong&gt; (4.3GB).&lt;/p&gt;

&lt;p&gt;Someone who went through this on an 8GB M1 Air summed it up well (&lt;a href="https://x.com/0xMapper_/status/2123057221332259026" rel="noopener noreferrer"&gt;@0xMapper_ on X&lt;/a&gt;): stay under about 4B parameters, use MLX 4-bit builds, and skip the default model LM Studio suggests, because it's "too heavy for 8GB". In their words, 7–9B models load "but your mac starts swapping". They ended up on Qwen 3.5 4B, "free, offline, surprisingly decent".&lt;/p&gt;

&lt;p&gt;The MacBook Neo is the interesting case because it's Apple's cheapest Mac (launched at $599, now $699) and has only 60 GB/s of bandwidth. I couldn't find anyone publishing &lt;em&gt;measured&lt;/em&gt; LLM numbers on it yet. llmrun.dev &lt;em&gt;estimates&lt;/em&gt; ~13 tok/s for Qwen3.5 4B and ~24 tok/s for Qwen3.5 2B, with a 9B model not fitting at all (&lt;a href="https://llmrun.dev/device/macbook-neo-8gb" rel="noopener noreferrer"&gt;source&lt;/a&gt;). Treat those as estimates.&lt;/p&gt;

&lt;p&gt;And keep expectations honest for agent workflows. Sebastian Aaltonen tried a Neo for remote agentic work and &lt;a href="https://x.com/SebAaltonen/status/2111855600921375010" rel="noopener noreferrer"&gt;wrote&lt;/a&gt; that it "ran out of RAM first day", with Codex, Xcode and Steam eating the memory: "8GB is not good enough for dev purposes. AI makes it even worse."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My take for 8GB:&lt;/strong&gt; fine for a private chat assistant, summarizing, rewriting, small extraction tasks. Not for coding agents.&lt;/p&gt;

&lt;h3&gt;
  
  
  16GB (most MacBook Airs, base Mac minis)
&lt;/h3&gt;

&lt;p&gt;This is where it gets genuinely useful. Realistic picks: &lt;strong&gt;Gemma 4 E4B QAT&lt;/strong&gt; (6.1GB), &lt;strong&gt;Qwen3.5 9B&lt;/strong&gt; (6.6–7.6GB), &lt;strong&gt;Gemma 4 12B QAT&lt;/strong&gt; (7.2GB) if you keep context short.&lt;/p&gt;

&lt;p&gt;The most useful real-world story I found is Paul's (&lt;a href="https://x.com/PaulGug" rel="noopener noreferrer"&gt;@PaulGug&lt;/a&gt;), who spent a week trying to run a local agent (Hermes) on a MacBook Air M2 with 16GB:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First attempt: Qwen 3.5 9B Q4 gave about &lt;strong&gt;12 tok/s with llama.cpp&lt;/strong&gt;, and switching to an MLX server got it to &lt;strong&gt;15–18 tok/s&lt;/strong&gt;. Still too slow for an agent: minutes between replies (&lt;a href="https://x.com/PaulGug/status/2062850106609827916" rel="noopener noreferrer"&gt;post&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;What fixed it was not a faster model but &lt;strong&gt;less context&lt;/strong&gt;. The stock agent started with ~30k tokens preloaded. He built a lean profile with only the tools he needed, capped context at 12k, and first turns dropped to ~3.5k tokens. With &lt;strong&gt;Gemma 4 E4B (QAT)&lt;/strong&gt; he got &lt;strong&gt;~20 tok/s&lt;/strong&gt; and replies in seconds (&lt;a href="https://x.com/PaulGug/status/2063961914930311278" rel="noopener noreferrer"&gt;post&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Gemma 4 12B "just fits in RAM, but it's too slow". Qwen 2B was "a bit 'too dumb'" for agent use. E4B was his acceptable minimum.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That second bullet is the most underrated lesson in local LLMs on small Macs. &lt;strong&gt;Prompt processing (prefill), not generation, is what kills you on long contexts&lt;/strong&gt;, and agents resend the whole conversation every turn. Cutting context from 30k to 12k did more than any model swap.&lt;/p&gt;

&lt;p&gt;One more tip from a 16GB Air owner: Redouane Karzazi, running a vision model on an M4 Air, &lt;a href="https://medium.com/codex/what-i-learned-running-a-vision-model-locally-on-a-16gb-macbook-air-c19c3a62df59" rel="noopener noreferrer"&gt;points out&lt;/a&gt; that Docker on a Mac runs inside a Linux VM with no access to the Metal GPU, so vLLM-in-Docker means CPU only. Go native (MLX, llama.cpp, Ollama, LM Studio).&lt;/p&gt;

&lt;h3&gt;
  
  
  24GB (M4/M5/M6 base with RAM upgrade, Mac mini)
&lt;/h3&gt;

&lt;p&gt;This is the sweet spot going into 2027, because 24GB is enough for &lt;strong&gt;MoE models in the 26–35B range&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Apple's own test: a 24GB MacBook Pro "can easily hold a 8B in BF16 precision or a 30B MoE 4-bit quantized" and stay under 18GB (&lt;a href="https://machinelearning.apple.com/research/exploring-llms-mlx-m5" rel="noopener noreferrer"&gt;Apple ML Research&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Realistic picks: &lt;strong&gt;Gemma 4 26B-A4B QAT&lt;/strong&gt; (16GB), &lt;strong&gt;Qwen3-30B-A3B 4-bit&lt;/strong&gt; (~17GB), and Ollama's newest addition, Thinking Machines' &lt;strong&gt;Inkling 2 Mini&lt;/strong&gt; (26B total, 5.4B active, ~20GB, Apple silicon only for now, per the &lt;a href="https://github.com/ollama/ollama/releases" rel="noopener noreferrer"&gt;Ollama v0.40.17 release notes&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Real-world: &lt;a href="https://x.com/hailports/status/2123043788377485824" rel="noopener noreferrer"&gt;@hailports&lt;/a&gt; runs a 35B MoE model on a &lt;strong&gt;base M4 Mac mini with 24GB&lt;/strong&gt;, serving seven agents, with a median decode of &lt;strong&gt;44 tok/s&lt;/strong&gt;: "the keys are mixture-of-experts and tight memory management." In the replies they share the setup: one llama.cpp slot (&lt;code&gt;-np 1&lt;/code&gt;), 16384 context, &lt;code&gt;q8_0&lt;/code&gt; KV cache, agents taking turns instead of seven parallel caches.&lt;/p&gt;

&lt;p&gt;That's a $799-class machine doing what needed a workstation two years ago.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which tool should you use: Ollama, LM Studio, MLX, llama.cpp or Exo?
&lt;/h2&gt;

&lt;p&gt;There's no single best tool. Here's how I'd choose in late 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;If you want...&lt;/th&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A GUI, browse and try models, zero terminal&lt;/td&gt;
&lt;td&gt;LM Studio&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A local API for apps/agents, simplest CLI&lt;/td&gt;
&lt;td&gt;Ollama&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maximum speed on Apple Silicon, Python&lt;/td&gt;
&lt;td&gt;mlx-lm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maximum control, GGUF, tight memory tuning&lt;/td&gt;
&lt;td&gt;llama.cpp&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Combining several Macs into one&lt;/td&gt;
&lt;td&gt;Exo (or LM Studio's distributed mode, coming)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Ollama (now on MLX)
&lt;/h3&gt;

&lt;p&gt;The big change this year: since v0.19 (March 2026) Ollama on Apple Silicon runs on Apple's MLX framework. Ollama's own benchmark on Qwen3.5-35B-A3B went from 58 to &lt;strong&gt;112 tok/s decode&lt;/strong&gt; and 1,154 to 1,810 tok/s prefill (&lt;a href="https://ollama.com/blog/mlx" rel="noopener noreferrer"&gt;Ollama blog&lt;/a&gt;). Alan West reproduced almost exactly that on an M4 Max 64GB: 57.8 → 111.4 tok/s (&lt;a href="https://dev.to/alanwest/ollama-just-got-93-faster-on-mac-heres-how-to-enable-it-3gce"&gt;dev.to&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Two caveats people miss:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The engine depends on the model format, not the app version.&lt;/strong&gt; MLX tags (e.g. &lt;code&gt;gemma4:e4b-mlx&lt;/code&gt;, &lt;code&gt;gemma4:12b-nvfp4&lt;/code&gt;) run on MLX; GGUF tags (&lt;code&gt;q4_K_M&lt;/code&gt;, &lt;code&gt;qat&lt;/code&gt;) still run on the llama.cpp engine. A model you pulled in 2025 does not get faster just because you updated (&lt;a href="https://levelup.gitconnected.com/ollama-mlx-nearly-doubles-llm-speed-on-your-mac-58-to-112-tok-s-and-your-old-models-get-none-of-fd1a9ec531fb" rel="noopener noreferrer"&gt;Level Up Coding&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On small Macs the MLX tags can be bigger.&lt;/strong&gt; Look at Gemma 4 E4B: the &lt;code&gt;e4b-it-qat&lt;/code&gt; GGUF is 6.1GB, the &lt;code&gt;e4b-mlx&lt;/code&gt; tag is 9.5GB. On a 16GB Air, the smaller QAT file can be the better choice even if MLX is faster per token. The original MLX preview asked for more than 32GB of unified memory.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# 8GB&lt;/span&gt;
ollama run qwen3.5:4b

&lt;span class="c"&gt;# 16GB&lt;/span&gt;
ollama run gemma4:e4b-it-qat
ollama run qwen3.5:9b

&lt;span class="c"&gt;# 24GB&lt;/span&gt;
ollama run gemma4:26b-a4b-it-qat

&lt;span class="c"&gt;# Hook a local model into a coding agent&lt;/span&gt;
ollama launch claude --model qwen3.5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;ollama run &amp;lt;model&amp;gt; --verbose&lt;/code&gt; prints the eval rate (tok/s) after each answer, which is how you should measure.&lt;/p&gt;

&lt;h3&gt;
  
  
  LM Studio
&lt;/h3&gt;

&lt;p&gt;Still the friendliest entry point. Two things worth knowing in 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It ships a CLI, &lt;code&gt;lms&lt;/code&gt;, once you've opened the app at least once (&lt;a href="https://lmstudio.ai/docs/cli" rel="noopener noreferrer"&gt;docs&lt;/a&gt;):
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;lms get            &lt;span class="c"&gt;# search and download&lt;/span&gt;
lms ls             &lt;span class="c"&gt;# what's on disk&lt;/span&gt;
lms load &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;model&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; --context-length=8192
lms server start   &lt;span class="c"&gt;# OpenAI-compatible local server&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Setting &lt;code&gt;--context-length&lt;/code&gt; explicitly is the single best thing you can do on a 16GB Mac (see Paul's story above).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LM Link&lt;/strong&gt; lets you run a model on one machine and use it from another (laptop, iPhone) over an end-to-end encrypted network built with Tailscale (&lt;a href="https://lmstudio.ai/docs/lmlink" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). This matters for the 2027 section below.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  mlx-lm
&lt;/h3&gt;

&lt;p&gt;Apple's own library, and usually the fastest single-machine option on Apple Silicon. One independent comparison on an M4 Max 128GB (cited by &lt;a href="https://levelup.gitconnected.com/ollama-mlx-nearly-doubles-llm-speed-on-your-mac-58-to-112-tok-s-and-your-old-models-get-none-of-fd1a9ec531fb" rel="noopener noreferrer"&gt;Level Up Coding&lt;/a&gt;) had the same model at 48.1 tok/s in pre-MLX Ollama, 72.4 in raw llama.cpp and 131.8 in mlx-lm.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install mlx-lm

&lt;span class="c"&gt;# chat in the terminal&lt;/span&gt;
mlx_lm.chat --model Qwen/Qwen3-8B-MLX-4bit

&lt;span class="c"&gt;# one-off generation (prints tokens/sec at the end)&lt;/span&gt;
mlx_lm.generate --model mlx-community/Llama-3.2-3B-Instruct-4bit --prompt &lt;span class="s2"&gt;"Explain KV cache in 3 sentences"&lt;/span&gt;

&lt;span class="c"&gt;# OpenAI-compatible server&lt;/span&gt;
mlx_lm.server --model Qwen/Qwen3-8B-MLX-4bit

&lt;span class="c"&gt;# quantize a Hugging Face model to 4-bit yourself&lt;/span&gt;
mlx_lm.convert --model mistralai/Mistral-7B-Instruct-v0.3 -q
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(Commands from the &lt;a href="https://github.com/ml-explore/mlx-lm" rel="noopener noreferrer"&gt;mlx-lm README&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;If you have an M5 or newer, MLX uses the GPU Neural Accelerators. Apple measured, on 24GB MacBook Pros, M5 vs M4 (&lt;a href="https://machinelearning.apple.com/research/exploring-llms-mlx-m5" rel="noopener noreferrer"&gt;source&lt;/a&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Time to first token&lt;/th&gt;
&lt;th&gt;Generation speed&lt;/th&gt;
&lt;th&gt;Memory&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3-8B 4-bit&lt;/td&gt;
&lt;td&gt;3.97× faster&lt;/td&gt;
&lt;td&gt;1.24× faster&lt;/td&gt;
&lt;td&gt;5.6GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3-14B 4-bit&lt;/td&gt;
&lt;td&gt;4.06× faster&lt;/td&gt;
&lt;td&gt;1.19× faster&lt;/td&gt;
&lt;td&gt;9.2GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;gpt-oss-20b MXFP4&lt;/td&gt;
&lt;td&gt;3.33× faster&lt;/td&gt;
&lt;td&gt;1.24× faster&lt;/td&gt;
&lt;td&gt;12.1GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3-30B-A3B 4-bit&lt;/td&gt;
&lt;td&gt;3.52× faster&lt;/td&gt;
&lt;td&gt;1.25× faster&lt;/td&gt;
&lt;td&gt;17.3GB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Read that carefully: the Neural Accelerators made &lt;strong&gt;prefill ~4× faster&lt;/strong&gt;, but &lt;strong&gt;generation only ~1.2× faster&lt;/strong&gt;, which matches the bandwidth jump (120 → 153 GB/s). Same lesson again: generation is a memory-bandwidth problem. Neural Accelerators need macOS 26.2 or later.&lt;/p&gt;

&lt;h3&gt;
  
  
  llama.cpp
&lt;/h3&gt;

&lt;p&gt;Hit v1.0 this year and has a new installer and a simpler &lt;code&gt;llama&lt;/code&gt; command (&lt;a href="https://github.com/ggml-org/llama.cpp" rel="noopener noreferrer"&gt;README&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -LsSf https://llama.app/install.sh &lt;span class="o"&gt;|&lt;/span&gt; sh

llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF     &lt;span class="c"&gt;# chat&lt;/span&gt;
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF   &lt;span class="c"&gt;# OpenAI-compatible server&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-hf&lt;/code&gt; pulls GGUF files straight from Hugging Face, so for Gemma 4 E4B QAT you'd use &lt;code&gt;-hf unsloth/gemma-4-E4B-it-qat-GGUF:UD-Q4_K_XL&lt;/code&gt; (Unsloth recommends &lt;code&gt;--temp 1.0 --top-p 0.95 --top-k 64&lt;/code&gt; for Gemma 4, &lt;a href="https://unsloth.ai/docs/models/gemma-4/qat" rel="noopener noreferrer"&gt;docs&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Use llama.cpp when you need control: context size, KV cache quantization (&lt;code&gt;q8_0&lt;/code&gt; halves KV memory, like hailports' setup), speculative decoding. Kyle Howells measured Gemma 4 26B-A4B on an M1 Max going from 58.2 to 69.2 tok/s with multi-token prediction enabled (via &lt;a href="https://dev.to/kunal_d6a8fea2309e1571ee7/how-to-run-local-agentic-ai-on-your-mac-with-mlx-after-wwdc-2026-183n"&gt;Kunal Ganglani's write-up&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Exo (correction to my 2025 post)
&lt;/h3&gt;

&lt;p&gt;In my old post I gave you &lt;code&gt;curl ... install.exo.sh&lt;/code&gt; and an &lt;code&gt;exo run ... --devices&lt;/code&gt; command. Those don't work. Sorry. Today Exo is a macOS menu-bar app (&lt;a href="https://github.com/exo-explore/exo" rel="noopener noreferrer"&gt;README&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew install --cask exo
&lt;span class="c"&gt;# or download EXO-latest.dmg from the README&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open it on each Mac on the same network. They discover each other automatically, and the dashboard plus an OpenAI/Claude/Ollama-compatible API run at &lt;code&gt;http://localhost:52415&lt;/code&gt;. Requirements: Apple silicon, macOS Sequoia 15.1+, and &lt;strong&gt;every Mac must run the same Exo version&lt;/strong&gt; or they won't join.&lt;/p&gt;

&lt;p&gt;Be realistic about what Exo is for. Over Wi-Fi it lets you fit a model that doesn't fit on one machine; it won't make a small model faster. The headline numbers (Exo claims up to 1.8× on 2 devices and 3.2× on 4 with tensor parallelism) come from Thunderbolt 5 + RDMA, which needs macOS 26.2+ and TB5 Macs (M4 Pro and up). Two 16GB Airs over Wi-Fi are a fun experiment, not a speed upgrade.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you measure tokens per second on your Mac?
&lt;/h2&gt;

&lt;p&gt;Don't trust anyone's tok/s, including my table above. Same prompt, same model, your Mac:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Ollama&lt;/span&gt;
ollama run gemma4:e4b-it-qat --verbose &lt;span class="s2"&gt;"Explain how a hash map works, in 150 words."&lt;/span&gt;

&lt;span class="c"&gt;# mlx-lm&lt;/span&gt;
mlx_lm.generate --model Qwen/Qwen3-8B-MLX-4bit \
  --prompt &lt;span class="s2"&gt;"Explain how a hash map works, in 150 words."&lt;/span&gt; --max-tokens 256
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look at two numbers: &lt;strong&gt;prompt eval rate&lt;/strong&gt; (prefill) and &lt;strong&gt;eval rate&lt;/strong&gt; (generation). Then open Activity Monitor → Memory and check the Memory Pressure graph. Yellow is okay. Red, and you're swapping.&lt;/p&gt;

&lt;p&gt;If your generation number is far below the estimate table, the usual suspects are: a long context, a GGUF tag where an MLX tag exists, or memory pressure from other apps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common errors when running local LLMs on a Mac (and fixes)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;model requires more system memory (X GiB) than is available (Y GiB)&lt;/code&gt;&lt;/strong&gt; (Ollama)&lt;br&gt;
Pick a smaller tag (&lt;code&gt;qat&lt;/code&gt; or a smaller size), or quit memory-hungry apps. On 16GB, a 12B model plus Chrome plus an IDE is a common way to hit this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;[WARNING] Generating with a model that requires ...&lt;/code&gt;&lt;/strong&gt; (mlx-lm)&lt;br&gt;
The model is large relative to RAM and will be slow. If it does fit, raising the GPU wired memory limit can help (macOS 15+):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo sysctl iogpu.wired_limit_mb=N   &lt;span class="c"&gt;# N &amp;gt; model size in MB, &amp;lt; total RAM&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This resets on reboot. Leave real headroom for macOS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"I updated Ollama and nothing got faster."&lt;/strong&gt;&lt;br&gt;
You're probably on a GGUF tag. Check which engine actually ran:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -oE &lt;span class="s2"&gt;"llama-server|mlxrunner"&lt;/span&gt; ~/.ollama/logs/server.log &lt;span class="o"&gt;|&lt;/span&gt; sort &lt;span class="o"&gt;|&lt;/span&gt; uniq -c
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(from &lt;a href="https://levelup.gitconnected.com/ollama-mlx-nearly-doubles-llm-speed-on-your-mac-58-to-112-tok-s-and-your-old-models-get-none-of-fd1a9ec531fb" rel="noopener noreferrer"&gt;Level Up Coding&lt;/a&gt;). Pull an &lt;code&gt;-mlx&lt;/code&gt; or &lt;code&gt;-nvfp4&lt;/code&gt; tag if you have the RAM.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exo dashboard shows &lt;code&gt;DEVICE ON ANOTHER EXO VERSION&lt;/code&gt;&lt;/strong&gt;&lt;br&gt;
Update every Mac to the same version. Also check System Settings → Privacy &amp;amp; Security → Local Network is on for EXO. Guest Wi-Fi often blocks device discovery; try Ethernet or a Thunderbolt cable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agent works for two turns, then crawls&lt;/strong&gt;&lt;br&gt;
Context. Cap it (&lt;code&gt;lms load --context-length&lt;/code&gt;, &lt;code&gt;-c&lt;/code&gt; in llama.cpp, &lt;code&gt;--max-kv-size&lt;/code&gt; in mlx-lm) and slim down the system prompt and tool list.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Is swap killing my SSD?"&lt;/strong&gt;&lt;br&gt;
Not by itself. As Chhinsoportrakhou &lt;a href="https://pub.towardsai.net/the-best-local-llm-setup-for-a-16gb-macbook-air-how-to-avoid-excessive-swap-memory-85bb4c1b7bd7" rel="noopener noreferrer"&gt;puts it on Towards AI&lt;/a&gt;, "using swap memory does not automatically destroy your Mac's SSD". The real problem is constant memory pressure making everything slow. Pick a model that fits.&lt;/p&gt;

&lt;h2&gt;
  
  
  What will change for local LLMs on Macs in 2027?
&lt;/h2&gt;

&lt;p&gt;I'll split this into three buckets, because most "future of AI" posts blur them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Already announced (fact)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prefill got fixed.&lt;/strong&gt; M5's Neural Accelerators made time-to-first-token ~4× faster than M4 in Apple's tests. M6 (announced Oct 2026, in the 14" MacBook Pro) goes to 170 GB/s on its 24/32GB configs (&lt;a href="https://www.macrumors.com/2026/10/27/14-inch-macbook-pro-with-m6-chip/" rel="noopener noreferrer"&gt;MacRumors&lt;/a&gt;). Long-context and agent workloads were the weak spot of Macs; that gap is closing fast.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Models got smaller for the same quality.&lt;/strong&gt; Gemma 4 ships official &lt;strong&gt;quantization-aware trained (QAT)&lt;/strong&gt; versions: the 26B MoE runs in ~15GB, E4B in ~5GB, E2B text-only under 1GB on mobile formats (&lt;a href="https://blog.google/innovation-and-ai/technology/developers-tools/quantization-aware-training-gemma-4/" rel="noopener noreferrer"&gt;Google&lt;/a&gt;, &lt;a href="https://unsloth.ai/docs/models/gemma-4/qat" rel="noopener noreferrer"&gt;Unsloth&lt;/a&gt;). Ollama reports NVIDIA's NVFP4 format roughly halves the quality loss of 4-bit vs q4_K_M on Gemma 4 12B, while generating ~20% faster (&lt;a href="https://ollama.com/blog/mlx-performance" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apple is openly courting local inference.&lt;/strong&gt; At WWDC26, Apple had a session on distributed inference with MLX: RDMA over Thunderbolt 5, a 1T-parameter Kimi K2.6 running across four Mac Studios, and Qwen 3.6 27B running nearly 3× faster on four machines than one (&lt;a href="https://developer.apple.com/videos/play/wwdc2026/233/" rel="noopener noreferrer"&gt;WWDC26 session 233&lt;/a&gt;). LM Studio &lt;a href="https://x.com/lmstudio/status/2067301278976180531" rel="noopener noreferrer"&gt;ran the same demo&lt;/a&gt; and accessed it "from a MacBook Neo and iPhone using LM Link".&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Rumored (credible reporting, not confirmed)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;M6 Pro/Max may skip to M7 in 2027.&lt;/strong&gt; Bloomberg reporting (via &lt;a href="https://macrumors.com/2026/06/25/m6-macbook-pro-2026/" rel="noopener noreferrer"&gt;MacRumors&lt;/a&gt;) said M6 Pro and Max weren't planned and the next high-end chips would be M7 in 2027, on TSMC's 2nm-class process with new packaging. The same report predicted ~200 GB/s for base M6; it shipped at 170, so take bandwidth rumors with salt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A MacBook Neo with A19 Pro and 12GB&lt;/strong&gt; is reportedly being tested (Gurman, via &lt;a href="https://www.techrepublic.com/article/news-macbook-neo-a19-pro-ai/" rel="noopener noreferrer"&gt;TechRepublic&lt;/a&gt;). 12GB vs 8GB is the difference between "4B max" and "comfortable E4B/9B with room for a browser".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Counter-force: memory is getting more expensive.&lt;/strong&gt; The Neo went from $599 to $699 in June 2026, reportedly due to memory costs. Cheap RAM is not guaranteed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  My predictions
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;"Small Mac" will mean 16GB, and 16GB will mean today's 24GB class.&lt;/strong&gt; Not because Macs get much more RAM, but because QAT + MoE keep shrinking the memory per unit of quality. A year ago a useful agent model needed 24GB+. Today Paul runs one on a 16GB M2 Air. I expect a Gemma-4-26B-quality model to fit comfortably in 16GB by late 2027. My Confidence: medium.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generation speed on base chips will improve slowly; prefill fast.&lt;/strong&gt; Bandwidth is rising ~10–25% per generation (120 → 153 → 170). MoE with fewer active parameters will do more for tok/s than the chip will. My Confidence: high.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The home Mac becomes the inference server, the laptop becomes the client.&lt;/strong&gt; Between LM Link, Exo, MLX distributed and Ollama's API, the pattern "Mac mini/Studio in a closet, thin MacBook (even a Neo) everywhere" is already working. I think in 2027 that's the default setup for people who care about privacy or API bills, the way a home NAS became normal for photos. My Confidence: medium.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Will inference "move to Macs" from data centers?&lt;/strong&gt; For individuals and small teams, partially, yes, especially for agents running all day where API costs add up. For serving many users at once, no: Macs win on memory per dollar and per watt, not on batch throughput. Confidence: medium-high.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;8GB:&lt;/strong&gt; Qwen3.5 4B or Gemma 4 E2B. Chat and text tasks, not agents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;16GB:&lt;/strong&gt; Gemma 4 E4B QAT or Qwen3.5 9B. Agents work &lt;em&gt;if you keep context small&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;24GB:&lt;/strong&gt; 26–35B MoE models (Gemma 4 26B-A4B, Qwen3-30B-A3B). This is the 2027 sweet spot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Buying?&lt;/strong&gt; Bandwidth and RAM beat chip generation. A used M1/M2 Pro with 32GB can beat a new base Air.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tools:&lt;/strong&gt; LM Studio to start, Ollama for apps, mlx-lm for speed, llama.cpp for control, Exo when one Mac isn't enough.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can an 8GB Mac run an LLM?&lt;/strong&gt;&lt;br&gt;
Yes. Models up to about 4B parameters at 4-bit (Qwen3.5 4B, Gemma 4 E2B) fit in 8GB. 7–9B models load but cause swapping. Fine for chat and text tasks, not for coding agents.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best local LLM for a 16GB MacBook Air?&lt;/strong&gt;&lt;br&gt;
As of November 2026, Gemma 4 E4B (QAT, ~6GB) and Qwen3.5 9B (~7GB). One M2 Air user measured ~20 tok/s with Gemma 4 E4B QAT and 12–18 tok/s with Qwen3.5 9B.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is MLX faster than Ollama on a Mac?&lt;/strong&gt;&lt;br&gt;
Ollama has used MLX on Apple Silicon since v0.19 (March 2026), but only for MLX-format model tags. GGUF tags still use the llama.cpp engine. Raw mlx-lm is usually the fastest option on a single Mac.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the M5 chip make local LLMs faster?&lt;/strong&gt;&lt;br&gt;
Mostly for prompt processing. Apple measured up to ~4× faster time-to-first-token vs M4, but only ~1.2× faster generation, because memory bandwidth rose from 120 to 153 GB/s.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I combine two Macs to run a bigger model?&lt;/strong&gt;&lt;br&gt;
Yes, with Exo or MLX distributed. Over Wi-Fi it lets a bigger model fit; real speedups need Thunderbolt 5 with RDMA (macOS 26.2+).&lt;/p&gt;

&lt;p&gt;If you run any of these on your own Mac, drop your model, RAM and tok/s in the comments. I'll add the best ones to the table.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>macos</category>
      <category>ai</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Archify (They've just got 4,239 Github stars on Aug 28, 2026)</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Sat, 29 Aug 2026 18:31:54 +0000</pubDate>
      <link>https://dev.to/mehmetakar/archify-theyve-just-got-4239-github-stars-on-aug-28-2026-2ghd</link>
      <guid>https://dev.to/mehmetakar/archify-theyve-just-got-4239-github-stars-on-aug-28-2026-2ghd</guid>
      <description>&lt;p&gt;Archify is taking GitHub by storm, hitting #1 on Trending and crossing 4,200+ stars in record time! &lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/fEsm0Itekm0" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;If you use AI coding assistants like Cursor or Claude Code, Archify is an absolute game-changer. It allows your AI agent to automatically generate verifiable architecture, workflow, sequence, and data-flow diagrams as beautiful, self-contained HTML files (with dark/light themes and motion animations!).&lt;/p&gt;

&lt;p&gt;🔗 Links &amp;amp; Resources:&lt;br&gt;
• Archify GitHub Repository: &lt;a href="https://github.com/tt-a1i/archify" rel="noopener noreferrer"&gt;https://github.com/tt-a1i/archify&lt;/a&gt;&lt;br&gt;
• Try it yourself: &lt;code&gt;npx skills add tt-a1i/archify -g&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;👇 What do you think of Archify?&lt;br&gt;
Are you going to use it for your next system design or PR review? Let me know in the comments! If you found this live demo helpful, please drop a LIKE and SUBSCRIBE for more cutting-edge AI developer tools.&lt;/p&gt;

&lt;h1&gt;
  
  
  Archify #SoftwareArchitecture #Cursor #ClaudeCode #AI #SystemDesign #GitHubTrending #WebDev #OpenSource #DevTools
&lt;/h1&gt;

</description>
      <category>archify</category>
      <category>github</category>
      <category>agents</category>
      <category>ai</category>
    </item>
    <item>
      <title>Context7 MCP Tutorial</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Fri, 25 Apr 2025 12:46:07 +0000</pubDate>
      <link>https://dev.to/mehmetakar/context7-mcp-tutorial-3he2</link>
      <guid>https://dev.to/mehmetakar/context7-mcp-tutorial-3he2</guid>
      <description>&lt;p&gt;Context7 and its tool Context7 MCP is so popular in AI-Vibe Coding world, nowadays. I want to mention it and create an article about it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Context7 MCP&lt;/strong&gt; is a tool that supercharges AI prompts with &lt;strong&gt;real-time, version-specific documentation and code examples&lt;/strong&gt;. Whether you're using Claude, Cursor, VS Code, or another Model Context Protocol (MCP) client, Context7 helps eliminate hallucinated APIs and outdated examples by injecting live data into your LLM interactions.&lt;/p&gt;




&lt;p&gt;We can see their popularity on github star graphics:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3kvppi8cpfd7m5he3xsy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3kvppi8cpfd7m5he3xsy.png" alt="Star History Chart" width="800" height="571"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🌟 Why Use Context7?
&lt;/h2&gt;

&lt;h3&gt;
  
  
  ❌ Without Context7:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Outdated examples based on old training data.&lt;/li&gt;
&lt;li&gt;AI hallucinations about APIs that don’t exist.&lt;/li&gt;
&lt;li&gt;Generalized help for outdated package versions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ✅ With Context7:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Accurate, live documentation and examples pulled from the actual library.&lt;/li&gt;
&lt;li&gt;Instant, relevant answers based on real packages and versions.&lt;/li&gt;
&lt;li&gt;All you have to do is &lt;strong&gt;add &lt;code&gt;use context7&lt;/code&gt;&lt;/strong&gt; to your prompt.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Examples:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create a basic Next.js project with app router. use context7
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create a script to delete the rows where the city is "" given PostgreSQL credentials. use context7
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🛠️ Getting Started
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Requirements
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Node.js ≥ &lt;strong&gt;v18.0.0&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;One of the following MCP clients:

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Cursor&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Windsurf&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Claude Desktop&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;VS Code&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Docker (optional)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h2&gt;
  
  
  📦 Installation Methods
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Install via Smithery (for Claude Desktop)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx &lt;span class="nt"&gt;-y&lt;/span&gt; @smithery/cli &lt;span class="nb"&gt;install&lt;/span&gt; @upstash/context7-mcp &lt;span class="nt"&gt;--client&lt;/span&gt; claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🧭 Installation for Specific Clients
&lt;/h2&gt;

&lt;h3&gt;
  
  
  📍 Cursor
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Steps:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to: &lt;code&gt;Settings&lt;/code&gt; → &lt;code&gt;Cursor Settings&lt;/code&gt; → &lt;code&gt;MCP&lt;/code&gt; → &lt;code&gt;Add new global MCP server&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Or directly update &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Alternative Runtimes:
&lt;/h4&gt;

&lt;p&gt;Using Bun&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"bunx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Using Deno&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"deno"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"run"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"--allow-net"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npm:@upstash/context7-mcp"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  🌊 Windsurf
&lt;/h3&gt;

&lt;p&gt;Add to your &lt;code&gt;windsurf.mcp.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  🧩 VS Code / VS Code Insiders
&lt;/h3&gt;

&lt;p&gt;Install via &lt;a href="https://code.visualstudio.com/docs/copilot/chat/mcp-servers" rel="noopener noreferrer"&gt;VS Code MCP Docs&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"servers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"stdio"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install buttons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522context7%2522%252C%2522config%2522%253A%257B%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522%2540upstash%252Fcontext7-mcp%2540latest%2522%255D%257D%257D" rel="noopener noreferrer"&gt;VS Code Install&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522context7%2522%252C%2522config%2522%253A%257B%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522-y%2522%252C%2522%2540upstash%252Fcontext7-mcp%2540latest%2522%255D%257D%257D" rel="noopener noreferrer"&gt;VS Code Insiders Install&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🧠 Claude Code
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add context7 &lt;span class="nt"&gt;--&lt;/span&gt; npx &lt;span class="nt"&gt;-y&lt;/span&gt; @upstash/context7-mcp@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  💻 Claude Desktop
&lt;/h3&gt;

&lt;p&gt;Update &lt;code&gt;claude_desktop_config.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  🐳 Using Docker
&lt;/h3&gt;

&lt;h4&gt;
  
  
  1. Dockerfile
&lt;/h4&gt;

&lt;p&gt;Create a file named &lt;code&gt;Dockerfile&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="s"&gt; node:18-alpine&lt;/span&gt;

&lt;span class="k"&gt;WORKDIR&lt;/span&gt;&lt;span class="s"&gt; /app&lt;/span&gt;

&lt;span class="k"&gt;RUN &lt;/span&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @upstash/context7-mcp@latest

&lt;span class="k"&gt;CMD&lt;/span&gt;&lt;span class="s"&gt; ["context7-mcp"]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  2. Build the Docker Image
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker build &lt;span class="nt"&gt;-t&lt;/span&gt; context7-mcp &lt;span class="nb"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  3. Configure MCP Client
&lt;/h4&gt;

&lt;p&gt;Example &lt;code&gt;client_mcp_settings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"autoApprove"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"disabled"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"timeout"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"docker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"run"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"-i"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"--rm"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"context7-mcp"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"transportType"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"stdio"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;Note: The tag &lt;code&gt;context7-mcp&lt;/code&gt; should match your &lt;code&gt;docker build&lt;/code&gt; tag.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🧰 Available Tools
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;resolve-library-id&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Resolves a general library name into a Context7-compatible ID.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;libraryName&lt;/code&gt; (required)&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;code&gt;get-library-docs&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Fetch docs using Context7 ID.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;context7CompatibleLibraryID&lt;/code&gt; (required)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;topic&lt;/code&gt; (optional): e.g., &lt;code&gt;"routing"&lt;/code&gt;, &lt;code&gt;"hooks"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tokens&lt;/code&gt; (optional, default 5000)&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚙️ Development
&lt;/h2&gt;

&lt;p&gt;Clone the repo and install dependencies:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bun i
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Build the project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bun run build
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Local config example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"tsx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/path/to/folder/context7-mcp/src/index.ts"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🔬 Test with MCP Inspector
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx &lt;span class="nt"&gt;-y&lt;/span&gt; @modelcontextprotocol/inspector npx @upstash/context7-mcp@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🧯 Context7 Troubleshooting
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;code&gt;ERR_MODULE_NOT_FOUND&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;Switch from &lt;code&gt;npx&lt;/code&gt; to &lt;code&gt;bunx&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"bunx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@upstash/context7-mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Context7 MCP Errors?
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Remove &lt;code&gt;@latest&lt;/code&gt; from package name.&lt;/li&gt;
&lt;li&gt;Try &lt;code&gt;bunx&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Try &lt;code&gt;deno&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;




</description>
      <category>context7</category>
      <category>mcp</category>
      <category>cursor</category>
      <category>ai</category>
    </item>
    <item>
      <title>Blender MCP: Seamless Integration of Blender with Claude AI</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Mon, 17 Mar 2025 05:24:28 +0000</pubDate>
      <link>https://dev.to/mehmetakar/blender-mcp-seamless-integration-of-blender-with-claude-ai-302g</link>
      <guid>https://dev.to/mehmetakar/blender-mcp-seamless-integration-of-blender-with-claude-ai-302g</guid>
      <description>&lt;p&gt;Blender MCP (Blender Model Context Protocol) is a nice tool that connects &lt;strong&gt;Blender&lt;/strong&gt; to &lt;strong&gt;Claude AI&lt;/strong&gt;, allowing AI-driven 3D modeling, scene creation, and object manipulation. This integration makes 3D design faster, more intuitive, and highly interactive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Use Blender MCP?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI-powered modeling&lt;/strong&gt;: Direct interaction with Claude AI for instant 3D modifications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seamless asset management&lt;/strong&gt;: Access &lt;strong&gt;Poly Haven&lt;/strong&gt; and &lt;strong&gt;Hyper3D Rodin&lt;/strong&gt; for quick model generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advanced material control&lt;/strong&gt;: Modify object textures and materials effortlessly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Script execution&lt;/strong&gt;: Run Python scripts directly within Blender.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Two-way communication&lt;/strong&gt; between Blender and Claude AI&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Object creation, deletion, and transformation&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Material and texture application&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scene inspection and real-time information retrieval&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AI-generated models via Hyper3D Rodin&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installation Guide
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;To install Blender MCP, ensure you have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Blender 3.0+&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Python 3.10+&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;uv package manager&lt;/strong&gt; (Essential for running MCP)&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Installing UV
&lt;/h4&gt;

&lt;p&gt;For &lt;strong&gt;Mac&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;uv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For &lt;strong&gt;Windows&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;powershell&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-c&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"irm https://astral.sh/uv/install.ps1 | iex"&lt;/span&gt;&lt;span class="w"&gt; 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, add to the system path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;C:\Users\nntra\.local\bin&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="n"&gt;Path&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://docs.astral.sh/uv/getting-started/installation/" rel="noopener noreferrer"&gt;Full installation guide&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;⚠️ &lt;strong&gt;Do not proceed before installing UV&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Setting Up MCP in Claude AI
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Claude AI Desktop&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Settings &amp;gt; Developer &amp;gt; Edit Config&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Add the following to &lt;code&gt;claude_desktop_config.json&lt;/code&gt;:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"blender"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"uvx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="s2"&gt;"blender-mcp"&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Installing Blender Addon
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Download the &lt;code&gt;addon.py&lt;/code&gt; file&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;Blender&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Edit &amp;gt; Preferences &amp;gt; Add-ons&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Install...&lt;/strong&gt; and select &lt;code&gt;addon.py&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Enable the addon (Checkbox: "Interface: Blender MCP")&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Use Blender MCP
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Connecting to Claude AI
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh0hzlju74yjkpr60mz59.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh0hzlju74yjkpr60mz59.png" alt="Blender MCP Sidebar" width="800" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open Blender and press &lt;strong&gt;N&lt;/strong&gt; to access the &lt;strong&gt;3D View Sidebar&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Navigate to the &lt;strong&gt;BlenderMCP&lt;/strong&gt; tab&lt;/li&gt;
&lt;li&gt;Enable &lt;strong&gt;Poly Haven API&lt;/strong&gt; (Optional)&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;"Connect to Claude"&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Ensure the &lt;strong&gt;MCP Server&lt;/strong&gt; is running&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Example Commands
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fca4il2hrld0jf2iyak37.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fca4il2hrld0jf2iyak37.png" alt="Blender MCP Hammer Icon" width="711" height="162"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can now interact with Blender through Claude AI by using commands like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Create a 3D scene&lt;/strong&gt;: "Generate a dungeon scene with a dragon guarding gold"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Demo video&lt;/strong&gt;&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/DqgKuLYUv00"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Modify textures&lt;/strong&gt;: "Make this car red and metallic"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Poly Haven assets&lt;/strong&gt;: "Create a beach scene using HDRIs and rock models from Poly Haven"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Demo video&lt;/strong&gt;&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/I29rn92gkC4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;AI-generated models&lt;/strong&gt;: "Generate a 3D garden gnome using Hyper3D Rodin"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adjust camera&lt;/strong&gt;: "Set up isometric camera view"&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lighting setup&lt;/strong&gt;: "Adjust lighting to a studio environment"&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Using MCP with Cursor Integration
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Cursor Settings &amp;gt; MCP&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Paste the command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uvx blender-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Cursor setup guide video]&lt;/strong&gt;&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/wgWsJshecac"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;⚠️ &lt;strong&gt;Run MCP server on either Cursor or Claude, NOT both&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting &amp;amp; FAQs
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Common Issues &amp;amp; Fixes
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Connection Issues&lt;/strong&gt;: Ensure the &lt;strong&gt;Blender Addon Server&lt;/strong&gt; is running and correctly configured on Claude.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timeout Errors&lt;/strong&gt;: Break complex requests into smaller commands.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Poly Haven API Issues&lt;/strong&gt;: Refresh API settings if assets fail to load.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;General Fix&lt;/strong&gt;: Restart Blender and Claude AI.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Security Considerations
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python Execution Risks&lt;/strong&gt;: The &lt;code&gt;execute_blender_code&lt;/code&gt; function allows arbitrary code execution. Always save work before using it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Large Asset Downloads&lt;/strong&gt;: Disable &lt;strong&gt;Poly Haven&lt;/strong&gt; integration if not needed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complex Commands&lt;/strong&gt;: Break large operations into smaller steps for efficiency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contributing &amp;amp; Development
&lt;/h2&gt;

&lt;p&gt;Blender MCP is an open-source project. Contributions are welcome! Submit a Pull Request or report issues on the GitHub repository: @blender-mcp&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Blender MCP is a game-changer for 3D artists, allowing &lt;strong&gt;AI-assisted modeling, asset management, and interactive scene creation&lt;/strong&gt;. By integrating Claude AI with Blender, this tool accelerates workflows and brings creative visions to life effortlessly.&lt;/p&gt;

</description>
      <category>blendermcp</category>
      <category>mcp</category>
      <category>blender</category>
      <category>cursor</category>
    </item>
    <item>
      <title>What is Alpaca LLM?</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Sun, 16 Mar 2025 05:02:20 +0000</pubDate>
      <link>https://dev.to/mehmetakar/what-is-alpaca-llm-e4h</link>
      <guid>https://dev.to/mehmetakar/what-is-alpaca-llm-e4h</guid>
      <description>&lt;p&gt;I want to talk about &lt;strong&gt;What is Alpaca LLM?&lt;/strong&gt; as it is wondered heavily, nowadays.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Alpaca LLM? Introduction
&lt;/h2&gt;

&lt;p&gt;Alpaca LLM is an advanced, open-source language model developed by researchers at Stanford University as a fine-tuned version of Meta’s LLaMA (Large Language Model Meta AI). Designed to be a cost-effective alternative to proprietary AI models like OpenAI’s GPT-4, Alpaca LLM enables developers and researchers to harness the power of large language models (LLMs) for various applications, including chatbots, content generation, and research. &lt;/p&gt;

&lt;p&gt;In this article, we will explore what Alpaca LLM is, how it works, its features, advantages, limitations, and how you can deploy it for your AI applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Alpaca LLM?
&lt;/h2&gt;

&lt;p&gt;Alpaca LLM is a fine-tuned version of Meta’s LLaMA 7B model. It was trained using self-instruction techniques inspired by OpenAI’s InstructGPT. The goal was to create a lightweight yet powerful AI model capable of generating human-like text while maintaining accessibility and affordability for developers and researchers.&lt;/p&gt;

&lt;p&gt;Unlike proprietary models like GPT-4, Alpaca LLM is available as an open-source project, allowing developers to modify, optimize, and deploy the model in various applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Does Alpaca LLM Work?
&lt;/h2&gt;

&lt;p&gt;Alpaca LLM follows a supervised fine-tuning approach:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Base Model Selection:&lt;/strong&gt; The model starts with Meta’s LLaMA 7B as its foundation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instruction Tuning:&lt;/strong&gt; Researchers created 52,000 unique instruction-following samples using OpenAI’s text-davinci-003 model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fine-Tuning:&lt;/strong&gt; The model is then fine-tuned with these instructions to improve performance in text generation, summarization, and conversational AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inference &amp;amp; Deployment:&lt;/strong&gt; Once trained, Alpaca LLM can generate responses to prompts in a manner similar to GPT-based models.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Key Features of Alpaca LLM
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source:&lt;/strong&gt; Unlike proprietary AI models, Alpaca LLM is freely available for developers and researchers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost-Effective Training:&lt;/strong&gt; Stanford researchers fine-tuned Alpaca for less than $600, proving that high-quality models can be trained at low cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lightweight &amp;amp; Efficient:&lt;/strong&gt; The model is designed to be compact and runs efficiently on consumer-grade hardware.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instruction Following:&lt;/strong&gt; It is optimized for following human instructions, making it suitable for chatbot applications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customizability:&lt;/strong&gt; Developers can fine-tune the model further to meet specific needs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Advantages of Using Alpaca LLM
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Free &amp;amp; Open-Source:&lt;/strong&gt; No licensing fees, making it accessible to everyone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flexible Deployment:&lt;/strong&gt; Can be deployed on local machines, cloud servers, or edge devices.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Community Support:&lt;/strong&gt; Being open-source, Alpaca LLM benefits from contributions and improvements from the AI research community.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparable Performance:&lt;/strong&gt; Despite being lightweight, it achieves results similar to state-of-the-art language models.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Limitations of Alpaca LLM
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Limited Scale:&lt;/strong&gt; It is not as powerful as models like GPT-4 due to its smaller dataset and reduced computational resources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bias &amp;amp; Safety Issues:&lt;/strong&gt; Like all AI models, it may inherit biases from training data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Requires Technical Knowledge:&lt;/strong&gt; Setting up and fine-tuning Alpaca LLM requires programming and AI expertise.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Install and Use Alpaca LLM
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;p&gt;Before installing Alpaca LLM, ensure you have the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A system with Linux or macOS (Windows users can use WSL)&lt;/li&gt;
&lt;li&gt;Python 3.8 or later&lt;/li&gt;
&lt;li&gt;CUDA-compatible GPU (for efficient inference)&lt;/li&gt;
&lt;li&gt;Git and Python virtual environment tools installed&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 1: Clone the Alpaca Repository
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clone the Alpaca LLM repository&lt;/span&gt;
git clone https://github.com/tatsu-lab/stanford_alpaca.git
&lt;span class="nb"&gt;cd &lt;/span&gt;stanford_alpaca
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Set Up the Virtual Environment
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Create and activate a virtual environment&lt;/span&gt;
python3 &lt;span class="nt"&gt;-m&lt;/span&gt; venv alpaca_env
&lt;span class="nb"&gt;source &lt;/span&gt;alpaca_env/bin/activate  &lt;span class="c"&gt;# On Windows: alpaca_env\Scripts\activate&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Install Dependencies
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Install required Python libraries&lt;/span&gt;
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4: Download LLaMA Model Weights
&lt;/h3&gt;

&lt;p&gt;Since Alpaca is built on Meta’s LLaMA, you need to obtain access to LLaMA weights. You can request them from Meta’s official site:&lt;br&gt;
&lt;a href="https://ai.facebook.com/blog/large-language-model-llama-meta-ai/" rel="noopener noreferrer"&gt;https://ai.facebook.com/blog/large-language-model-llama-meta-ai/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you have the LLaMA weights, place them in the appropriate directory inside the Alpaca project.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 5: Fine-Tune Alpaca LLM
&lt;/h3&gt;

&lt;p&gt;To fine-tune Alpaca with your custom dataset, use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python train.py &lt;span class="nt"&gt;--base_model&lt;/span&gt; &lt;span class="s1"&gt;'/path/to/llama/model'&lt;/span&gt; &lt;span class="nt"&gt;--data_path&lt;/span&gt; &lt;span class="s1"&gt;'/path/to/dataset.json'&lt;/span&gt; &lt;span class="nt"&gt;--output_dir&lt;/span&gt; &lt;span class="s1"&gt;'./trained_model'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 6: Running Inference on Alpaca LLM
&lt;/h3&gt;

&lt;p&gt;After training, you can generate text responses using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python generate.py &lt;span class="nt"&gt;--model_path&lt;/span&gt; &lt;span class="s1"&gt;'./trained_model'&lt;/span&gt; &lt;span class="nt"&gt;--prompt&lt;/span&gt; &lt;span class="s1"&gt;'What is Alpaca LLM?'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Future of Alpaca LLM
&lt;/h2&gt;

&lt;p&gt;The Alpaca LLM project demonstrates how cost-effective, high-quality AI models can be developed with minimal resources. With continuous improvements in open-source AI, we can expect better performance, increased accessibility, and more widespread adoption of lightweight LLMs in the future.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Alpaca LLM? Conclusion
&lt;/h2&gt;

&lt;p&gt;Alpaca LLM is an exciting advancement in the field of open-source AI, offering a powerful, cost-effective alternative to proprietary large language models. With its open-source nature, efficiency, and customization options, it is an excellent choice for developers looking to integrate AI capabilities into their projects.&lt;/p&gt;

&lt;p&gt;If you’re interested in AI development and want to experiment with a freely available LLM, Alpaca LLM is a great place to start. As AI technology continues to evolve, models like Alpaca will play a crucial role in democratizing access to artificial intelligence.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>alpacallm</category>
      <category>llama</category>
    </item>
    <item>
      <title>LCM vs. LLM</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Sat, 15 Mar 2025 22:52:09 +0000</pubDate>
      <link>https://dev.to/mehmetakar/lcm-vs-llm-20kk</link>
      <guid>https://dev.to/mehmetakar/lcm-vs-llm-20kk</guid>
      <description>&lt;p&gt;LCM vs. LLM is a popular question, nowadays. Let me analyze this comparison.&lt;/p&gt;

&lt;p&gt;With the rise of artificial intelligence and machine learning, two key terms that are often discussed are &lt;strong&gt;LCM (Large Concept Models)&lt;/strong&gt; and &lt;strong&gt;LLM (Large Language Models)&lt;/strong&gt;. While they share similarities in being AI-driven models, they differ significantly in their approaches and applications. This article will explore their distinctions and use cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is LCM (Large Concept Model)?
&lt;/h2&gt;

&lt;p&gt;LCM, or &lt;strong&gt;Large Concept Model&lt;/strong&gt;, is a new AI paradigm developed by Meta that shifts the focus from token-based processing to concept-level understanding. Unlike LLMs, which predict the next word based on tokenized text, LCMs operate at a higher level of abstraction by modeling entire concepts instead of individual words or tokens.&lt;/p&gt;

&lt;h3&gt;
  
  
  How Do LCMs Work?
&lt;/h3&gt;

&lt;p&gt;LCMs use &lt;strong&gt;concept embeddings&lt;/strong&gt;, which represent ideas rather than words, allowing them to generalize more effectively across languages and modalities. Their key components include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Concept Encoding:&lt;/strong&gt; Instead of breaking text into small units, LCMs encode entire sentences or ideas into a higher-dimensional embedding space.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sequence Modeling:&lt;/strong&gt; These models predict sequences of concept embeddings rather than individual words, enhancing long-term coherence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decoding:&lt;/strong&gt; The predicted embeddings are then transformed back into readable text or other formats.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Advantages of LCMs:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Improved Coherence:&lt;/strong&gt; By working with concepts rather than tokens, LCMs maintain better contextual consistency in long-form content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multilingual &amp;amp; Multimodal Capabilities:&lt;/strong&gt; Since they operate at the concept level, LCMs can generalize across different languages and modalities (text, speech, images, etc.).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Higher-Level Reasoning:&lt;/strong&gt; LCMs improve AI’s ability to understand abstract ideas and complex topics.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Applications of LCMs:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Advanced summarization&lt;/li&gt;
&lt;li&gt;Content creation and reasoning tasks&lt;/li&gt;
&lt;li&gt;Multilingual and multimodal AI applications&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is LLM (Large Language Model)?
&lt;/h2&gt;

&lt;p&gt;LLM, or &lt;strong&gt;Large Language Model&lt;/strong&gt;, is a deep learning-based AI model designed to process and generate human-like text. LLMs rely on tokenization, predicting the next token in a sequence based on vast amounts of text data.&lt;/p&gt;

&lt;h3&gt;
  
  
  How Do LLMs Work?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tokenization:&lt;/strong&gt; Text is broken down into tokens (words or subwords).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training:&lt;/strong&gt; Models learn linguistic patterns by analyzing massive datasets and adjusting their internal parameters to minimize prediction errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generation:&lt;/strong&gt; LLMs construct sentences word by word, relying on statistical patterns.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Applications of LLMs:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Text completion and generation&lt;/li&gt;
&lt;li&gt;Machine translation&lt;/li&gt;
&lt;li&gt;Chatbots and conversational AI&lt;/li&gt;
&lt;li&gt;Sentiment analysis and code generation&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Limitations of LLMs:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Struggles with Long-Range Context:&lt;/strong&gt; Token-by-token processing makes it difficult to maintain coherence over long texts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language-Specific Limitations:&lt;/strong&gt; Requires extensive training in each language, making multilingual support more complex.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lack of True Understanding:&lt;/strong&gt; Predicts words statistically rather than understanding concepts like LCMs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Differences Between LCMs and LLMs
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;Large Language Models (LLMs)&lt;/th&gt;
&lt;th&gt;Large Concept Models (LCMs)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Processing Unit&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Tokens (words or subwords)&lt;/td&gt;
&lt;td&gt;Concepts (sentences or higher-level ideas)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Abstraction Level&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Operate at a granular level, focusing on individual tokens&lt;/td&gt;
&lt;td&gt;Function at a higher abstraction level, dealing with entire concepts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Language Dependency&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Often tailored to specific languages; multilingual capabilities require extensive training&lt;/td&gt;
&lt;td&gt;Designed to be language-agnostic, leveraging embedding spaces that support multiple languages and modalities&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Context Handling&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;May struggle with long-term coherence due to token-by-token processing&lt;/td&gt;
&lt;td&gt;Better equipped for maintaining context over extended content by focusing on broader concepts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Generation Approach&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Sequential token prediction, constructing sentences word by word&lt;/td&gt;
&lt;td&gt;Predicts and generates entire concepts, allowing for more holistic and coherent content creation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Training Paradigm&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Requires vast amounts of token-level data; training involves learning probabilities of token sequences&lt;/td&gt;
&lt;td&gt;Trained on sequences of concept embeddings, enabling the model to grasp and generate higher-level semantic structures&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Applications&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Suitable for tasks requiring detailed token-level manipulation, such as precise text editing or code generation&lt;/td&gt;
&lt;td&gt;Ideal for applications involving abstract reasoning, summarization, and content creation across different languages and formats&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Limitations&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;- May lack deep understanding of context&lt;br&gt;- Can produce less coherent long-form content&lt;br&gt;- Language and modality limitations due to token-based processing&lt;/td&gt;
&lt;td&gt;- Emerging technology with ongoing research&lt;br&gt;- Requires robust concept encoding and decoding mechanisms&lt;br&gt;- Potential challenges in defining and standardizing what constitutes a "concept" across various applications and domains&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  LCM vs. LLM: Conclusion
&lt;/h2&gt;

&lt;p&gt;While both &lt;strong&gt;LCMs&lt;/strong&gt; and &lt;strong&gt;LLMs&lt;/strong&gt; are crucial AI advancements, they serve different purposes. &lt;strong&gt;LLMs&lt;/strong&gt; are ideal for text-based generation tasks, whereas &lt;strong&gt;LCMs&lt;/strong&gt; take a broader, concept-driven approach that enhances coherence, multilingual adaptability, and abstract reasoning. As AI technology evolves, LCMs may overcome many of the limitations of traditional LLMs, offering a more holistic approach to natural language understanding.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>lcm</category>
      <category>llm</category>
      <category>lcmvsllm</category>
    </item>
    <item>
      <title>What is LLM in AI</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Sat, 15 Mar 2025 18:47:54 +0000</pubDate>
      <link>https://dev.to/mehmetakar/what-is-llm-in-ai-487d</link>
      <guid>https://dev.to/mehmetakar/what-is-llm-in-ai-487d</guid>
      <description>&lt;p&gt;What is LLM in AI? This is the most asked questions for people who wonder ai development.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is LLM in AI? in some words?
&lt;/h2&gt;

&lt;p&gt;Large Language Models (LLMs) have gained significant attention for their ability to understand and generate human-like text. But what exactly is an LLM in AI, and how does it work? This guide will explore everything you need to know about LLMs, their applications, benefits, and limitations.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is an LLM in AI?
&lt;/h2&gt;

&lt;p&gt;A Large Language Model (LLM) is a type of artificial intelligence algorithm designed to process and generate text by analyzing vast amounts of language data. These models are built using deep learning techniques, particularly neural networks with billions of parameters. Some well-known LLMs include OpenAI’s GPT-4, Google’s Bard, and Meta’s LLaMA.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Do LLMs Work?
&lt;/h2&gt;

&lt;p&gt;LLMs are trained on extensive datasets consisting of books, articles, and online content. They leverage Natural Language Processing (NLP) techniques to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Understand Context&lt;/strong&gt;: Recognizing the meaning of words and sentences based on their placement and usage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Predict Words&lt;/strong&gt;: Generating text based on probabilities derived from training data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mimic Human Responses&lt;/strong&gt;: Producing coherent and contextually relevant replies to prompts.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Features of Large Language Models
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Scalability&lt;/strong&gt;: LLMs can process vast amounts of text and generate responses in real-time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multitasking Capability&lt;/strong&gt;: They can handle diverse tasks such as translation, summarization, and question-answering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Self-Improvement&lt;/strong&gt;: Many LLMs leverage reinforcement learning techniques to refine their outputs over time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Applications of LLMs in Various Industries
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. &lt;strong&gt;Content Creation&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;LLMs can generate high-quality articles, blog posts, and marketing content with minimal human intervention.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;strong&gt;Customer Support&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;AI chatbots powered by LLMs improve customer service by providing instant responses to queries.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. &lt;strong&gt;Healthcare&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;They assist in analyzing medical records, summarizing patient data, and even generating medical reports.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;strong&gt;Software Development&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;LLMs like GitHub Copilot help developers by auto-completing code and offering debugging suggestions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benefits of LLMs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Time-Saving&lt;/strong&gt;: Automates repetitive text-based tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost-Effective&lt;/strong&gt;: Reduces the need for manual content generation and data analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enhanced Personalization&lt;/strong&gt;: Provides tailored responses and recommendations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Challenges and Limitations
&lt;/h2&gt;

&lt;p&gt;Despite their advantages, LLMs come with some challenges:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bias in Data&lt;/strong&gt;: They may inherit biases present in their training data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High Computational Costs&lt;/strong&gt;: Training and deploying LLMs require substantial computational resources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Potential Misinformation&lt;/strong&gt;: Not all AI-generated content is accurate or reliable.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Future of LLMs
&lt;/h2&gt;

&lt;p&gt;The future of LLMs looks promising with advancements in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;More Efficient Models&lt;/strong&gt;: Reducing energy consumption while maintaining performance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Better Context Understanding&lt;/strong&gt;: Enhancing their ability to interpret and generate more accurate responses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ethical AI Development&lt;/strong&gt;: Addressing bias and improving transparency in AI decision-making.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is LLM in AI? Conclusion
&lt;/h2&gt;

&lt;p&gt;Large Language Models (LLMs) are revolutionizing the way we interact with AI, offering numerous applications across various industries. However, it is crucial to understand their capabilities and limitations to use them effectively. As AI technology continues to evolve, LLMs will become even more sophisticated, shaping the future of communication and automation.&lt;/p&gt;

&lt;p&gt;By understanding the fundamentals of LLMs, businesses and individuals can harness their power to improve productivity, enhance user experiences, and drive innovation.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>llminai</category>
      <category>whatisllm</category>
    </item>
    <item>
      <title>LLM vs NLP</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Fri, 14 Mar 2025 08:04:20 +0000</pubDate>
      <link>https://dev.to/mehmetakar/llm-vs-nlp-54o9</link>
      <guid>https://dev.to/mehmetakar/llm-vs-nlp-54o9</guid>
      <description>&lt;p&gt;LLM vs NLP is one of the most asked comparisons in the ai world. &lt;br&gt;
Let me analyze their differences, advantages, disadvantages.&lt;/p&gt;

&lt;h2&gt;
  
  
  LLM vs NLP Introduction
&lt;/h2&gt;

&lt;p&gt;In recent years, advancements in artificial intelligence (AI) have led to significant progress in the field of natural language processing (NLP) and the rise of large language models (LLMs). While these terms are often used interchangeably, they have distinct differences in functionality, scope, and applications. This article provides a comprehensive comparison of LLMs vs NLP, exploring their differences, similarities, and use cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is NLP (Natural Language Processing)?
&lt;/h2&gt;

&lt;p&gt;NLP is a branch of AI focused on enabling computers to understand, interpret, and generate human language. It involves various techniques, including machine learning, deep learning, linguistic rules, and statistical methods to process and analyze text or speech data.&lt;/p&gt;

&lt;h3&gt;
  
  
  Core Components of NLP:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Tokenization&lt;/strong&gt; – Breaking text into words or subwords.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Part-of-Speech (POS) Tagging&lt;/strong&gt; – Identifying grammatical categories.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Named Entity Recognition (NER)&lt;/strong&gt; – Detecting entities like names, places, and dates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sentiment Analysis&lt;/strong&gt; – Determining the emotional tone of a text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text Classification&lt;/strong&gt; – Categorizing text into predefined groups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Machine Translation&lt;/strong&gt; – Converting text from one language to another.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What is an LLM (Large Language Model)?
&lt;/h2&gt;

&lt;p&gt;An LLM is a type of AI model designed to process and generate human-like text. These models are built using deep learning techniques, primarily transformers, and are trained on vast datasets.&lt;/p&gt;

&lt;h3&gt;
  
  
  Features of LLMs:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pretrained on Large Datasets&lt;/strong&gt; – LLMs learn from massive text corpora before fine-tuning for specific tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contextual Understanding&lt;/strong&gt; – Unlike traditional NLP models, LLMs consider extensive context for better coherence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generative Capabilities&lt;/strong&gt; – They can create human-like text, answer questions, and even write code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-shot and Few-shot Learning&lt;/strong&gt; – LLMs can perform tasks with minimal training data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal Integration&lt;/strong&gt; – Some advanced LLMs support text, image, and audio processing.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Key Differences Between LLM and NLP
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;NLP&lt;/th&gt;
&lt;th&gt;LLM&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Definition&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A field of AI focused on processing human language.&lt;/td&gt;
&lt;td&gt;A type of AI model designed to generate and understand language at scale.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Scope&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Includes a broad range of techniques and methods.&lt;/td&gt;
&lt;td&gt;A subset of NLP using deep learning-based models.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Data Processing&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Uses rule-based, statistical, and machine learning approaches.&lt;/td&gt;
&lt;td&gt;Uses massive datasets and neural networks.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Training&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Can be task-specific or general-purpose.&lt;/td&gt;
&lt;td&gt;Typically pre-trained on large corpora and fine-tuned.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SpaCy, NLTK, BERT, TF-IDF&lt;/td&gt;
&lt;td&gt;GPT-4, LLaMA, Claude, Gemini&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Usage&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Sentiment analysis, machine translation, chatbots&lt;/td&gt;
&lt;td&gt;Conversational AI, content generation, reasoning tasks&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  LLM vs NLP Use Cases and Applications
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;When to Use NLP?&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Text Preprocessing:&lt;/strong&gt; Cleaning and structuring data for machine learning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Information Retrieval:&lt;/strong&gt; Search engines and document indexing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spam Detection:&lt;/strong&gt; Filtering unwanted messages.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice Assistants:&lt;/strong&gt; Speech-to-text and text-to-speech applications.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;When to Use LLMs?&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Content Creation:&lt;/strong&gt; Writing articles, emails, and social media posts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chatbots and Virtual Assistants:&lt;/strong&gt; AI-powered customer service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code Generation:&lt;/strong&gt; Writing and debugging code using AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Analysis:&lt;/strong&gt; Summarizing and extracting insights from large text datasets.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  LLM vs NLP: Which is Better?
&lt;/h2&gt;

&lt;p&gt;When comparing &lt;strong&gt;LLM vs NLP which is better&lt;/strong&gt;, the answer depends on the use case. Traditional NLP techniques are still valuable for structured tasks like sentiment analysis, while LLMs excel at open-ended language generation. Businesses looking for advanced conversational AI or &lt;strong&gt;how do large language models work&lt;/strong&gt; should consider LLMs. However, NLP remains essential for practical applications that require rule-based processing and computational efficiency.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future of LLMs and NLP
&lt;/h2&gt;

&lt;p&gt;As AI research progresses, NLP and LLMs will continue evolving. Some anticipated trends include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hybrid Models:&lt;/strong&gt; Combining rule-based NLP with deep learning for better accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Personalized AI:&lt;/strong&gt; Models tailored to individual users for improved responses.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ethical AI Development:&lt;/strong&gt; Addressing biases and making AI more transparent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal AI:&lt;/strong&gt; Integrating text, images, and voice for seamless interactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  LLM vs NLP: The Final Verdict
&lt;/h2&gt;

&lt;p&gt;While NLP and LLMs are interconnected, they serve different purposes in AI-driven language processing. NLP encompasses a broader field with various methods, whereas LLMs represent a specialized subset with advanced deep-learning capabilities. Understanding their differences and applications will help businesses and developers choose the right technology for their needs.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>nlp</category>
      <category>llmvsnlp</category>
    </item>
    <item>
      <title>Best Open Source LLM</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Fri, 14 Mar 2025 07:47:29 +0000</pubDate>
      <link>https://dev.to/mehmetakar/best-open-source-llm-3ig8</link>
      <guid>https://dev.to/mehmetakar/best-open-source-llm-3ig8</guid>
      <description>&lt;p&gt;I want to mention some best open source llm in 2025.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best Open Source LLM: Introduction
&lt;/h2&gt;

&lt;p&gt;Open-source Large Language Models (LLMs) are becoming increasingly powerful, offering flexible and cost-effective alternatives to proprietary models. These models enable developers, researchers, and enterprises to integrate AI capabilities into their applications without relying on closed-source platforms. This article provides an overview of the best open-source LLMs in 2025, including their capabilities, use cases, licensing, and performance comparisons.&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Top Open-Source LLMs of 2025&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. LLaMA 3.1&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; Meta AI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; July 23, 2024&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 405B, 70B, 8B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; General text generation, multilingual processing, code generation, long-form content, enterprise AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; Llama Community License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; LLaMA 3.1 is Meta’s latest high-performance model, designed for large-scale enterprise applications and advanced AI research.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;2. DeepSeek-R1&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; DeepSeek&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; January 2025&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 671B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; General-purpose AI, scalable applications, chatbots, education, data analysis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; DeepSeek License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; DeepSeek-R1 is one of the largest open-source LLMs, optimized for efficiency and adaptability across various industries.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;3. Qwen 2.5 72B&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; Alibaba Cloud&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; September 19, 2024&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 72B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; Multilingual and multimodal tasks, enterprise AI, international team collaboration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; Qwen License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; This model supports multiple languages and image-text interactions, making it ideal for global AI applications.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;4. Mistral 7B &amp;amp; Mistral Large 2&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; Mistral AI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Dates:&lt;/strong&gt; Mistral 7B (2023), Mistral Large 2 (July 2024)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Sizes:&lt;/strong&gt; 7B, 123B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; Edge AI, personal assistants, scalable AI, research and development.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; Apache 2.0, Mistral Research License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; Mistral 7B is lightweight for on-device AI, while Mistral Large 2 is optimized for enterprise-scale processing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;5. Falcon 180B&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; Technology Innovation Institute (TII)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; September 2024&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 180B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; Financial analysis, legal AI, healthcare applications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; TII Falcon License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; Falcon 180B is one of the most advanced open-source LLMs for deep reasoning and high-performance AI tasks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;6. DeepSeek-MoE 16B&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; DeepSeek&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; January 9, 2024&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 16B (2.7B activated per token)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; Domain-specific AI, efficient training, custom AI solutions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; DeepSeek License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; A Mixture of Experts (MoE) model that reduces computational costs while maintaining high adaptability.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;7. PaLM 2&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; Google&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; May 2023&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 340B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; Multimodal AI, translation, advanced reasoning, research.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; Gemma License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; PaLM 2 is designed for cross-modal tasks, including text, image, and audio understanding.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;8. Grok-1&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; xAI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; November 2023&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 314B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; Creative applications, humor, personalized AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; Open-source&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; Grok-1 specializes in generating engaging and humorous content for entertainment industries.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;9. Gemma 2&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; Google&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; 2025&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 2B, 9B, 27B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; General text generation, question answering, summarization, code generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; Gemma License&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; Gemma 2 models are lightweight yet powerful, making them ideal for both research and commercial applications.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;10. Yi&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Developer:&lt;/strong&gt; 01.AI&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Release Date:&lt;/strong&gt; 2025&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter Size:&lt;/strong&gt; 6B, 9B, 34B&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use Cases:&lt;/strong&gt; Bilingual AI, code generation, mathematical reasoning.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; Apache 2.0&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Highlights:&lt;/strong&gt; Yi models are optimized for high-performance bilingual AI and code-related tasks.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Performance &amp;amp; Benchmark Comparisons&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Processing Speed:&lt;/strong&gt; DeepSeek-R1 and Falcon 180B lead in speed for large-scale tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory Efficiency:&lt;/strong&gt; DeepSeek-MoE 16B and Mistral 7B are optimized for resource-constrained environments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multimodal Abilities:&lt;/strong&gt; Qwen 2.5 and PaLM 2 excel in text-image interactions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Creative AI:&lt;/strong&gt; Grok-1 is the best performer in creative and entertainment-focused applications.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enterprise Use:&lt;/strong&gt; LLaMA 3.1 (405B) and DeepSeek-R1 (671B) are top-tier choices for high-performance AI deployment.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Choosing the best open-source LLM depends on specific needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;For enterprise-scale AI:&lt;/strong&gt; LLaMA 3.1, DeepSeek-R1, and Falcon 180B.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For edge computing and lightweight AI:&lt;/strong&gt; Mistral 7B and DeepSeek-MoE 16B.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For multimodal tasks:&lt;/strong&gt; Qwen 2.5 and PaLM 2.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;For creative and personalized AI:&lt;/strong&gt; Grok-1.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These open-source LLMs provide developers with a broad selection of tools for research, business applications, and personal projects, ensuring innovation continues in the AI ecosystem.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>bestopensourcellm</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Postgresql vs. MongoDB</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Fri, 14 Mar 2025 07:44:20 +0000</pubDate>
      <link>https://dev.to/mehmetakar/postgresql-vs-mongodb-a0a</link>
      <guid>https://dev.to/mehmetakar/postgresql-vs-mongodb-a0a</guid>
      <description>&lt;p&gt;PostgreSQL vs. MongoDB is the one of the most wondered comparisons in the database world. Let me compare them in a concise way.&lt;/p&gt;

&lt;h2&gt;
  
  
  PostgreSQL vs. MongoDB: A Concise Comparison
&lt;/h2&gt;

&lt;p&gt;PostgreSQL and MongoDB are two of the most popular database management systems. PostgreSQL is an open-source relational database, while MongoDB is a NoSQL document-oriented database. Both have their unique strengths, and choosing between them depends on various factors such as data structure, scalability needs, and performance requirements. This article will compare them based on installation, benchmarks, pricing, and key performance metrics.&lt;/p&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Installation Tutorials&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Installing PostgreSQL on Ubuntu&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Update the Package List:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install PostgreSQL:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;postgresql postgresql-contrib
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Verify Installation:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   psql &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Installing MongoDB on Ubuntu&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Import the Public Key:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   wget &lt;span class="nt"&gt;-qO&lt;/span&gt; - https://www.mongodb.org/static/pgp/server-5.0.asc | &lt;span class="nb"&gt;sudo &lt;/span&gt;apt-key add -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a List File for MongoDB:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse"&lt;/span&gt; | &lt;span class="nb"&gt;sudo tee&lt;/span&gt; /etc/apt/sources.list.d/mongodb-org-5.0.list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Update the Package List:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Install MongoDB:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-y&lt;/span&gt; mongodb-org
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Start and Enable MongoDB:&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl start mongod
   &lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl &lt;span class="nb"&gt;enable &lt;/span&gt;mongod
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  &lt;strong&gt;PostgreSQL vs. MongoDB: Performance Benchmarks&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Transaction Performance&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;According to Airbyte:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PostgreSQL processed over &lt;strong&gt;20,000 transactions per second&lt;/strong&gt;, whereas MongoDB handled &lt;strong&gt;fewer than 2,000 transactions per second&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;OLTP Workloads&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;PostgreSQL was found to be &lt;strong&gt;2.7 to 3.2 times faster&lt;/strong&gt; in in-memory tests.&lt;/li&gt;
&lt;li&gt;With larger datasets (2TB), PostgreSQL outperformed MongoDB by &lt;strong&gt;25 to 40 times&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;OLAP Workloads&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;PostgreSQL performed &lt;strong&gt;35% to 53% faster&lt;/strong&gt; than MongoDB in JSON-based analytical queries.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;PostgreSQL vs. MongoDB: Pricing Models&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;PostgreSQL&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;PostgreSQL is &lt;strong&gt;free&lt;/strong&gt; and open-source. &lt;/li&gt;
&lt;li&gt;Managed PostgreSQL services start at &lt;strong&gt;$15/month&lt;/strong&gt; on platforms like DigitalOcean.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;MongoDB&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;MongoDB provides a &lt;strong&gt;free Community Edition&lt;/strong&gt; and a paid &lt;strong&gt;Enterprise Edition&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Managed MongoDB Atlas services start at &lt;strong&gt;$15.23/month&lt;/strong&gt; on DigitalOcean.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;PostgreSQL vs. MongoDB: Other Performance Metrics&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Scalability&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MongoDB&lt;/strong&gt; supports &lt;strong&gt;horizontal scaling&lt;/strong&gt; with built-in &lt;strong&gt;sharding&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL&lt;/strong&gt; primarily scales &lt;strong&gt;vertically&lt;/strong&gt;, though sharding can be manually implemented.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Data Modeling&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MongoDB&lt;/strong&gt; is schema-less and flexible for unstructured data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL&lt;/strong&gt; follows a strict schema model for structured data integrity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Query Language&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MongoDB&lt;/strong&gt; uses &lt;strong&gt;MongoDB Query Language (MQL)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL&lt;/strong&gt; uses &lt;strong&gt;SQL&lt;/strong&gt;, a widely adopted query language.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;PostgreSQL vs. MongoDB: Conclusion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Both PostgreSQL and MongoDB are powerful databases with different strengths. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Choose PostgreSQL&lt;/strong&gt; if you require &lt;strong&gt;ACID compliance, complex transactions, and structured data&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose MongoDB&lt;/strong&gt; if you need &lt;strong&gt;high scalability, flexibility, and quick development&lt;/strong&gt; for unstructured data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Selecting the right database depends on your specific use case, workload requirements, and budget.&lt;/p&gt;

</description>
      <category>postgres</category>
      <category>mongodb</category>
      <category>database</category>
      <category>postgresqlvsmongodb</category>
    </item>
    <item>
      <title>RAG Vector Database - Use Cases &amp; Tutorial</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Thu, 13 Mar 2025 11:05:59 +0000</pubDate>
      <link>https://dev.to/mehmetakar/rag-vector-database-2lb2</link>
      <guid>https://dev.to/mehmetakar/rag-vector-database-2lb2</guid>
      <description>&lt;p&gt;RAG Vector Database is one of the first main terms RAG geeks are looking for. Let me dive in!&lt;/p&gt;

&lt;h2&gt;
  
  
  RAG Vector Database: A Comprehensive Guide: Table of Contents
&lt;/h2&gt;

&lt;h6&gt;
  
  
  - RAG Vector Database: Introduction
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - What is RAG?
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - Vector Databases Explained
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - What is RAG Vector Database?
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - Popular Vector Databases
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - Implementing RAG with Vector Databases
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - Tutorials and Examples
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - Best Practices
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - Future Trends
&lt;/h6&gt;

&lt;h6&gt;
  
  
  - RAG Vector Database: Conclusion
&lt;/h6&gt;

&lt;h2&gt;
  
  
  RAG Vector Database: Introduction
&lt;/h2&gt;

&lt;p&gt;Retrieval Augmented Generation (RAG) with vector databases has revolutionized how AI systems access and utilize information. This comprehensive guide explores the technology, implementation, and best practices for building powerful RAG systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is RAG?
&lt;/h2&gt;

&lt;p&gt;RAG (Retrieval Augmented Generation) is an AI architecture that combines:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Information retrieval from a knowledge base&lt;/li&gt;
&lt;li&gt;Large Language Model (LLM) generation capabilities&lt;/li&gt;
&lt;li&gt;Vector embeddings for semantic search&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Benefits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Improved accuracy with up-to-date information&lt;/li&gt;
&lt;li&gt;Reduced hallucinations&lt;/li&gt;
&lt;li&gt;Better context awareness&lt;/li&gt;
&lt;li&gt;Verifiable responses&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Vector Databases Explained
&lt;/h2&gt;

&lt;p&gt;Vector databases are specialized systems that store and retrieve high-dimensional vectors representing data. Key features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Vector Embeddings&lt;/strong&gt;: Mathematical representations of data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Similarity Search&lt;/strong&gt;: Fast nearest neighbor search&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scalability&lt;/strong&gt;: Efficient handling of millions of vectors&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Index Types&lt;/strong&gt;: HNSW, IVF, etc.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is RAG Vector Database?
&lt;/h2&gt;

&lt;p&gt;A &lt;strong&gt;RAG (Retrieval-Augmented Generation) vector database&lt;/strong&gt; is a specialized type of database used in AI applications, particularly in &lt;strong&gt;Large Language Models (LLMs)&lt;/strong&gt;, to enhance their knowledge retrieval and response generation capabilities. It combines &lt;strong&gt;vector databases&lt;/strong&gt; with &lt;strong&gt;retrieval-augmented generation (RAG)&lt;/strong&gt; techniques to improve the quality, accuracy, and relevance of responses.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;How It Works&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Data Storage in Vector Format:&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Documents, text, and other information are converted into &lt;strong&gt;vector embeddings&lt;/strong&gt; using &lt;strong&gt;embedding models&lt;/strong&gt; (e.g., OpenAI's Ada, Cohere, Sentence Transformers).&lt;/li&gt;
&lt;li&gt;These embeddings capture &lt;strong&gt;semantic meaning&lt;/strong&gt; and are stored in a &lt;strong&gt;vector database&lt;/strong&gt; like &lt;strong&gt;Pinecone, Weaviate, Milvus, Qdrant, or PostgreSQL with pgvector&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Retrieval (R in RAG):&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When a user inputs a query, the system &lt;strong&gt;converts the query into a vector&lt;/strong&gt; and searches for the most &lt;strong&gt;similar embeddings&lt;/strong&gt; in the database using &lt;strong&gt;approximate nearest neighbors (ANN) search&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Augmenting the LLM (A in RAG):&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The retrieved text is fed into a &lt;strong&gt;language model (e.g., GPT-4, LLaMA, Claude)&lt;/strong&gt; as &lt;strong&gt;context&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The LLM &lt;strong&gt;generates a response&lt;/strong&gt; by leveraging both the retrieved data and its own pre-trained knowledge.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Final Response Generation (G in RAG):&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The model &lt;strong&gt;integrates the retrieved information&lt;/strong&gt; and produces a more &lt;strong&gt;context-aware and accurate response&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Benefits of RAG with Vector Databases&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Better Accuracy&lt;/strong&gt;: Helps reduce hallucinations by grounding responses in real data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Efficient Information Retrieval&lt;/strong&gt;: Uses vector-based similarity instead of keyword-based search.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scalability&lt;/strong&gt;: Can handle large-scale unstructured data (documents, PDFs, research papers, etc.).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customization&lt;/strong&gt;: Allows businesses to fine-tune AI models with their proprietary data without retraining LLMs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Use Cases&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chatbots &amp;amp; Virtual Assistants&lt;/strong&gt;: Providing better responses by integrating domain-specific knowledge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enterprise Search&lt;/strong&gt;: Improving search efficiency in company databases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Legal &amp;amp; Financial AI&lt;/strong&gt;: Summarizing documents with high precision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Medical AI&lt;/strong&gt;: Ensuring responses are based on verified medical sources.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;E-commerce &amp;amp; Recommendations&lt;/strong&gt;: Enhancing product search and recommendations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Popular RAG Vector Databases
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Pinecone
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;pinecone&lt;/span&gt;

&lt;span class="n"&gt;pinecone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your-api-key&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pinecone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Index&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;example-index&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Insert vectors
&lt;/span&gt;&lt;span class="n"&gt;index&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;upsert&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;id1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.3&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;metadata&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;example&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}),&lt;/span&gt;
&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Weaviate
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;weaviate&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;weaviate&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost:8080&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Create schema
&lt;/span&gt;&lt;span class="n"&gt;class_obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;class&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Document&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;vectorizer&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;text2vec-transformers&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_class&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;class_obj&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Milvus
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;pymilvus&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Collection&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;connections&lt;/span&gt;

&lt;span class="n"&gt;connections&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;collection&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Collection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;documents&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Search vectors
&lt;/span&gt;&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;query_vectors&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;embeddings&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;param&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;metric_type&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;L2&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Chroma
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;chromadb&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;chromadb&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;collection&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create_collection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;documents&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Add documents
&lt;/span&gt;&lt;span class="n"&gt;collection&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;documents&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;embeddings&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="mf"&gt;0.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.3&lt;/span&gt;&lt;span class="p"&gt;]],&lt;/span&gt;
    &lt;span class="n"&gt;ids&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;id1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Implementing RAG with Vector Databases
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Basic RAG Pipeline
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain.embeddings&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;OpenAIEmbeddings&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain.vectorstores&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Chroma&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain.llms&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;OpenAI&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain.chains&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;RetrievalQA&lt;/span&gt;

&lt;span class="c1"&gt;# Initialize components
&lt;/span&gt;&lt;span class="n"&gt;embeddings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAIEmbeddings&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;vectorstore&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Chroma&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;embedding_function&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;embeddings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;llm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# Create RAG chain
&lt;/span&gt;&lt;span class="n"&gt;qa_chain&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;RetrievalQA&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_chain_type&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;chain_type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;stuff&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;retriever&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;vectorstore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;as_retriever&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Tutorials and Examples
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Basic RAG Implementation
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# 1. Prepare documents
&lt;/span&gt;&lt;span class="n"&gt;documents&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Document 1 content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Document 2 content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# 2. Create embeddings
&lt;/span&gt;&lt;span class="n"&gt;embeddings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAIEmbeddings&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;doc_embeddings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;embeddings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;embed_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 3. Store in vector database
&lt;/span&gt;&lt;span class="n"&gt;vectorstore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 4. Query
&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;qa_chain&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Your question here&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Advanced RAG with Hybrid Search
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Combine keyword and semantic search
&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain.retrievers&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;BM25Retriever&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;langchain.retrievers&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;EnsembleRetriever&lt;/span&gt;

&lt;span class="c1"&gt;# Create retrievers
&lt;/span&gt;&lt;span class="n"&gt;bm25_retriever&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;BM25Retriever&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_documents&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;documents&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;vector_retriever&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;vectorstore&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;as_retriever&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# Combine retrievers
&lt;/span&gt;&lt;span class="n"&gt;ensemble_retriever&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;EnsembleRetriever&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;retrievers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;bm25_retriever&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;vector_retriever&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
    &lt;span class="n"&gt;weights&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Best Practices
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Data Preparation&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clean and preprocess text&lt;/li&gt;
&lt;li&gt;Split documents appropriately&lt;/li&gt;
&lt;li&gt;Remove duplicates&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Vector Database Selection&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Consider scale requirements&lt;/li&gt;
&lt;li&gt;Evaluate hosting options&lt;/li&gt;
&lt;li&gt;Compare performance metrics&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Optimization&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use appropriate chunk sizes&lt;/li&gt;
&lt;li&gt;Implement caching&lt;/li&gt;
&lt;li&gt;Monitor and tune performance&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Security&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Implement access controls&lt;/li&gt;
&lt;li&gt;Encrypt sensitive data&lt;/li&gt;
&lt;li&gt;Regular security audits&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Future Trends
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Multi-modal RAG systems&lt;/li&gt;
&lt;li&gt;Improved context compression&lt;/li&gt;
&lt;li&gt;Hybrid search techniques&lt;/li&gt;
&lt;li&gt;Real-time updating capabilities&lt;/li&gt;
&lt;li&gt;Enhanced privacy features&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  RAG Vector Database: Conclusion
&lt;/h2&gt;

&lt;p&gt;RAG vector databases represent a powerful approach to enhancing AI systems with accurate, retrievable knowledge. By following this guide and implementing best practices, you can build robust RAG systems for various applications.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Important Note: I update this article regularly to reflect the latest developments in RAG and vector database technologies.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>vectordatabase</category>
      <category>ragvectordatabase</category>
      <category>ai</category>
    </item>
    <item>
      <title>Manus AI Invitation Code</title>
      <dc:creator>mehmet akar</dc:creator>
      <pubDate>Thu, 13 Mar 2025 09:20:03 +0000</pubDate>
      <link>https://dev.to/mehmetakar/manus-ai-invitation-code-229n</link>
      <guid>https://dev.to/mehmetakar/manus-ai-invitation-code-229n</guid>
      <description>&lt;p&gt;Manus AI Invitation Code is asked heavily by the AI development geeks, nowadays. As you realize, Manus AI does not accept direct sign-up. It accepts users via giving invitation code after filling a application form.&lt;/p&gt;

&lt;p&gt;I'll guide you through the process of applying for getting Manus AI invitation code process. &lt;/p&gt;

&lt;h2&gt;
  
  
  Manus AI Invitation Code: How to get it?
&lt;/h2&gt;

&lt;p&gt;There are 4 steps for applying for Manus AI Invitation Code.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 1: Click on "Get Started"&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;First, you should visit manus ai home page. As you see below, you should click on the upper-right "get started" button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvil9erupk0naqllglhzo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvil9erupk0naqllglhzo.png" alt="Manus AI Invitation Code Step 1" width="800" height="695"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 2: Click on "Apply for access"&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;After clicking on "get started", the code activation popup window opens. You should click on "Apply for access" because you have not get Manus AI invitation code yet. See below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0uoq244ttwc9nrhusgzt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0uoq244ttwc9nrhusgzt.png" alt="Manus AI Invitation Code Step 2" width="370" height="605"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 3: Filling Manus AI Invitation Code Application Form&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;After clicking on "Apply for access", Manus AI Invitation Code application form page opens. In this page, Manus AI want to know your plans for using Menus AI. See Below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgiy2635xgg46huxii5el.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgiy2635xgg46huxii5el.png" alt="Manus AI Invitation Code Step 3" width="606" height="610"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this stage, we should be careful. Manus AI has some use cases as they have stated in their website. We can mention one of these use cases in that application form.&lt;/p&gt;

&lt;p&gt;If you don't know why you use Manus AI, I created an example with the use cases provided by Manus AI. &lt;/p&gt;

&lt;p&gt;Be Careful: You should keep the paragraph of one of the use cases and remove others as you see below:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Manus AI Invitation Code Application Form Content Sample:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Subject:&lt;/strong&gt; Invitation Code Request  &lt;/p&gt;

&lt;p&gt;Dear Manus Team,  &lt;/p&gt;

&lt;p&gt;Hello!  &lt;/p&gt;

&lt;p&gt;My name is [Your Name], and I am excited about the potential of integrating Manus AI into my work and daily life. Given the wide-ranging capabilities of Manus, I see immense value in leveraging its AI-driven solutions for my specific needs.  &lt;/p&gt;

&lt;p&gt;One of my primary use cases for Manus involves trip planning and travel research. I have an upcoming trip to Japan in April and would love to use Manus to generate a personalized itinerary, complete with travel insights, cultural recommendations, and an optimized schedule to enhance my experience. A custom travel handbook tailored to my interests would greatly streamline my planning process. &lt;strong&gt;(Keep one, remove others)&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;Additionally, I am deeply involved in financial market analysis, particularly focusing on Tesla stock performance. Manus’s ability to provide in-depth, visually interactive dashboards with real-time financial insights would be instrumental in making informed investment decisions. &lt;strong&gt;(Keep one, remove others)&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;Another area where I see Manus adding value is in education and content creation. As someone passionate about teaching, I would like to explore how Manus can generate engaging, video-based educational content to explain complex topics like the momentum theorem in a way that is easy to grasp for middle school students. &lt;strong&gt;(Keep one, remove others)&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;Moreover, I frequently compare and assess insurance policies and financial products. I believe Manus can streamline this process by generating structured comparison tables, helping me analyze key differences between policies and make well-informed choices. &lt;strong&gt;(Keep one, remove others)&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;On a professional level, I am actively involved in B2B supplier sourcing and industry research, particularly in finding high-quality suppliers and evaluating AI-driven solutions for various industries. With Manus’s expertise in compiling comprehensive research reports and conducting competitive analysis, I am eager to leverage its capabilities to enhance my market insights. &lt;strong&gt;(Keep one, remove others)&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Lastly, I am interested in Manus’s ability to optimize e-commerce operations. As someone who manages an online store, I see Manus as an invaluable tool for analyzing sales data, generating performance reports, and identifying actionable strategies to boost conversion rates. &lt;strong&gt;(Keep one, remove others)&lt;/strong&gt;  &lt;/p&gt;

&lt;p&gt;I have high expectations for Manus and am eager to explore its AI-driven insights across multiple domains. I am confident that its powerful data-processing capabilities will significantly enhance my decision-making and efficiency.  &lt;/p&gt;

&lt;p&gt;Thank you for considering my application. If I am fortunate enough to receive an invitation code, I will fully utilize Manus to optimize my workflows, research, and personal projects. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Applicant:&lt;/strong&gt; [Your Name]&lt;br&gt;&lt;br&gt;
[Application Date]&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Finishing Apply Process
&lt;/h3&gt;

&lt;p&gt;As you see below, "Thanks for your interest for Manus" page opens.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fowmr8d99aq0cqstfvobu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fowmr8d99aq0cqstfvobu.png" alt="Manus AI Invitation Code Step 4" width="677" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It says it will return to your email. &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Taking and Submitting Manus AI Invitation Code.
&lt;/h3&gt;

&lt;p&gt;After finishing the applying process, you will get an email from Manus AI and see an invitation code if you are accepted by Manus AI. &lt;/p&gt;

&lt;p&gt;After taking Manus AI Invitation Code, you should again click on get started button on home page and submit the code in the code activation page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk20mst2pexpmqejmr88u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk20mst2pexpmqejmr88u.png" alt="Image description" width="349" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it! You can now experience Manus AI!&lt;/p&gt;

&lt;p&gt;Thanks for reading. See you on more tutorials!&lt;/p&gt;

</description>
      <category>manusai</category>
      <category>manus</category>
      <category>ai</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
