<?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: Fabio Nonato</title>
    <description>The latest articles on DEV Community by Fabio Nonato (@nonatofabio_28).</description>
    <link>https://dev.to/nonatofabio_28</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%2F694694%2Fdc798bef-dc56-46a4-aa60-dccf7b7d1f8f.jpeg</url>
      <title>DEV Community: Fabio Nonato</title>
      <link>https://dev.to/nonatofabio_28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nonatofabio_28"/>
    <language>en</language>
    <item>
      <title>AI Generated pixel art needs a build system, not better prompts</title>
      <dc:creator>Fabio Nonato</dc:creator>
      <pubDate>Mon, 07 Sep 2026 14:37:48 +0000</pubDate>
      <link>https://dev.to/nonatofabio_28/ai-generated-pixel-art-needs-a-build-system-not-better-prompts-280c</link>
      <guid>https://dev.to/nonatofabio_28/ai-generated-pixel-art-needs-a-build-system-not-better-prompts-280c</guid>
      <description>&lt;p&gt;I rebuilt my tiny homage to Warhammer 40k this week. The original, Hive City Rampage, was a Python/Pygame (monstrocity), top-down grimdark shooter that ran but was a prototype. Now we have a sequel, Ashgate Siege, is Godot 4: gothic isometric, two missions, built for  Mac and Android.&lt;/p&gt;

&lt;p&gt;I have a confession though, the 95k lines of GDScript, 8 commits, roughly five hours was written by an AI agent under my direction. The sprites are generated too. I'm disclaiming that up front because the interesting part is what came out of it.&lt;/p&gt;

&lt;h3&gt;
  
  
  The easy part was the code
&lt;/h3&gt;

&lt;p&gt;This is the simple finding. An engine port is exactly the shape of coding my agents were very good at: the target is well documented, the semantics known, and correctness is checkable by running the thing. Godot 4 plus GDScript is heavily represented in training data for any model. Zero agent struggle.&lt;/p&gt;

&lt;h3&gt;
  
  
  The hard part was four pictures of the same orc
&lt;/h3&gt;

&lt;p&gt;Here's the hill I'm whiling to die on: &lt;strong&gt;for AI-assisted games, 2D sprite games are harder than 3D.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That sounds backwards, so: in 3D, the engine guarantees coherence. One mesh, one material, one light rig, and every frame of animation is consistent because it's the same object being transformed. The renderer is doing the work.&lt;/p&gt;

&lt;p&gt;In sprite based games there is no shared object. Each sprite is an independent generated map of pixels. So:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Frame 2 of a walk cycle can be a different character than frame 1.&lt;/li&gt;
&lt;li&gt;The light source can move between sprites in the same scene.&lt;/li&gt;
&lt;li&gt;Proportions drift. Your massive size boss shrinks.&lt;/li&gt;
&lt;li&gt;Limbs get cropped at cell edges.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of that is caught by anything automatically. It just ships, and the game looks odd, like a badly executed collage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prompts as interface specs
&lt;/h3&gt;

&lt;p&gt;The fix was to stop treating generation as commissioning art and start treating it as calling an API with a strict schema. Every prompt pins the geometry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Production game sprite sheet: exactly 4 columns x 3 rows, 1536x1024 canvas, equal cells, solid pure magenta #FF00FF background for color-key import. NO text, shadows, smoke, or border. Every figure entirely within its own cell with ample margin; feet centered at same baseline in each row. All figures face screen RIGHT in three-quarter isometric view [...] Four columns are four coherent walking-cycle poses: left foot forward, passing, right foot forward, passing.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each sentence has to do some work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Magenta &lt;code&gt;#FF00FF&lt;/code&gt;, not transparency.&lt;/strong&gt; Alpha comes back unreliable. A color key is deterministic to strip.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explicit grid and canvas.&lt;/strong&gt; The importer crops on fixed coordinates. If the grid drifts, every sprite is off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"feet centered at same baseline in each row."&lt;/strong&gt; Without it the character bobs while walking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Named poses.&lt;/strong&gt; "Walking animation" returns four unrelated drawings. Naming the four phases is what makes them a cycle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Negative constraints.&lt;/strong&gt; "No text, shadows, smoke, or border" because models add decoration that breaks the silhouette.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The importer is a compiler, and tests are CI
&lt;/h3&gt;

&lt;p&gt;If the prompt is a spec, something has to enforce it. Generated atlases go into &lt;code&gt;art/&lt;/code&gt;, an importer crops and scales them into runtime assets, and a native test suite checks the result: 2,972 reference and combat assertions, 17,112 seam combinations, plus a 600-frame combat simulation. &lt;code&gt;make test&lt;/code&gt; runs it.&lt;/p&gt;

&lt;p&gt;The seam check is the one most important. It takes the belt pixels from the leg sprite, offsets them by the waist socket, and counts how many land on opaque torso pixels. Under 32 and the pose fails. Every view, every clip, every frame, every facing, every gait: 17,112 combinations.&lt;/p&gt;

&lt;p&gt;That catches the failure mode that makes sprites look like a collage, which is a regenerated part that no longer meets the part next to it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Then stress testing the mechanism
&lt;/h3&gt;

&lt;p&gt;It is cheap to claim your tests work. So, I reimplemented the audit standalone, outside the engine, then fed it deliberately corrupted atlases to find out what it actually catches.&lt;/p&gt;

&lt;p&gt;Baseline reproduces: 17,112 combinations, zero failures.&lt;/p&gt;

&lt;p&gt;Then the damage:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Character 4% smaller → &lt;strong&gt;FAIL, 352 bad combinations&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Character 8% smaller → &lt;strong&gt;FAIL, 6,728&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Alpha edge eroded 2px → &lt;strong&gt;FAIL, 3,036&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Torso shifted 6px down in the cell → &lt;strong&gt;PASS&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sweeping it: scale drift gets caught at 4% and up, and slips through at 3%. Vertical translation is never caught. I pushed it to 14px and it still passed, because shifting the torso down actually &lt;em&gt;raises&lt;/em&gt; the minimum overlap from 59 to 249. The check gets happier while the sprite gets worse.&lt;/p&gt;

&lt;p&gt;The seam audit measures whether two parts still meet. It says nothing about whether the pair sits correctly in the cell, because the waist socket moves with the torso. Catching that needs a different check, anchored to the cell rather than to the neighbouring sprite.&lt;/p&gt;

&lt;p&gt;I would rather know the shape of the hole in the tests than believe the suite covers everything. The standalone auditor is &lt;code&gt;tools/seam_audit.py&lt;/code&gt; in the repo. Plain Python, PIL and numpy, no Godot required, so you can run the numbers above yourself.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I'd tell you to steal from my repo
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Color-key over alpha. Deterministic beats convenient.&lt;/li&gt;
&lt;li&gt;Pin the grid numerically in the prompt and crop on those exact numbers.&lt;/li&gt;
&lt;li&gt;Name every animation phase. Never say "walk cycle" and hope.&lt;/li&gt;
&lt;li&gt;Baseline your silhouettes and diff them. This is the whole safety net.&lt;/li&gt;
&lt;li&gt;Keep source atlases and prompts in the repo. Regeneration is a build step, so its inputs are source code.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Try it
&lt;/h3&gt;

&lt;p&gt;Mac and Android builds are on GitHub Releases. They're previews: macOS is ad-hoc signed and not notarized, Android uses a debug key, so both will warn you. Source builds with &lt;code&gt;make run&lt;/code&gt; if you have Godot 4.3.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/nonatofabio/hive-city-rampage-ii" rel="noopener noreferrer"&gt;https://github.com/nonatofabio/hive-city-rampage-ii&lt;/a&gt;&lt;/p&gt;

</description>
      <category>godot</category>
      <category>gamedev</category>
      <category>ai</category>
      <category>showdev</category>
    </item>
    <item>
      <title>How to give Claude "Long Term Memory" of your local files (No Docker required)</title>
      <dc:creator>Fabio Nonato</dc:creator>
      <pubDate>Wed, 10 Dec 2025 07:29:48 +0000</pubDate>
      <link>https://dev.to/nonatofabio_28/how-to-give-claude-long-term-memory-of-your-local-files-no-docker-required-57o2</link>
      <guid>https://dev.to/nonatofabio_28/how-to-give-claude-long-term-memory-of-your-local-files-no-docker-required-57o2</guid>
      <description>&lt;h3&gt;
  
  
  The Problem: RAG is too hard
&lt;/h3&gt;

&lt;p&gt;I have a folder of 50+ PDFs—technical specs, old logs, and some... &lt;em&gt;interesting&lt;/em&gt; declassified government documents.&lt;/p&gt;

&lt;p&gt;I want to open Claude and ask: &lt;em&gt;"What happened in the 1952 sightings?"&lt;/em&gt; and have it answer using &lt;strong&gt;my&lt;/strong&gt; files.&lt;/p&gt;

&lt;p&gt;The standard advice for this is a nightmare:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Spin up a Docker container (Chroma/Qdrant).&lt;/li&gt;
&lt;li&gt; Write a Python script to parse PDFs (LangChain/LlamaIndex).&lt;/li&gt;
&lt;li&gt; Set up an API server to bridge it to the LLM.&lt;/li&gt;
&lt;/ol&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%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZDg3czZtbHQ4ejF0bTQyZnF4bTFqbTJyNGN0djR6ZGRvbWRsa3BqcyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FAPqEbxBsVlkWSuFpth%2Fgiphy.gif" 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%2Fmedia0.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZDg3czZtbHQ4ejF0bTQyZnF4bTFqbTJyNGN0djR6ZGRvbWRsa3BqcyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FAPqEbxBsVlkWSuFpth%2Fgiphy.gif" width="434" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;People turned "Ctrl+F with semantics" into a distributed systems architecture.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Solution: &lt;code&gt;local-faiss-mcp&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;I got tired of the bloat, so I built &lt;a href="https://github.com/nonatofabio/local_faiss_mcp" rel="noopener noreferrer"&gt;local-faiss-mcp&lt;/a&gt;. It’s a CLI tool that runs 100% locally.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No Docker:&lt;/strong&gt; Just a Python script.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No API Keys:&lt;/strong&gt; Uses local embeddings (&lt;code&gt;all-MiniLM-L6-v2&lt;/code&gt;) and FAISS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MCP Native:&lt;/strong&gt; Connects directly to Claude Desktop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is how to set it up in 5 minutes.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 1: Get some "Cool" Data
&lt;/h3&gt;

&lt;p&gt;To test a RAG system, you need real-world data. Let's use the &lt;strong&gt;ODNI Preliminary Assessment on Unidentified Aerial Phenomena&lt;/strong&gt;. It’s declassified, text-heavy, and full of weird military jargon—perfect for testing semantic search.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Create a folder: &lt;code&gt;mkdir ~/ufo_docs&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt; Download this PDF: &lt;a href="https://www.dni.gov/files/ODNI/documents/assessments/Prelimary-Assessment-UAP-20210625.pdf" rel="noopener noreferrer"&gt;ODNI Preliminary Assessment 2021 (PDF)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;(Optional) Throw in the &lt;a href="https://www.404media.co/content/files/2025/02/simplesabotage.pdf" rel="noopener noreferrer"&gt;CIA Simple Sabotage Manual&lt;/a&gt; just for chaos.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 2: Install the Tool
&lt;/h3&gt;

&lt;p&gt;It’s a standard Python package.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;local-faiss-mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Index the Docs (The Magic Part)
&lt;/h3&gt;

&lt;p&gt;We used to have to write ingestion scripts. Now, we just use the CLI.&lt;/p&gt;

&lt;p&gt;Run this command to recursively index your new UFO folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;local-faiss index &lt;span class="s2"&gt;"~/ufo_docs/**/*.pdf"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You’ll see a progress bar as it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Reads the PDFs (using &lt;code&gt;pypdf&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt; Chunks the text.&lt;/li&gt;
&lt;li&gt; Calculates embeddings on your CPU.&lt;/li&gt;
&lt;li&gt; Saves a &lt;code&gt;.index&lt;/code&gt; file to your disk.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Done. You now have a vector database.&lt;/em&gt;&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%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExa3BwMXJ1OWF3MTNvNGM2bzNlMjI3dHEwZG50azQzZXdwM3FxcTdtciZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F9r75ILTJtiDACKOKoY%2Fgiphy.gif" 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%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExa3BwMXJ1OWF3MTNvNGM2bzNlMjI3dHEwZG50azQzZXdwM3FxcTdtciZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2F9r75ILTJtiDACKOKoY%2Fgiphy.gif" width="275" height="252"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Connect to Claude
&lt;/h3&gt;

&lt;p&gt;Open your Claude Desktop config file:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mac:&lt;/strong&gt; &lt;code&gt;~/Library/Application Support/Claude/claude_desktop_config.json&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; &lt;code&gt;%APPDATA%\Claude\claude_desktop_config.json&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add this block:&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;"local-faiss"&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;"local-faiss-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;"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;"--index-dir"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"~/ufo_docs"&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;Restart Claude. You should see a little "plug" icon indicate two tools are loaded: &lt;code&gt;ingest_document&lt;/code&gt; and &lt;code&gt;query_rag_store&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Or use &lt;code&gt;claude&lt;/code&gt; in the terminal directly.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: Ask Questions
&lt;/h3&gt;

&lt;p&gt;Now for the fun part. Open Claude and ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Using your local faiss knowledge: Does the Pentagon's refusal to answer questions in the UAP Hearing count as 'General Interference with Organizations'?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Claude will:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Call &lt;code&gt;query_rag_store&lt;/code&gt; with your question.&lt;/li&gt;
&lt;li&gt; The CLI will search your FAISS index and return the top N chunks.&lt;/li&gt;
&lt;li&gt; Claude will synthesize the answer with citations.&lt;/li&gt;
&lt;/ol&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%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExa2g1bXFxZjM1OWVidno0M2Rzd25teWF6enRxbG8xdmdxeDh1M25hMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FRxumQ0UcdXLX5ntURY%2Fgiphy.gif" 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%2Fmedia3.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExa2g1bXFxZjM1OWVidno0M2Rzd25teWF6enRxbG8xdmdxeDh1M25hMyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FRxumQ0UcdXLX5ntURY%2Fgiphy.gif" width="480" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Advanced: Enabling "God Mode" (Re-ranking)
&lt;/h3&gt;

&lt;p&gt;If your dataset is huge, standard vector search can sometimes be "fuzzy." You might ask about "Project Mogul" and get results about "Project Grudge."&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;v0.2.0&lt;/strong&gt;, I added &lt;strong&gt;Re-ranking&lt;/strong&gt;. This uses a second, smarter model (CrossEncoder) to double-check the results before giving them to Claude.&lt;/p&gt;

&lt;p&gt;Update your config to enable it:&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="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;"--index-dir"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"~/ufo_docs"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"--rerank"&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;Now the accuracy is much better, running entirely on your laptop.&lt;/p&gt;




&lt;h3&gt;
  
  
  Summary
&lt;/h3&gt;

&lt;p&gt;We don't need Kubernetes to chat with a PDF. We just need a good CLI.&lt;/p&gt;

&lt;p&gt;If you try this out with your own docs (or the UFO files!), let me know how the re-ranking performs for you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔗 Repo:&lt;/strong&gt; &lt;a href="https://github.com/nonatofabio/local_faiss_mcp" rel="noopener noreferrer"&gt;github.com/nonatofabio/local_faiss_mcp&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>ai</category>
      <category>mcp</category>
      <category>rag</category>
    </item>
  </channel>
</rss>
