Top 9 Vector Databases You Should Know

Introduction In recent times, Vector Databases have gained quite a popularity, especially after the arrival of the RAG architecture to work efficiently with LLMs. The concept of vector databases is not new, however, as they were already used in recommendation engines, personalization, Ad targeting, etc. Vector databases are used to save, index, and retrieve complex data like text, images, or other unstructured formats in vectors. The vectors are mathematical representations of data in a high-dimensional space enabling high-quality similarity and […]

Read more

Detailed Guide to LangChain Text Splitters with Examples

What are LangChain Text Splitters In recent times LangChain has evolved into a go-to framework for creating complex pipelines for working with LLMs. One of its important utility is the langchain_text_splitters package which contains various modules to split large textual data into more manageable chunks. Usually, LangChain Text Splitters are used in RAG architecture to chunk a large document and convert these chunks into embeddings to be stored in Vector DB. For LLMs with limited context-size windows, it is quite […]

Read more

Transformers vs RNN – A Detailed Comparison

Introduction Recurrent Neural Networks (RNN) and Transformers have emerged as two popular deep learning models, especially in the field of Natural Language Processing (NLP). Although research on RNNs goes back to the 1980s the Transformer research paper first came out in 2017 only and its models have become highly successful in recent times. In this post, we will compare Transformers vs RNN and understand their similarities and differences point-wise. Recurrent Neural Networks (RNN) Recurrent Neural Networks (RNN) are a type […]

Read more

4 Ways to Crop Image in Python using NumPy, Pillow and OpenCV

Introduction In image processing & computer vision, cropping of images is a common task where we keep a specific region of interest from an image and discard the rest. In this article, we will see various ways you can crop an image in Python by using libraries like OpenCV, Pillow, and NumPy. Input Image In this tutorial, we will use the below image in all the examples of cropping image with Python.   Visualizing the Cropping Area on Image Before […]

Read more

3 Examples of Monte Carlo Simulation in Python

Introduction In this post, we will understand what is Monte Carlo Simulation, what are its typical steps along with benefits and limitations. We will also take a look at its real-world application followed by a few examples of Monte Carlo simulation in Python along with visualization for better clarity. What is Monte Carlo Simulation Monte Carlo simulation is a computational technique to approximate the behavior or output of a complex system or problem by repeated random sampling. This method relies […]

Read more