Binary Tree in Python
Let’s create a Binary Tree in Python and understand how it works. A binary tree is a hierarchical data structure composed of nodes, where each node has at most two children, referred to as the left child and the right child. The structure resembles a tree with a single root node and branches extending downward, […]
Lazy Iterators in Python
A lazy iterator in Python is often implemented using a generator expression, denoted by (…). https://www.youtube.com/watch?v=9jEvIAsYr5w A generator expression is similar to a list comprehension but produces values lazily, one at a time, as they are requested. Let’s break down the concept and create a simple example. Generator Expression Syntax: A generator expression is enclosed […]
Rye for Python
Rye is a “comprehensive project and package management solution for Python” – let’s check it out!Grab a cup of tea, pull up a chair and put to one side any cognitive bias you have! (Just because it’s built with Rust doesn’t mean you have to install Rust!!!). I won’t regurgitate the excellent documentation from https://rye-up.com/ […]
Streamlit App – Digital Signature demo
I demo ECDSA public/private keys with digital signatures using Streamlit… The private key gets generated, and stays private. The public key is given to the person who want’s to verify the message. Using the public key plus the signed message they can be sure that the only the owner of the matching private key signed […]
LangChain: Question Answering with Qdrant and GPT-3.5 Turbo
This article describes a Python script that leverages LangChain, Qdrant, and the GPT-3.5 Turbo model to perform question-answering on text data. The script combines various libraries to create an end-to-end pipeline for text retrieval and question answering. Overview The provided Python script showcases how to integrate multiple libraries to build a powerful question-answering system: Prerequisites […]
Text Embedding and Upsert with Qdrant in Python
This article describes a Python script that demonstrates how to efficiently process text data, create embeddings, and upsert the embeddings into a Qdrant database using Python. Overview In today’s era of big data and machine learning, efficient text processing and vectorization are crucial for various natural language processing (NLP) tasks. The provided Python script showcases […]
findthatbit.com – made with Qdrant
Watched a video about Bitcoin but forgotten the name of it or what part of it you liked? With findthatbit.com you can search based upon meaning. If you remember a video was about bitcoin and there was talk of “seaside” property. Just search for “seaside” and you’ll get the link to where “miami beach” was […]
Query Rightmove with LangChain | OpenAI | Python | bs4
Welcome to the Langchain tools & OpenAI with bs4 Rightmove data tutorial! In this video, we explore how to use Langchain tools in combination with OpenAI and BeautifulSoup4 (bs4) to extract and analyze data from Rightmove. Webscraping with a twist. Stay tuned to the end and there is a Streamlit implementation as well. Rightmove is […]