The Illusion of Safety: Thoughts on 100% Test Coverage

Featured Imgs 23

"...this is a properly tested project. We even have 85% test coverage!" told John, a coder, proudly to his colleague, Mike, whom he just met next to the coffee machine after not seeing each other for a while. Mike was not really satisfied and asked: "And what about the remaining 15%?"

John stated that the part of the code in question is not really important, partially not even used anymore. And anyway, it was tested manually. And, of course, they keep adding new and new classes to the Sonar-Exclude in order to hide code, which can not be tested, from SonarQube.

Reducing AI Hallucinations With Retrieval Augmented Generation

Featured Imgs 23

In the rapidly evolving world of AI, large language models have come a long way, boasting impressive knowledge of the world around us. Yet LLMs, as intelligent as they are, often struggle to recognize the boundaries of their own knowledge, a shortfall that often leads them to “hallucinate” to fill in the gaps. A newly devised technique, known as Retrieval Augmented Generation (RAG), shows promise in efficiently increasing the knowledge of these LLMs and reducing the impact of hallucination by enabling prompts to be augmented with proprietary data. 

Navigating the Knowledge Gap in LLMs

LLMs are computer models capable of comprehending and generating human-like text. They're the AI behind your digital assistant, autocorrect function, and even some of your emails. Their knowledge of the world is often immense, but it isn't perfect. Just like humans, LLMs can reach the limits of their knowledge, but instead of stopping, they tend to make educated guesses or “hallucinate” to complete the task. This can lead to results that contain inaccurate or misleading information. 

Reverse Engineering CryptoPanic REST API

Featured Imgs 23

CryptoPanic is a news aggregator website for trending news based on social sentiment. It's a good website for keeping up to date on the latest news, as well as using it as a trading signal.

Its compact layout reminds me of hacker news. I was looking through the network requests and got intrigued after finding out that the main data is not in plaintext: