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 […]
Unlock the Power of ChatGPT with Python
Introduction: In the age of advanced technology and artificial intelligence, ChatGPT has emerged as a game-changer, revolutionizing the way we interact with machines. As a language model developed by OpenAI, ChatGPT harnesses the power of deep learning to engage in conversational exchanges that closely resemble human-like responses. To fully utilize this incredible tool, it is […]
Working with dictionaries in Python
In this article we will look at OrderedDict and Counter Use an OrderedDict to sort an existing dictionary such as the one below: How to sort a Python dictionary Enclose the dictionary with OrderedDict(sorted(dict.items()) Note: you can also add in “reverse” if you want the opposite sort order: How to remove a key:value pair from […]
Sphinx to GitHub Pages via GitHub Actions
This article will cover the full process to document your code with Sphinx to GitHub pages via GitHub-actions in 2 main sections : Clone the repo used in this article : https://github.com/RGGH/jubilant-lamp View the Sphinx generated documentation from this project here on GitHub pages: https://rggh.github.io/jubilant-lamp/ What is Sphinx? “Sphinx is a documentation generator written and […]
Enum in a Class in Python
Enum, short for “enumerate” is a robust way for us to enforce a strict set of options in Python. For example a fixed choice of Aeroplane Manufacturers and each choice manufacturers matches a model name. Let’s look at the example below and see we can do this can be done in practice. Example Code Pass […]
Sphinx : How to Document A Python Project
Let’s look at how to create complete documentation for your entire Python project using Sphinx Here is a guide to how to document a very small project, with 2 directories “src” and “docs” where all the source code is in “src” and the Sphinx specific files go inside “docs”. You’ll be able to view each […]