AutomationMart
Home/Browse/Evaluate hybrid search for legal question-answering using Qdrant & BM25/mxbai
n8n

Evaluate hybrid search for legal question-answering using Qdrant & BM25/mxbai

n8nn8n14 modulesv1.0
DiscordOpenAI

Evaluate Hybrid Search on Legal Dataset This is the second part of "Hybrid Search with Qdrant & n8n, Legal AI." The first part, "Indexing", covers preparing and uploading the dataset to Qdrant. Overview This pipeline demonstrates how to perform Hybrid Search on a Qdrant collection using questions and text chunks (contai

At a glance

Evaluate hybrid search for legal question-answering using Qdrant & BM25/mxbai is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Discord, OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Discord, OpenAI
Modules
14
Price
Free
Version
v1.0
Evaluate hybrid search for legal question-answering using Qdrant & BM25/mxbai workflow diagram

About this workflow

Evaluate Hybrid Search on Legal Dataset This is the second part of "Hybrid Search with Qdrant & n8n, Legal AI." The first part, "Indexing", covers preparing and uploading the dataset to Qdrant. Overview This pipeline demonstrates how to perform Hybrid Search on a Qdrant collection using questions and text chunks (containing answers) from the LegalQAEval dataset (isaacus). On a small subset of questions, it shows: - How to set up hybrid retrieval in Qdrant with: - BM25-based keyword retrieval; - mxbai-embed-large-v1 semantic retrieval; - Reciprocal Rank Fusion (RRF), a simple zero-shot fusion of the two searches; - How to run a basic evaluation: - Calculate hits@1 — the percentage of evaluation questions where the top-1 retrieved text chunk contains the correct answer After running this pipeline, you will have a quality estimate of a simple hybrid retrieval setup. From there, you can reuse Qdrant’s Query Points node to build a legal RAG chatbot. Embedding Inference - By default, this pipeline uses Qdrant Cloud Inference to convert questions to embeddings. - You can also use an external embedding provider (e.g. OpenAI). - In that case, minimally update the pipeline, similar to the adjustments showed in Part 1: Indexing. Prerequisites - Completed Part 1 pipeline, "Hybrid Search with Qdrant & n8n, Legal AI: Indexing", and the collection created in it; - All the requirements of Part 1 pipeline; Hybrid Search The example here is a basic hybrid query. You can extend/enhance it with: - Reranking strategies; - Different fusion techniques; - Score boosting based on metadata; - ... More details: Hybrid Queries in Qdrant. P.S. - To ask retrieval in Qdrant-related questions, join the Qdrant Discord. - Star Qdrant n8n community node repo <3

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Categorize and label existing Gmail emails automatically with GPT-4o mini

Categorize and Label Existing Gmail Emails Automatically with GPT-4o mini 👥 Who's it for This workflow is perfect for individuals or teams who want to sort and label existing emails in their Gmail inbox 🗃️ using AI. Ideal for cleaning up unlabeled emails in bulk — no coding required! For sorting incoming emails messages in your gmail inbox, please use this free workflow: [Categorize and Label Incoming Gmail Emails Automatically with GPT-4o mini](

Free

Post weekly content added to Airtable to a Discord channel

Week after week, experience fresh content updates from Airtable, shared effortlessly within your Discord channel, keeping your community excited about your latest content.

Free

Send data to Google Sheets after processing HTML with ChatGPT

Automatically process HTML data with OpenAI GPT-3, convert it to text, and send parsed information to Google Sheets for streamlined data management.

Free

LinkedIn engagement automator with GPT-4o/Claude, human review & multilingual comments

Automate LinkedIn engagement without sounding like a bot. This workflow: 🌍 Detects language & tone (German / English) 👍 Chooses the right reaction (like / celebrate / support …) 🗣 Generates a personalised comment in your voice and mentions the author 📲 Optional Telegram review – approve ✅ or regenerate ❌ before posting 💸 Runs on cost-efficient GPT-4o mini or Claude 3.5 Haiku ☁️ Publishes comment + reaction via the Unipile API Setup (≈ 15-30 min) Unipile – connect LinkedIn → copy accountid, dsn,

Free

Create calendar events from custom webhooks using ChatGPT

Automatically create Google Calendar events from custom webhooks using ChatGPT. Streamline scheduling by responding to webhook triggers with AI-generated event details.

Free

AI-powered knowledge assistant using Google Sheets, OpenAI, and Supabase Vector Search

Description An intelligent conversational AI system that provides contextual responses by combining chat history, vector database knowledge retrieval, and web search capabilities. How it Works (High-level steps) Message Detection: Google Sheets trigger monitors for new user messages and filters out already-processed entries Context Preparation: Extracts user message, retrieves chat history, and formats conversation context with system prompt Knowledge Retrieval: AI agent searches vector database

Free

AI-powered RAG Q&A chatbot with OpenAI, Google Sheets, Glide & Supabase

Automate AI-Powered RAG System with Contextual Q&A, Google Sheets Integration, and Glide Frontend—Powered by n8n, OpenAI, Supabase, and Google Apps Script. Tools & Services Used Glide (Frontend for user interactions) Google Sheets (Stores questions and answers) Google Apps Script (Forms + media upload handling) OpenAI (Embeddings + GPT-4 to rank and generate answers) Supabase (Optional for image hosting) n8n (Automation logic and backend glue) Workflow Overview This automation performs the follo

Free

🧠 Flowatch 👁️ analyze and diagnose n8n workflow errors via OpenAI and email

Analyze and Diagnose n8n Workflow Errors Automatically via OpenAI and Email &gt; ⚠️ This template is available on ☁️ Cloud & 🖥️ self-hosted n8n instances with the OpenAI node enabled. --- 👤 Who is this for? This workflow is designed for n8n developers, automation engineers, and DevOps teams who want to automatically capture and analyze workflow errors, and receive professional HTML-styled diagnostics directly in their inbox. --- 💥 What problem does this solve? Manually troubleshooting failed wor

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free