---
title: "Comment by Mike Dabydeen on \"Semantic Search Found the Playbook but Missed the “Not”\" | Hashnode"
description: "I'd stop asking the similarity score to make the final call and give each playbook an entry check that the engineer runs first. Your certificate entry is the cl"
url: "https://hashnode.com/posts/semantic-search-playbook-retrieval-negation/6af31c6b12d97dbc275567a9/comment/6af45d7d922ae7270f89a7f1"
---

[Discussion](https://hashnode.com/posts/semantic-search-playbook-retrieval-negation/6af31c6b12d97dbc275567a9)

Comment [Semantic Search Found the Playbook but Missed the “Not”](https://hashnode.com/posts/semantic-search-playbook-retrieval-negation/6af31c6b12d97dbc275567a9)

[Mike Dabydeen](https://hashnode.com/@firelinks)

[Nov 11](https://hashnode.com/posts/semantic-search-playbook-retrieval-negation/6af31c6b12d97dbc275567a9/comment/6af45d7d922ae7270f89a7f1)

I'd stop asking the similarity score to make the final call and give each playbook an entry check that the engineer runs first. Your certificate entry is the clearest case, because its precondition takes one command: openssl s\_client against the endpoint, piped into openssl x509 -noout -enddate, shows the notAfter date of the certificate actually being served. With that as step one, the DNS request still lands on the certificate entry, but the first thing the engineer sees is that the certificate is fine, and they move on instead of working the wrong playbook.

That also takes some load off the thresholds. Right now 0.575 and 0.275 are doing two jobs, finding the answer and guarding against wrong ones, which is how the checkout paraphrase with a 0.268 lead got dropped. If a wrong pick is cheap to rule out, a looser gap becomes affordable and you may win back some of those three rejected answers. I'd keep the negation request as a regression case next to its positive twin, "the certificate has expired", so a later model or threshold change gets caught in both directions.

[Sotiris Zacharopoulos](https://hashnode.com/@sz-codapus-studio)

[Nov 11](https://hashnode.com/posts/semantic-search-playbook-retrieval-negation/6af31c6b12d97dbc275567a9/comment/6af45d7d922ae7270f89a7f1#reply-6af45fb988672a89825971d1)

Thanks for the comment! I like the entry check idea and testing the positive/negative pair together.

I kept this experiment focused on retrieval: a high similarity score can still point to the wrong playbook. Live checks were outside its scope, so we could see where retrieval alone failed.

It would be interesting to test whether quick entry checks let us loosen the thresholds without giving the engineer more unnecessary work.

[Mike Dabydeen](https://hashnode.com/@firelinks)

[Nov 13](https://hashnode.com/posts/semantic-search-playbook-retrieval-negation/6af31c6b12d97dbc275567a9/comment/6af45d7d922ae7270f89a7f1#reply-6af6ffc65893e6480a9fba2e)

You can score that offline, because each wrong selection costs the engineer one entry check. Your test table already has both ends of the curve: the rejection rules gave 9 correct answers for 2 wasted checks, and plain nearest match gave 12 for 11. Sweeping the gap on the development cases and plotting recovered answers against wasted checks would show where it bends. A no-match has a cost too, since the engineer goes back to searching by hand, so it belongs on the same chart.

That turns the threshold into a stated price, for example one extra check per recovered answer, which is easier for an on-call team to agree on than 0.275.
