Home
Softono

Bge M3 Qdrant Sample

Open source Apache-2.0 Jupyter Notebook
32
Stars
9
Forks
0
Issues
0
Watchers
1 year
Last Commit

 About Bge M3 Qdrant Sample

A demonstration of hybrid search with reranking using Qdrant and BGE-M3 model. A showcase of dense and sparse retrieval combined with ColBERT reranking for optimal search results

Platforms

Web Self-hosted

Languages

Jupyter Notebook

Need Help Installing Bge M3 Qdrant Sample?

We provide expert installation service for this software. Our team will install, configure, and secure Bge M3 Qdrant Sample on your server. plans start at just $30.

Bge M3 Qdrant Sample

View on GitHub

BGE-M3 Qdrant sample. Hybrid search & reranking

image

This repository contains a Jupyter notebook that demonstrates how to build an advanced search system using BGE-M3 and Qdrant.

The key feature of this sample is the use of an all-in-one embedding model (BGE-M3) that generates three types of vectors in a single pass:

  • Dense vectors: For semantic similarity (1024 dimensions)
  • Sparse vectors: For lexical/keyword matching
  • ColBERT token vectors: For fine-grained token-level matching

This multi-vector approach provides superior search quality by combining the strengths of different embedding types within a single model.

Requirements

  • Python 3.9+
  • Docker (for running Qdrant)
  • Jupyter Notebook

How It Works

The system operates in the following steps:

  1. Data Loading: Products are loaded from a CSV file
  2. Text Formatting: Product information is formatted for embedding
  3. Embedding Generation: BGE-M3 generates all three embedding types in one pass
  4. Vector Database Setup: Qdrant collection is configured for hybrid search
  5. Data Indexing: Product data and embeddings are stored in Qdrant
  6. Search: Queries go through the same embedding process and retrieve results