Skip to content

Instantly share code, notes, and snippets.

@ganesh-786
ganesh-786 / hybrid_mcp.js
Last active October 16, 2025 10:26
Shopify Merchant Support Project
// Hybrid Search Implementation:
import { PineconeStore } from "@langchain/pinecone";
import FlexSearch from "flexsearch";
class HybridRetriever {
constructor(vectorStore, documents) {
this.vectorStore = vectorStore;
this.bm25Index = new FlexSearch.Document({
tokenize: "forward",
document: {