vectordb-recipes

lancedbApache-2.0活跃维护

LanceDB 官方的示例与教程合集,用向量检索搭配大模型,演示多模态 RAG、Agent 和微调等场景的落地写法。

Resource, examples & tutorials for multimodal AI, RAG and agents using vector search and LLMs

暂无版本987star +1 / 7 天169fork同步于 2026-11-10 23:52 UTC

怎么上手

由 README 提炼,执行前请确认
README 未给出统一的安装命令,示例多以 Colab notebook 或目录内 Python 脚本形式提供,需进入对应示例目录按其说明运行
硬件要求按 README 说明

README 未说明具体显存或 GPU 型号要求;部分示例标注使用本地 LLM,部分依赖 OpenAI 等云端 API。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 LanceDB 的 GenAI 示例与教程合集,帮你快速搭出 RAG、多模态搜索和 Agent 原型

LanceDB 官方的示例与教程合集,用向量检索搭配大模型,演示多模态 RAG、Agent 和微调等场景的落地写法。

核心能力

  • 按 RAG、多模态、向量搜索、Agent 等主题分类的示例与教程
  • 多数示例提供可直接运行的 Colab notebook 和 Python 脚本
  • 基于免配置的开源无服务器向量库 LanceDB 构建
  • 可与 pandas、arrow、pydantic 等 Python 数据生态集成
  • 提供 TypeScript SDK,可在 serverless 函数中做向量搜索

容易踩的坑

部分示例依赖 OpenAI、Watsonx、MiniMax 等云端 API,需要自备密钥;标注 local-llm 的示例需本地下载并运行模型;各示例依赖和运行方式不同,需按对应目录说明单独配置

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    VectorDB-recipes

    • These are built using LanceDB, a free, open-source, serverless vectorDB that requires no setup.
    • It integrates into Python data ecosystem so you can simply start using these in your existing data pipelines in pandas, arrow, pydantic etc.
    • LanceDB has native Typescript SDK using which you can run vector search in serverless functions!

    This repository is divided into 2 sections:

    • Examples - Get right into the code with minimal introduction, aimed at getting you from an idea to PoC within minutes!
    • Applications - Ready to use Python and web apps using applied LLMs, VectorDB and GenAI tools

    The following examples are organized into different tables to make similar types of examples easily accessible.

    Sections

    • Build from Scratch - Step-by-step guides to create AI applications from scratch.
    • Multimodal - Build apps that process and search across both text and images.
    • RAG - Combine document retrieval with LLM-powered responses.
    • Vector Search - Learn to efficiently find relevant documents using vector-based search.
    • Chatbot - Create AI chatbots that fetch information and generate intelligent replies.
    • Evaluation - Measure the quality and accuracy of AI-generated answers.
    • AI Agents - Build LLM-driven applications where multiple agents collaborate and interact.
    • Recommender Systems - Develop AI-powered recommendation systems for personalized suggestions.
    • Concepts - Tutorials and explanations of key techniques used in AI applications.

    🌟 New 🌟

    Stay up to date with the latest projects, tools, and improvements added to the repository.

    • V-JEPA Video Search -

    Build from Scratch

    Start with the basics! These examples guide you through creating AI applications from the ground up using LanceDB for efficient document retrieval and search.

    Build from Scratch    Interactive Notebook & Scripts  
    Build RAG from ScratchOpen In Colab LLM beginner
    Local RAG from Scratch with Llama3Python local LLM beginner
    Multi-Head RAG from ScratchPython LLM local LLM beginner
    Fintech AI Agent from Scratch LLM advanced

    MultiModal

    Search across different types of data (text, images, and more). Build powerful search applications that work with diverse inputs.

    Multimodal    Interactive Notebook & Scripts  Blog
    V-JEPA Video Search
    Multimodal CLIP: DiffusionDB Python LLM beginnerGhost
    Multimodal CLIP: Youtube videos Python LLM beginnerGhost
    Cambrian-1: Vision centric exploration of imagesKaggle LLM intermediateGhost
    Multimodal Jina CLIP-V2 : Food Search Python beginner
    Multimodal vector search: Voyage AI X LanceDB beginner

    RAG

    Generated Responses by retrieving relevant documents before answering. This section covers different approaches to implementing RAG in your projects.

    RAG    Interactive Notebook & ScriptsBlog
    RAG using Deepseek R1 vs OpenAI o1Python Analysis
    RAG On PDF LLM beginner
    RAG with Contextual Retrieval and Hybrid search LLM intermediateGhost
    RAG with Matryoshka Embeddings and LlamaIndex LLM intermediate
    RAG with IBM Watsonx LLM watsonx LLM beginner
    RAG with MiniMax Python LLM beginner
    Cognee RAG
    Improve RAG with Re-ranking LLM beginnerGhost
    Improve RAG with HyDE LLM intermediateGhost
    Improve RAG with LOTR LLM intermediateGhost
    Advanced RAG: Context Enrichment Window LLM intermediateGhost
    Advanced RAG: Late Chunking LLM intermediateGhost
    Corrective RAG with LanggraphOpen In Colab LLM intermediateGhost
    Contextual-Compression-with-RAGOpen In Colab local LLM intermediateGhost
    Improve RAG with FLAREOpen In Colab local LLM LLM advancedGhost
    Agentic RAG LLM advanced
    GraphRAG LLM intermediateGhost
    GraphRAG with CSV File LLM intermediateGhost
    GraphRAG with cognee - Multimedia LLM intermediate

    Vector Search

    Find relevant documents quickly! These projects show how to use vector-based search techniques to make AI-powered searches faster and smarter.

    Vector Search    Interactive Notebook & Scripts  Blog
    Inbuilt Hybrid Search LLM beginner
    Hybrid search BM25 & lancedb LLM beginnerGhost
    NER powered Semantic SearchOpen In Colab local LLM beginnerGhost
    Vector Arithmetic with LanceDB LLM beginnerGhost
    Summarize and Search Reddit Posts beginner
    Imagebind demo app intermediate
    Search Within ImagesOpen In Colab local LLM intermediateGhost
    Zero Shot Object Detection with CLIP intermediate
    Vector Search with TransformersJSJS LLM advanced
    Geospatial Recommendation SystemOpen In Colab LLM intermediate
    Accelerate Vector Search Applications Using OpenVINOOpen In Colab local LLM advancedGhost

    Chatbot

    Create chatbots that understand user queries and fetch relevant responses using LanceDB’s vector search capabilities.

    Chatbot    Interactive Notebook & Scripts  Blog  
    Databricks DBRX Website BotPython Databricks LLM beginner
    CLI-based SDK Manual Chatbot with PhidataPython local LLM beginner
    Youtube transcript search bot Python JS LLM intermediate
    Langchain: Code Docs QA bot Python JS LLM intermediate
    Chatbot with any website using Crawl4AI Python LLM beginner
    Context-Aware Chatbot using Llama 2 & LanceDBOpen In Colab local LLM advancedGhost

    Evaluation

    These projects provide tools to compare AI-generated responses against reference data and fine-tune accuracy.

    Evaluation    Interactive Notebook & Scripts  Blog
    Monitoring and Tracing RAG using HoneyHive LLM beginner
    Evaluating RAG with RAGAs LLM intermediate

    AI Agents

    Build applications where multiple AI agents interact to complete tasks efficiently. These projects show how agents can collaborate, exchange data, and automate workflows.

    AI Agents    Interactive Notebook & Scripts  Blog
    Trip Planner Swarm style Agent LLM intermediate
    Multi Source Agent LLM beginner
    AI email assistant with Composio LLM beginner
    Assistant Bot with OpenAI Swarm LLM intermediate
    AI Trends Searcher with CrewAI LLM beginnerGhost
    SuperAgent Autogen LLM intermediate
    Build autonomous Customer support agent using Langgraph intermediateGhost
    AI Agents: Reducing Hallucination Python JS LLM advancedGhost
    Multi Document Agentic RAG LLM advancedGhost
    RASA: Customer Support Bot LLM advancedGhost

    Recommender Systems

    Personalized AI recommendations! These projects help you build recommendation engines that suggest content based on user preferences.

    Recommender SystemsInteractive Notebook & Scripts  Blog
    Movie Recommender Python beginner
    Product Recommender Python intermediate
    Arxiv paper recommender Python LLM beginner
    Music RecommenderPython intermediate

    Concepts

    Learn the core ideas behind AI applications—including text chunking, retrieval strategies, and optimization techniques—to improve your understanding of vector search and AI pipelines.

    ConceptsInteractive NotebookBlog
    A Primer on Text Chunking and its TypesOpen In Colab beginnerGhost
    Langchain LlamaIndex ChunkingOpen In Colab beginnerGhost
    Create structured dataset using InstructorPython beginner
    Comparing Cohere Rerankers with LanceDBbeginnerGhost
    Product Quantization: Compress High Dimensional VectorsintermediateGhost
    LLMs, RAG, & the missing storage layer for AIintermediateGhost
    Fine-Tuning LLM using PEFT & QLoRAOpen In Colab local LLM advancedGhost
    Extracting Complex tables-text from PDFs using LlamaParse Open In Colab LLM LlamaCloud beginner
    Convert any Image dataset to lance FormatOpen In Colab advancedGhost

    Projects & Applications

    Ready-to-use AI applications built with LanceDB! Use these projects as-is, customize them, or integrate them into your own applications.

    Node applications powered by LanceDB

    Project NameDescriptionScreenshot
    Writing assistantWriting assistant app using lanchain.js with LanceDB, allows you to get real time relevant suggestions and facts based on you written text to help you with your writing.Writing assistant
    Sentence Auto-CompleteSentance auto complete app using lanchain.js with LanceDB, allows you to get real time relevant auto complete suggestions and facts based on you written text to help you with your writing.You can also upload your data source in the form of a pdf file.You can switch between gpt models to get faster results.Sentence auto-complete
    Article RecommendationArticle Recommender: Explore vast data set of articles with Instant, Context-Aware Suggestions. Leveraging Advanced NLP, Vector Search, and Customizable Datasets, Our App Delivers Real-Time, Precise Article Recommendations. Perfect for Research, Content Curation, and Staying Informed. Unlock Smarter Insights with State-of-the-Art Technology in Content Retrieval and Discovery!".Article Recommendation
    AI Powered Job SearchTransform your job search experience with this AI-driven application. Powered by LangChain.js, LanceDB, and advanced semantic search, it provides real-time, highly accurate job listings tailored to your preferences. Featuring customizable datasets and advanced filtering options (e.g., skills, location, job type, and salary range), this app ensures you find the right opportunities quickly and effortlessly. Best suited for job seekers, recruiters, career platforms, custom job boards.Job Search
    AI Powered Multimodal meme searchAn advanced AI-powered meme search engine that allows users to find memes using both text and image queries. By leveraging LanceDB as a high-performance vector database and Roboflow's CLIP model for embedding generation, the platform delivers fast and accurate meme retrieval.Multimodal meme search
    AI Powered Feedback search and analysisAn AI-powered employee feedback analysis platform designed to collect, store, analyze, and retrieve insightful employee feedback. This system leverages LanceDB for high-speed vector-based semantic search, React.js for an interactive UI, Node.js for backend processing, and LangChain.js with an Ambient Agent for intelligent analysis and actionable insights.AI Powered Feedback search and analysis
    Hierarchical Multi AgentThe AI-Powered Law Assistant is a Hierarchical Multi-Agent System leveraging LangGraph, LangChain, and LanceDB for efficient legal query processing. It features a Supervisor Agent that delegates tasks to specialized agents for IPC and NDPS laws, each with sub-agents for case retrieval and legal summarization. Using LanceDB, it stores and retrieves vectorized legal documents, enabling fast, structured, and context-aware responses for legal professionals, researchers, and law students.AI Powered Law Assistant
    Project NameDescriptionScreenshot
    YOLOExplorerIterate on your YOLO / CV datasets using SQL, Vector semantic search, and more within secondsYOLOExplorer
    Website Chatbot (Deployable Vercel Template)Create a chatbot from the sitemap of any website/docs of your choice. Built using vectorDB serverless native javascript package.Chatbot
    Advanced Chatbot with Parler TTS This Chatbot app uses Lancedb Hybrid search, FTS & reranker method with Parlers TTS library.image
    Multi-Modal Search EngineCreate a Multi-modal search engine app, to search images using both images or textSearch
    Evaluate RAGA working Streamlit RAG App designed to demonstrate end to to end production grade evaluation using 50+ scores and metrics which include guards, software metrics, traditional metrics and LLM as judge metrics. It uses mixture of specialised deep learning models and LLM as Judge models to do the evaluationsimage
    Multi-Agent Collaboration ChatbotMulti-Agent collaboration chatbot using langgraph for share-market use case using Lancedb & tools such as Polygon ,Tavilyimage
    Multimodal Myntra Fashion Search EngineThis app uses OpenAI's CLIP to make a search engine that can understand and deal with both written words and pictures.image
    Multilingual-RAGMultilingual RAG with cohere embedding & support 100+ languagesimage
    Music RecommenderMusic Recommendation system using audio feature extraction and vector similarity search. By utilizing LanceDB, PANNs for audio tagging, and Librosa for audio feature extraction, the system finds and recommends tracks with similar audio characteristics based on a query song.image
    NoOCREnd-to-end solution for complex PDFs, powered by ColPali and LanceDB.image

    🌟 New! 🌟 Applied GenAI and VectorDB course on Udacity Learn about GenAI and vectorDBs using LanceDB in the recently launched Udacity Course

    Contributing Examples

    If you're working on some cool applications that you'd like to add to this repo, please open a PR!