| 1 | **RAG (Retrieval-Augmented Generation) with LanceDB ๐๐ง** |
| 2 | ==================================================================== |
| 3 | |
| 4 | Build RAG (Retrieval-Augmented Generation) with LanceDB, a powerful solution for efficient vector-based information retrieval ๐. |
| 5 | |
| 6 | **Experience the Future of Search ๐** |
| 7 | |
| 8 | ๐ค RAG enables AI to **retrieve** relevant information from external sources and use it to **generate** more accurate and context-specific responses. ๐ป LanceDB provides a robust framework for integrating LLMs with external knowledge sources ๐. |
| 9 | |
| 10 | | **RAG** | **Description** | **Links** | |
| 11 | |----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------| |
| 12 | | **RAG with Matryoshka Embeddings and LlamaIndex** ๐ช๐ | Utilize **Matryoshka embeddings** and **LlamaIndex** to improve the efficiency and accuracy of your RAG models. ๐โจ | [][matryoshka_github] <br>[][matryoshka_colab] | |
| 13 | | **Improve RAG with Re-ranking** ๐๐ | Enhance your RAG applications by implementing **re-ranking strategies** for more relevant document retrieval. ๐๐ | [][rag_reranking_github] <br>[][rag_reranking_colab] <br>[][rag_reranking_ghost] | |
| 14 | | **Instruct-Multitask** ๐ง ๐ฏ | Integrate the **Instruct Embedding Model** with LanceDB to streamline your embedding API, reducing redundant code and overhead. ๐๐ | [][instruct_multitask_github] <br>[][instruct_multitask_colab] <br>[][instruct_multitask_python] <br>[][instruct_multitask_ghost] | |
| 15 | | **Improve RAG with HyDE** ๐๐ | Use **Hypothetical Document Embeddings** for efficient, accurate, and unsupervised dense retrieval. ๐๐ | [][hyde_github] <br>[][hyde_colab]<br>[][hyde_ghost] | |
| 16 | | **Improve RAG with LOTR** ๐งโโ๏ธ๐ | Enhance RAG with **Lord of the Retriever (LOTR)** to address 'Lost in the Middle' challenges, especially in medical data. ๐๐ | [][lotr_github] <br>[][lotr_colab] <br>[][lotr_ghost] | |
| 17 | | **Advanced RAG: Parent Document Retriever** ๐๐ | Use **Parent Document & Bigger Chunk Retriever** to maintain context and relevance when generating related content. ๐ต๐ | [][parent_doc_retriever_github] <br>[][parent_doc_retriever_colab] <br>[][parent_doc_retriever_ghost] | |
| 18 | | **Corrective RAG with Langgraph** ๐ง๐ | Enhance RAG reliability with **Corrective RAG (CRAG)** by self-reflecting and fact-checking for accurate and trustworthy results. โ
๐ |[][corrective_rag_github] <br>[][corrective_rag_colab] <br>[][corrective_rag_ghost] | |
| 19 | | **Contextual Compression with RAG** ๐๏ธ๐ง | Apply **contextual compression techniques** to condense large documents while retaining essential information. ๐๐๏ธ | [][compression_rag_github] <br>[][compression_rag_colab] <br>[][compression_rag_ghost] | |
| 20 | | **Improve RAG with FLARE** ๐ฅ| Enable users to ask questions directly to **academic papers**, focusing on **ArXiv papers**, with **F**orward-**L**ooking **A**ctive **RE**trieval augmented generation.๐๐ | [][flare_github] <br>[][flare_colab] <br>[][flare_ghost] | |
| 21 | | **Query Expansion and Reranker** ๐๐ | Enhance RAG with query expansion using Large Language Models and advanced **reranking methods** like **Cross Encoders**, **ColBERT v2**, and **FlashRank** for improved document retrieval precision and recall ๐๐ | [][query_github] <br>[][query_colab] | |
| 22 | | **RAG Fusion** โก๐ | Build RAG Fusion, utilize the **RRF algorithm** to rerank documents based on user queries ! Use **LanceDB** as vector database to store and retrieve documents related to queries via **OPENAI Embeddings**โก๐ | [][fusion_github] <br>[][fusion_colab] | |
| 23 | | **Agentic RAG** ๐ค๐ | Build autonomous information retrieval with **Agentic RAG**, a framework of **intelligent agents** that collaborate to synthesize, summarize, and compare data across sources, that enables proactive and informed decision-making ๐ค๐ | [][agentic_github] <br>[][agentic_colab] | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | [matryoshka_github]: https://github.com/lancedb/vectordb-recipes/blob/main/tutorials/RAG-with_MatryoshkaEmbed-Llamaindex |
| 37 | [matryoshka_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/tutorials/RAG-with_MatryoshkaEmbed-Llamaindex/RAG_with_MatryoshkaEmbedding_and_Llamaindex.ipynb |
| 38 | |
| 39 | [rag_reranking_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/RAG_Reranking |
| 40 | [rag_reranking_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/RAG_Reranking/main.ipynb |
| 41 | [rag_reranking_ghost]: https://blog.lancedb.com/simplest-method-to-improve-rag-pipeline-re-ranking-cf6eaec6d544 |
| 42 | |
| 43 | |
| 44 | [instruct_multitask_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/instruct-multitask |
| 45 | [instruct_multitask_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/instruct-multitask/main.ipynb |
| 46 | [instruct_multitask_python]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/instruct-multitask/main.py |
| 47 | [instruct_multitask_ghost]: https://blog.lancedb.com/multitask-embedding-with-lancedb-be18ec397543 |
| 48 | |
| 49 | [hyde_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/Advance-RAG-with-HyDE |
| 50 | [hyde_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Advance-RAG-with-HyDE/main.ipynb |
| 51 | [hyde_ghost]: https://blog.lancedb.com/advanced-rag-precise-zero-shot-dense-retrieval-with-hyde-0946c54dfdcb |
| 52 | |
| 53 | [lotr_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/Advance_RAG_LOTR |
| 54 | [lotr_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Advance_RAG_LOTR/main.ipynb |
| 55 | [lotr_ghost]: https://blog.lancedb.com/better-rag-with-lotr-lord-of-retriever-23c8336b9a35 |
| 56 | |
| 57 | [parent_doc_retriever_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/parent_document_retriever |
| 58 | [parent_doc_retriever_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/parent_document_retriever/main.ipynb |
| 59 | [parent_doc_retriever_ghost]: https://blog.lancedb.com/modified-rag-parent-document-bigger-chunk-retriever-62b3d1e79bc6 |
| 60 | |
| 61 | [corrective_rag_github]: https://github.com/lancedb/vectordb-recipes/blob/main/tutorials/Corrective-RAG-with_Langgraph |
| 62 | [corrective_rag_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/tutorials/Corrective-RAG-with_Langgraph/CRAG_with_Langgraph.ipynb |
| 63 | [corrective_rag_ghost]: https://blog.lancedb.com/implementing-corrective-rag-in-the-easiest-way-2/ |
| 64 | |
| 65 | [compression_rag_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/Contextual-Compression-with-RAG |
| 66 | [compression_rag_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Contextual-Compression-with-RAG/main.ipynb |
| 67 | [compression_rag_ghost]: https://blog.lancedb.com/enhance-rag-integrate-contextual-compression-and-filtering-for-precision-a29d4a810301/ |
| 68 | |
| 69 | [flare_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/better-rag-FLAIR |
| 70 | [flare_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/better-rag-FLAIR/main.ipynb |
| 71 | [flare_ghost]: https://blog.lancedb.com/better-rag-with-active-retrieval-augmented-generation-flare-3b66646e2a9f/ |
| 72 | |
| 73 | [query_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/QueryExpansion&Reranker |
| 74 | [query_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/QueryExpansion&Reranker/main.ipynb |
| 75 | |
| 76 | |
| 77 | [fusion_github]: https://github.com/lancedb/vectordb-recipes/blob/main/examples/RAG_Fusion |
| 78 | [fusion_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/RAG_Fusion/main.ipynb |
| 79 | |
| 80 | [agentic_github]: https://github.com/lancedb/vectordb-recipes/blob/main/tutorials/Agentic_RAG |
| 81 | [agentic_colab]: https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/tutorials/Agentic_RAG/main.ipynb |
| 82 | |
| 83 | |