跳到正文
DEV Community· Mindutil·· 3 小時前AI 評分48

AI 工具目錄搜尋測試:30 句日常查詢中有 13 句沒有結果

I typed 30 ordinary sentences into my own search box. 13 returned nothing.

AI 導讀

作者測試自營 AI 工具目錄的搜尋器,輸入 30 句日常語句後,13 句沒有結果,另有 3 句只找到一項。搜尋器只取前六個詞,要求所有詞語均匹配四個欄位,並按人氣及評分排序;作者表示當天沒有修改程式或部署。

正文

I run an AI tool directory: 4,323 listings, no login, no personalisation. The search box is the only conversation I have with a visitor, so today I stopped trusting it and measured it.

Method. I wrote down 30 sentences the way people actually talk — not keywords, sentences — and requested my live search page for each one with plain HTTP, reading the result count out of the HTML. Then I replicated my own matcher in a throwaway script over the same rows so I could ask counterfactual questions: what would this return if the box did what I assume it does? Every number below came from one of those two measurements, taken today.

The headline. 13 of the 30 sentences return zero tools. Three more return exactly one. 16 out of 30 ordinary questions end on an empty page on my own site.

The entire matcher is nine lines

if (params.q) {
  const terms = params.q
    .split(/\s+/)
    .map((t) => t.trim())
    .filter(Boolean)
    .slice(0, 6);
  for (const term of terms) {
    AND.push({
      OR: [
        { name: { contains: term } },
        { tagline: { contains: term } },
        { description: { contains: term } },
        { tags: { some: { tag: { name: { contains: term } } } } },
      ],
    });
  }
}

No inverted index, no tokenizer, no scoring function. Split on whitespace, keep the first six tokens, AND them together, and require each token as a substring of one of four fields. Everything surprising about my results follows from those nine lines.

1. Small words are mandatory

Because every token is required, a filler word is a filter.

query results
summarize pdf 16
summarize a pdf 16
summarize long pdf 0
summarize a long pdf 0

The word a costs nothing — it appears inside 4,323 rows, i.e. all of them. The word long appears in 58 rows, and none of those 58 also mention summarising a PDF. One adjective, and the query dies.

Same pattern, three times in my zero list:

  • clone my voice → 0. voice clone → 21. The word my survives in 45 rows; none of them are voice cloners.
  • restore an old photograph → 0. restore old photo → 5, photo restore → 6.
  • i need something that writes my resume → 0, and here the honest answer is worse: something appears in 0 rows, so this sentence can never match anything on my site, in any engine, at any rank.

That last one is worth separating out. Of the 13 zero-result sentences, 11 have every token present somewhere in my catalog — the matcher failed, not the collection. Two (mascot, something) contain a word that appears in no row at all. I'd been reading all my zeros as "search is broken" when 2 of 13 were really "I don't list this".

2. Word order means nothing; adjacency means less

video generator → 339 results. generator video → 339. background remover → 5; remover background → 5. The tokens are a bag, not a phrase.

The flip side: image upscaler returns 8 listings, but only 3 rows in the whole catalog actually contain the string "image upscaler". The other five matched because one field says "image" and another says "upscaler" — sometimes in a tag copied from the source site. A two-word query is a Venn diagram, not a phrase search, and I have no idea from the result page which one the reader got.

3. The seventh word is silently dropped

.slice(0, 6). Nothing warns you.

I requested free ai video generator tool online no → 219 results, then the same string plus signup → 219, in the same order. The seventh word never reached the database. When I applied all seven tokens to the same rows in my replication, the answer was 14. So a reader who types a longer, more careful question gets a bigger, less careful answer and no signal that their extra thought was discarded.

4. There is no stemming

pair results
transcribe 105
transcription 23
rows matching both 13
edit podcasts 10
podcast edit 13
dubbing 23
dubbed 0

An "s" is three listings. A different suffix is a different catalog. Substring matching is asymmetric: generators contains generator, so the singular form is a superset, but transcribe is not a substring of transcription and the two sets barely overlap.

And the ordering isn't relevance either

The default sort is popularity-then-rating, and the popularity number is a read counter I mirror from the upstream directory — not traffic on my site. For pdf chat the 19 results come back in strictly descending mirrored reads:

Chatsonic 36,251  → WorkPPT 23,687 → ChatPDF 14,805 → ... → PDFChat 2,652

Chatsonic is a general writing assistant. A PowerPoint tool is the second-best answer to "pdf chat". The product whose name is the query is third, and the one named PDFChat is thirteenth.

That ordering rule also has a floor: 147 rows (3.4%) have a mirrored counter of exactly zero, which pins them to the bottom of any result set they legitimately match. Two of them are on the front page of my "newest tools" list right now — Speechify Dubbing and HeyGen Dubbing, at positions 23 and 24. Search the word they are named after, dubbing, and you get 23 results; those two land 21st and 22nd. Newest entries for the exact thing they do, at the bottom of the list for it.

A column the box cannot see

4,146 of my rows carry a second description field, written by the source site rather than templated from it. It is in the database, it is not in the four fields the matcher reads. For avatar: 105 live results, and 22 rows that mention avatars only in that unread column. I checked one by name — Vmake AI is the second result for its own name and appears nowhere in the 105 rows returned for avatar.

The same gap runs the other way on the word people care about most. The string free appears in 3,633 rows — 84% of the catalog, because every vendor says "free trial" or "free plan". The pricing column I actually filter on says 2,198. Typing "free" into my search box doesn't narrow anything; it broadens the set and hides the filter that would have helped.

What I did with this

Nothing shipped today: no code changes, no deploy. This post is the measurement, because the fix list is a set of trade-offs I'd rather write down in public than quietly pick one of:

  • Stopwords. Dropping a, the, my fixes 4 of my 13 zeros and silently changes what every other query means. Any list I choose is a guess about English.
  • Stemming. podcasts → podcast is easy; photograph → photo is not, and a bad stemmer makes the result page harder to explain, not easier.
  • Relevance scoring. This is the real gap. A match on a tool's name is not the same event as a match on a tag copied from a third-party site, and today my code agrees that they are worth exactly the same.
  • Indexing the second description, or deleting it. 4,146 rows of text I collect and refuse to search is not a data strategy.
  • Refusing to slice at six. If I keep the cap, the page should say "searching the first six words".

One practical note, because this is how you can actually use any directory like mine: search with two distinctive words rather than a sentence, change one word at a time, and drive the pricing filter from the tabs instead of typing "free" — the filter is a column, the box is a substring.

The ranked list I mention above, ordered by that mirrored read counter, is here; if you want to try the box on your own queries, it is on the front page and it does exactly what those nine lines say.

來源:DEV Community · dev.to