Top Secret: A Novel Text Filtering Tool for Protecting Sensitive Information

2025-08-23
Top Secret: A Novel Text Filtering Tool for Protecting Sensitive Information

Protecting sensitive information is crucial when interacting with chatbots and LLMs. Top Secret is a new tool that combines regular expressions and Named Entity Recognition (NER) to effectively filter sensitive information, such as PII and locations, from free text. Beyond filtering, Top Secret generates a mapping to restore filtered values in responses, ensuring conversational integrity without compromising sensitive data. It also functions as a database validation tool, preventing sensitive information from being stored. Top Secret offers flexible configuration, allowing filters to be enabled or disabled as needed.

Read more

Refactoring Pitfalls: When Not to Refactor

2025-02-06
Refactoring Pitfalls: When Not to Refactor

This article explores the pitfalls of code refactoring, highlighting that not all code needs refactoring. The author presents several scenarios where refactoring is inappropriate, such as attempting to fix bugs or adapt to third-party changes through refactoring; introducing unnecessary abstraction leading to code complexity; tackling multiple code smells simultaneously; refactoring untested code; and refactoring unchanging code. The article emphasizes that refactoring should be incremental, behavior-preserving, and involve small, reversible changes with test coverage. It advocates for pausing refactoring when understanding is lacking or new requirements emerge. Refactoring frequently changing and complex code yields the best results.

Read more
Development best practices