Fabian Kostadinov

How I created a semantic Q&A bot for >13k recorded dreams using OpenAI, Langchain and Elasticsearch

I have been fascinated with dream interpretation for a long time. So, over the weekend I decided to create a database of >13k recorded dreams I scraped from the web. The database allows me to perform semantic searches rather than just plain-text searches, and beyond that it even allows GPT-enabled question answering. For example, I can ask the Q&A bot questions like: “Please search all dreams containing animals, and give me a list of their activities.” Not only does the bot have an understanding of what constitutes an animal (deer, elephant, snake, spider…), but it provides ChatGPT-like, meaningful answers in the style of ChatGPT. Here’s how I did it.

Read More 

GPT Models as an Operating System / Communication Protocol for Autonomous Agents

While GPT models have been around for a few years, it was only after the arrival of OpenAI’s ChatGPT that they caught the wider attention of the public. Frantically, managers and IT specialists alike are searching for ways how they can make best use of this new technology. As usual, the first ideas will turn out to be not necessarily the most mature, and it will take some time until the full potential – and the restrictions – of these GPT models are generally understood.

Read More 

How to test Firestore security rules web v9 with Jest for your Angular app

Previously, I wrote why using Karma as a test runner to unit test your Firestore security rules for your Angular app is a bad idea. Let’s see then how you can use Jest in combination with Firebase Firestore emulators. I’ll be using Angular v14, Firebase web v9, the node package @firebase/rules-unit-testing v2.0.5 and Jest v29.3.

Read More 

Do not use Karma & Jasmine for unit testing Firestore Security Rules in your Angular app!

I’m writing an Angular 14 app with Google Firebase Firestore as a database. I assumed that developing the Firestore Security Rules with Firebase web v9 by writing Karma/Jasmine unit tests should be not too hard. After all, Karma is Angular 14’s default test runner, no? Turns out that using Karma to develop or test Firestore Security Rules is a bad idea. You should use Jest (or maybe Mocha) instead.

Read More 

How I found and cashed in a bitcoin wallet from 2011

A few days ago I found a Bitcoin wallet.dat on a Macbook from 2011. Here is how I managed to cash in on it.

Read More