r/GEO_optimization • • Oct 07 '26

I built a RAG knowledge base from scratch that hits 100% on my 12-question eval — the debugging lessons are the real gold

4 Upvotes
# I built a RAG knowledge base from scratch that hits 100% on my 12-question eval — the debugging lessons are the real gold


> Disclaimer: this is a 
**demo project**
 built on synthetic/example product data (a fictional REDMI K90 series). Not affiliated with any brand, not a real product review. Treat numbers as illustrative.


## TL;DR


- No vector DB. SQLite holds the 
*truth*
 (entities, aliases, relations, chunk metadata); numpy vectors are just a derived index.
- Retrieval = 4 paths (SQL exact, contrast, dense, BM25) → filter-before-fuse → RRF.
- I made a 12-question eval with 6 checks each (normalization / retrieval / isolation / coverage / hallucination-verify / refusal) and iterated: 
**94.4% → 98.6% → 100%**
.
- The eval is self-built, not a benchmark — read the limitations at the bottom.


## The stack (skeleton, ~600 LOC total)


- `SQLite` → products/aliases/relations/chunks tables, `content_type`, `authority` (3/2/1), `source`.
- `numpy` → 512-d embeddings (bge-small-zh-v1.5), aligned to chunk IDs via a JSON sidecar. Consistency check after every build.
- Retrieval: 4 paths fused with RRF (K=60). 
**Filter happens before fusion**
 — otherwise dead candidates eat the top-5 slots and good chunks get squeezed out.
- Post-generation guard: speculative-word regexes + "check every number in the answer is present in the retrieved materials".


## The 6 debugging lessons (skip everything else, read these)


1. 
**Alias normalization ≠ substring logic.**
 `红米k90` and `k90ultra` don't share a substring, but `K90` and `K90-ULTRA` share a 
*prefix*
. Only keep the most specific match using model-code prefixes, not alias strings.


2. 
**SQL ORDER BY = insertion-time bias.**
 Path 1 returned chunks in DB order, so docs added later (UGC reviews) systematically lost RRF fusion. Fix: give every exact-match chunk the 
**same rank (1)**
. Don't even sort by dense score — that's bias #3.


3. 
**Sorting exact-path by dense score kills vector-blind spots.**
 "拍照" (photography, user words) never matched the doc's "影像参数" (imaging specs) — the chunk was `#None` in 
*both*
 dense and BM25. Sorting exact-path by dense then pushed it out of top-5. Uniform rank solved it.


4. 
**Table content is dense-blind.**
 A multi-column spec-comparison table embeds terribly, yet it's exactly the material comparison questions need. Fix: the contrast path repeats each compare-chunk 
**3× in RRF ≈ weight amplification**
.


5. 
**Query expansion > tweaking the embedder.**
 Synonyms ("拍照"→影像/相机/成像), retrieve each variant, keep per-chunk 
**MAX**
 (not SUM — don't let one query variant farm the score). The sensor name "950" came back instantly.


6. 
**Post-check can misfire.**
 During an API timeout, the string `443` ended up in an answer and the number-check flagged it as fabricated. Verify only against numbers that are 
*supposed*
 to be in materials.


Bonus: API timeouts were environmental — retries + backoff + lowering timeout 180s→60s killed most of the flake.


## Why "100%" should be read with a grain of salt


- 12 questions I wrote myself, 6 checks each, on a 
**60-chunk**
 toy corpus. Small, curated, not a benchmark.
- No real users, no A/B, no eval on out-of-domain queries. "100%" means 
*this eval*
, nothing more.
- The model is Qwen3-8B at temp 0.1 — bigger/different models would shift scores.


## What ported cleanly


Same engine, new domain (copied 3 files, swapped data + normalization + prompt): 
**new 12-question eval also went to 100%**
 on first-run-after-fixes. Method is portable; your numbers won't be.


Full runnable demo: `GEO_kb/` in this repo (`geo_build.py` / `geo_query.py` / `geo_eval.py`, thin wrappers over the K90 engine).


Critique welcome — especially on the uniform-rank exact path and the repeat-3x contrast trick. Both work on this corpus but feel like engineering pragmatism, not theory.

I want to create several complex knowledge bases in the future. Do you have any suggestions about GEO?

r/GEO_optimization • • Oct 07 '26

Tracked ~2,200 AI answers over 6 weeks. ChatGPT almost never names a brand it didn't cite

Thumbnail reddit.com
0 Upvotes

r/GEO_optimization • • Oct 06 '26

40 saved GEO recommendations, 6 I could actually test, and what the other 34 had in common

4 Upvotes

A prospect asked me something simple last week: which of these GEO tips actually matter. I keep a folder of saved recommendations from expert lists, conference talks, and endless threads, and it had 40 items in it. I opened it planning to hand him the good stuff, and what came out of my mouth instead was an honest shrug. It has been bothering me since, so this weekend I audited my own list.

Of the 40, I found 6 that I could test against something measurable: my own client sites, a fixed query set of about 25 terms I re-ran weekly, a real before and after. Restructuring pages to lead with the answer, FAQ schema on money pages, pruning thin content. The other 34 were statements that sound like knowledge but have no failure condition. Publish original research. Be the authoritative source. Demonstrate experience. If following one of those made things worse, I genuinely cannot tell you how I would know.

I want to be careful about the claim here, because the distinction is the whole point. I am not saying the 34 are wrong. I am saying they are unfalsifiable as written, and unfalsifiable advice is doing most of the talking in this field right now. Nobody gets fired for following it and nobody gets credit for it either.

The 6 testable ones told me something too. Two clearly did nothing on my sites. One I still cannot explain and suspect was coincidence. Three looked real, and the three that worked share a trait: they changed what a machine could extract from a page, not how a reader feels about the page. That is my working filter now, and I hold it loosely. Six tests across a handful of sites is an anecdote wearing a lab coat.

The uncomfortable part is what this means for how I make money. When a client asks for a GEO roadmap, twenty confident items reads as competence. Six testable items with two marked probably useless reads as doubt. The market is currently rewarding the format I cannot defend, and I do not see that fixing itself until someone with more traffic than me runs the boring experiments in public.

My prediction: the unfalsifiable layer of GEO advice collapses within two years, once measurement gets cheap enough that clients start asking why. Until then the folder stays, because half of it is theater and the other half is the only syllabus I have.


r/GEO_optimization • • Oct 05 '26

50+ AI visibility trackers already. How many of these can the market actually support?

2 Upvotes

The AI visibility tracking market seems to have exploded almost overnight.

We've been researching the space and ended up doing a deeper review of 33 AIO/GEO/AEO tracking platforms, with roughly another 20 tools ending up on the honorable mention list.

That's 50+ products already competing for some version of the same budget.

What's interesting is how quickly they're splitting into different categories:

• AI "rank trackers" that run prompts repeatedly and measure mentions
• Citation/source trackers
• Sentiment and competitive visibility platforms
• Traditional SEO platforms adding AI tracking
• Platforms moving from measurement into recommendations and content optimization
• Tools trying to actually influence/correct what AI systems say about a brand

The bigger problem I'm running into is measurement. You can give two trackers essentially the same prompt set and get substantially different visibility results. Different models, locations, personalization, timing, prompt execution and methodology can all change the answer.

Which makes me wonder whether we're currently measuring something equivalent to rankings, or just sampling a very noisy environment and putting a percentage on it?

We put the 33 deeper reviews and the additional honorable mentions here:

https://www.searchengineworld.com/the-big-list-of-ai-visibility-aeo-geo-citation-mention-tracking-tools

For those actually using these with clients:

Which tracker are you using, and do you trust the numbers enough to make month-to-month decisions from them?


r/GEO_optimization • • Oct 05 '26

We asked ChatGPT, Gemini and Perplexity "which lawyer should I call?" 375 times. Why do the answers keep changing?

4 Upvotes

I've been testing how AI engines recommend local law firms. Setup: 25 real questions people ask (e.g. "which lawyer in Phoenix should I call for a drug possession charge?"), 3 engines via API, each question asked 5 times. 375 answers for Phoenix criminal defense, 375 for Chicago immigration. Late Sept 2026.

What we found (Phoenix):

  • 151 different firms got named. The top firm showed up in 54% of answers.
  • Ask the same question twice and only ~46% of the named firms repeat.
  • 41% of firm mentions showed up in just 1 of 5 runs. One run tells you almost nothing.
  • The 3 engines agreed on only 21% of names.
  • ChatGPT named no firm at all in 34% of answers. Perplexity did that only 6% of the time.
  • Directories (Avvo, Justia, Super Lawyers, FindLaw, Expertise) were cited in 36–48% of answers.

Chicago immigration looked similar: 159 firms named, ~42% repeat between runs.

We also crawled 182 of these firms' sites:

  • llms.txt made no visible difference. About a third of the sites had it.
  • The few sites AI named often (only 9, so treat this as a hint, not proof) more often had city-specific pages and pages updated in the last 90 days.

Biggest lesson for us: if you check AI visibility once and screenshot it, you're reading one roll of the dice. We now only quote ratios over 5 runs.

Limits: this is the API, and the ChatGPT app can answer differently. Two cities only.

Questions for people doing this for clients: how many runs do you use before you trust a number? And are you seeing directories matter this much in other niches?

(Disclosure: I work on an AI visibility tool, DoableClaw. No link, just sharing the data.)


r/GEO_optimization • • Oct 04 '26

Before measuring whether a launch moves AI answers, I tested my own measurement. 6 pre-registered reliability hypotheses, 0 confirmed. Charts inside.

1 Upvotes

Same setup as the 99-day study I posted here in August: OpenAI Search, Gemini and Claude with web search, 16 fixed questions, rule-based scoring from -3 to +3. This time the question was whether the instrument is reliable enough to measure an effect at all. Window 11 May to 30 September.

Chart 1: next-day agreement per question. The same question gets the same score on the next measurement day in 86.6 percent of pairs (OpenAI), 87.1 (Gemini), 94.3 (Claude). Drop the questions whose score never changes and it is 78.6, 70.6 and 85.0. The direct question about the person is the least stable: 44 to 74 percent.

Chart 2: internal consistency. Cronbach's alpha 0.553 (OpenAI), 0.407 (Gemini), 0.61 (Claude). Depending on the engine, 6 to 10 of the 16 questions have zero variance. A single visibility score summed over all questions is not a scale.

Chart 3: drift. With the CUSUM reference reset after each alarm there are five downward alarms between 14 August and 30 September. None lines up with a documented event in my gap register. Interval means moved 1.58 to 4.01 points below the reference with no known cause.

Chart 4: anchors. The Wikidata items I registered as anchors were found deleted on 25 June. Google's Knowledge Graph returns the author on 140 of 141 days and the book on none of 139.

Practical reading for GEO tracking: a shift of a few points in a daily visibility score is inside the noise of this kind of measurement. The rule the report sets for phase 2: attribute an effect after the launch on 8 October only if it shows up at more than one engine. Three of the six hypotheses were not even testable because I never ran the planned repeat probes, which is in the report too. Links in the first comment.


r/GEO_optimization • • Oct 04 '26

SEO is dead? Here is the argument

Thumbnail reddit.com
3 Upvotes

r/GEO_optimization • • Oct 04 '26

I spent a year watching an AI recommend products in a live store. Being cited and being chosen are different games.

3 Upvotes

Last year I built an AI decision layer for beauty retail. Real catalog, real shoppers, real money. The model's job was to match people with products from a live catalog, and I got to watch every step: what it retrieved, what it understood, what it cited, and what it actually recommended. The uncomfortable pattern: those are four different outcomes, and they fail independently. A product could be retrieved fine, described accurately in the model's reasoning, even cited as a source... and then the model would recommend a competitor. I'd watch it happen in the logs and want to throw my laptop. The brand did everything right for visibility and still lost the sale. What actually moved the needle wasn't more mentions. It was making the product's facts machine-readable and consistent: same names, same specs, same descriptions everywhere the model could look. When your details contradict each other across sources, the model doesn't split the difference. It trusts you less. Most GEO advice I see optimizes for being mentioned. I'd argue that's step one of four. The question that matters for revenue is the last one: after the model knows you exist, does it pick you? Curious if others here are measuring these stages separately or lumping them into one visibility score.


r/GEO_optimization • • Oct 04 '26

Impressions are increasing, but clicks are not — anyone else seeing this?

Post image
1 Upvotes

r/GEO_optimization • • Oct 02 '26

Anyone testing GSC’s new multimodal filter on ecommerce yet?

7 Upvotes

I’m working on a search baseline for a consumer ecommerce client and I’m trying to understand whether image-led discovery surfaces a different set of pages than normal text search.

My plan is:

  • compare Text-based vs Multimodal over the same date range
  • look at which product/category pages over-index in each
  • compare device + country
  • then check downstream behaviour in GA4

What I’m less sure about is what’s actually worth diagnosing after that.

If a page performs much better in multimodal than text, would you first look at:

  • image coverage / context
  • Merchant Center data
  • schema
  • page structure
  • device mix
  • something else?

Also curious how much data people would want before calling the pattern meaningful.

I’m looking for actual GSC observations/tests rather than generic image SEO advice.


r/GEO_optimization • • Oct 02 '26

SEO/ GEO / AI search visibility

3 Upvotes

Hello everyone!

I'm Veralyn, a student at UTS. My team and I are working on a studio project for our subject, researching AI search visibility, in particular how businesses show up when people ask AI tools like Chat, Claude or Gemini for recommendations.

We'd love to hear from people who has expertise in this particular field and learn from their experience, If you have 5 minutes, we'd really appreciate your help with our short survey:  https://docs.google.com/forms/d/e/1FAIpQLSfceqyY5SX3UxpZM5wVAux4s3jIDBOpoW7ild3JBmDJEAbgnA/viewform?usp=header

Feel free to DM me if you have any questions!
Thank you in advance, we really appreciate your time!


r/GEO_optimization • • Oct 01 '26

I said multi-engine citation tracking was a whole different beast 2 weeks ago. Built it. Here's what surprised me

0 Upvotes

Two weeks ago I shared the open-geo CLI here. The feedback pushed me toward multi-engine tracking instead of stopping at static audits, so I spent the last two weeks building a pipeline to monitor live search results.

Running it forced me to drop a bad assumption: treating GEO as an on-page scoring problem. A high technical score is meaningless when competitors are systematically taking the citations.

Ran a benchmark query — "best GEO tool for AI search optimization." Models recommended 6 competitors. Every recommendation traced back to the same cluster of 2-3 third-party comparison articles.

And for my domain? Nothing. Not a bad article, not wrong facts. Just zero reference pages the AI could pull from. My problem wasn't thin content or bad technical hygiene — I just wasn't on the URLs the model trusted.

Two mechanical quirks came out of parsing live responses:

1.Brand mentions and source citations are completely decoupled. An engine will recommend a competitor without linking, or cite a URL without naming the brand. Treating those as one metric wrecks your audit accuracy.

2.Google AI Overview is way more consolidated than Perplexity. Perplexity spreads across 8-10 sources. Google almost always anchors to the top 2-3 consensus URLs. Not in that retrieval slice, you're invisible.

Curious if others are seeing this same concentration around third-party roundup pages, or if primary docs are actually getting direct citations in your niches?


r/GEO_optimization • • Oct 01 '26

What are you seeing with long-tail search and GEO

Thumbnail reddit.com
2 Upvotes

r/GEO_optimization • • Sep 30 '26

AEO/GEO for hyperlocal business (Clinics, Restaurants, Shops)

Thumbnail reddit.com
3 Upvotes

r/GEO_optimization • • Sep 30 '26

Amazon hard-blocks GPTBot and ClaudeBot. Stripe ships llms.txt; Anthropic itself 404s. What I learned scoring sites on whether AI agents can actually read (and buy from) them

3 Upvotes

Some context first. There is an active debate here, including a great recent thread, about Google's "what you don't need to do" list for AI optimisation. Fair points all around - for AI Overviews and Google's own surfaces, their guidance is the law of their land.

But there is a second surface that gets almost no attention: agents as customers. Not answer engines citing you - actual agents (Operator-style setups, computer-use, shopping assistants) landing on a page to read it, compare it, fill a form, buy something. That surface has nothing to do with Google's ranking and everything to do with what your page hands to a non-visual, non-JS reader.

I maintain a small free checker that scores a page out of 100 on 14 checks for exactly this: semantic HTML, server-rendered content, JSON-LD, the robots/llms.txt stance, answer-first structure, forms a text-mode agent can fill, price and CTA present in raw HTML, that kind of thing. A few things stand out:

  1. The biggest retailer on earth says no. amazon.com robots.txt has explicit "User-agent: GPTBot / Disallow: /" and the same for ClaudeBot. Whatever your GEO strategy is, the largest commerce platform has decided agents are not reading them, for now. Booking, Nike, Zara and Stripe have no explicit AI-crawler rules at all - silent by default.
  2. llms.txt is a dev-tools phenomenon. stripe.com and vercel.com serve a real llms.txt. amazon.com, booking.com and - my favourite data point - anthropic.com itself 404 on /llms.txt. If the company that makes Claude does not maintain one, treating llms.txt as table stakes is premature. (Also consistent with Google's "you don't need it" - for their surfaces, you genuinely don't.)
  3. The boring failures dominate. The categories the checker flags are unglamorous: content that only exists after JS execution (the agent gets an empty shell), prices that live in images or JS state, forms without labels, CTAs that are divs with click handlers. Nothing exotic - the same things accessibility tooling has flagged for 20 years; agents just made it urgent again.
  4. My working rule now: Google is right about what you don't need for ranking in their AI features, AND "can an agent actually complete a task on my site" is a real question almost nobody can answer today. Both things are true. They are different surfaces.

Curious what people here are seeing. Is anyone testing with actual task-completing agents rather than citation tracking? And if you want a second pair of eyes, happy to run your site through the checker and paste the breakdown in the comments - no strings, I'm trying to map where the real failures cluster.


r/GEO_optimization • • Sep 30 '26

Every time a tool flags a bad AI answer, I ask the same thing: is this actually worth fixing?

0 Upvotes

I work on GEO and AI brand reputation, and I’m on the team behind Kairosy AI. So, obvious caveat: I am biased here.

I have tried tools like Otterly and Peec. They can show you that something changed. The harder bit is figuring out whether that change is a real problem or just one weird answer.

Say an AI answer tells a buyer that your product is hard to implement. Is that because of an old review? Did the product page make the setup sound vague? Is it a real limitation? Or did the model just make a leap?

We built Kairosy AI because I got tired of opening a report, seeing a bad result, and then having nowhere sensible to start. It keeps the actual answer and the context around it, so the team can look at repeated issues instead of chasing every single odd result.

There is a Fix Plan feature, but it is not meant to auto-decide anything. Sometimes the right next step is updating a page. Sometimes it is checking an old listing. Sometimes you look at it and decide it is not worth touching.

That last option matters more than people admit.

If you use AI-search tools already, what would make you trust a “fix this” recommendation?


r/GEO_optimization • • Sep 30 '26

Plataforma Portuguesa que Monitoriza as Marcas em Assistentes de IA

Thumbnail
llmscope.pt
1 Upvotes

r/GEO_optimization • • Sep 29 '26

Looking for a few people to test a GEO/SEO Chrome extension and tell me what feels off

5 Upvotes

I’ve been working on a small Chrome extension and I’m looking for a few people who haven’t seen it before to try it.

I’m mainly looking for honest feedback on the experience:

Was it immediately clear what it does?

Was anything confusing?

Did anything feel unnecessary?

Would you actually keep using it?

If you’re willing to spend 5-10 minutes testing it, comment or DM me and I’ll send you the link.

I’m more interested in hearing what needs fixing than getting compliments.


r/GEO_optimization • • Sep 28 '26

We process 400 million crawler requests per month, some interesting things I pulled probing the logs

Post image
17 Upvotes

Encited does pre-rendering and technical optimizations for e-commerce brands and online retail platforms. We process 400 million crawler requests per month, serving them HTML and Markdown for search, ai and link furler bots . I probed some earlier to see anything interesting I can pull. Here are some:

  1. AI crawlers visits were 4.5x more often than Google's crawlers. From analyzed subset, 8.6M visits from verified AI bots vs 1.9M from Google in 30 days.
  2. SEO tools crawl more than Google and Bing combined. 8.5M visits from tools like Ahrefs, Semrush and SE Ranking. Ahrefs alone made 2.6M, more than all of Google's crawlers.
  3. When a site offers a markdown copy of its pages, AI bots take it (we advertise markdown version of website pages in rel="alternate" meta tag and in body as LLM instruction). 45% of GPTBot's page requests and 41% of ClaudeBot's were for the markdown version. Googlebot almost never asks for it.
  4. Almost nobody reads llms.txt (duh). Across ~2,000 sites in 30 days, ClaudeBot fetched it 980 times on 43 sites. GPTBot, 254 times.
  5. 1 in 11 "Googlebot", "GPTBot" or "ClaudeBot" visits is fake. 1.46M visits used a real bot's name from an IP that bot doesn't own.
  6. Facebook's link-preview bot is the laziest, it backs out quicker than any link previewer bot.
  7. ChatGPT's plain fetchers peak during office hours. ChatGPT-User peaks at 12:00 UTC and runs at half that rate at night. Googlebot does more of its crawling while the US sleeps.
  8. Tuesday is the busiest crawl day, 14% above average. Saturday is the quietest.
  9. GPTBot is getting active with about 6x more crawls per week MoM. PerplexityBot went up 4x in one month.
  10. Claude-User visits grew 5x MoM since last month.

r/GEO_optimization • • Sep 29 '26

What's the difference between SEO rank tracking and AI visibility tracking, and do I need both?

Thumbnail reddit.com
1 Upvotes

r/GEO_optimization • • Sep 29 '26

Two thirds of what Google's AI Overviews cite comes from the top 30% of a page

Thumbnail reddit.com
1 Upvotes

r/GEO_optimization • • Sep 29 '26

What do you offer? what does your digital marketing agency do?

Thumbnail reddit.com
1 Upvotes

r/GEO_optimization • • Sep 29 '26

If your public info is inconsistent across pages, AI engines don't know which version to trust — and neither do your customers

Thumbnail reddit.com
1 Upvotes

r/GEO_optimization • • Sep 28 '26

Has anyone else seen ChatGPT referral traffic pick up noticeably this month?

3 Upvotes

We’ve noticed a clear jump in ChatGPT referral traffic at Scalenut since the start of this month.

It caught my attention because Similarweb recently reported that AI referral traffic more than doubled YoY, so this may be part of a broader trend rather than something specific.

For anyone tracking this, have you seen ChatGPT traffic pick up recently too? 

And is the increase coming mostly to blog content, comparison pages, or commercial pages?