Hacker News new | ask | show | jobs
by suttontom 60 days ago
Would you trust an LLM to recognize a credit card number more reliably than a regular expression can?
1 comments

You're not forced to use only an LLM for data loss prevention! You can combine it with regex. You can also feed the output of the regex matches to the LLM as extra "context".

Similarly, I was just flipping through the SQL Server 2025 docs on vector indexes. One of their demos was a "hybrid" search that combined exact text match with semantic vector embedding proximity match.

A combined approach seems pretty promising. Thanks, my original comment was quite flippant.