Skip to content

Commit

Permalink
Enhance RAG with Contextual Compression (#103)
Browse files Browse the repository at this point in the history
* contextual_compression_in_RAG

* update main Readme

* new_changes

---------

Co-authored-by: kaushal07wick <[email protected]>
  • Loading branch information
kaushal07wick and kaushal07wick authored Jan 9, 2024
1 parent 8855981 commit 5a682f6
Show file tree
Hide file tree
Showing 3 changed files with 688 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ If you're looking for in-depth tutorial-like examples, checkout the [tutorials](
| [Facial Recognition](./examples/facial_recognition) | <a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/facial_recognition/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> |
| [Accelerate Vector Search Applications Using OpenVINO](./tutorials/Sentiment-Analysis-using-LanceDB) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/tutorials/Accelerate-Vector-Search-Applications-Using-OpenVINO/clip_text_image_search.ipynb) | [![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://blog.lancedb.com/accelerate-vector-search-applications-using-openvino-51366eabf866)|
| [Search Within Images](./examples/search-within-images-with-sam-and-clip) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/search-within-images-with-sam-and-clip/main.ipynb) |[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://blog.lancedb.com/search-within-an-image-331b54e4285e)|
| [Contextual-Compression-with-RAG](.examples/Contextual-Compression-with-RAG) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Contextual-Compression-with-RAG/main.ipynb) |[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/etoai/enhance-rag-integrate-contextual-compression-and-filtering-for-precision-a29d4a810301)



Expand Down
15 changes: 15 additions & 0 deletions examples/Contextual-Compression-with-RAG/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 🔍Search engine using SAM & CLIP

<a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/Contextual-Compression-with-RAG/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a>
[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge&logo=medium&logoColor=white)](https://medium.com/etoai/enhance-rag-integrate-contextual-compression-and-filtering-for-precision-a29d4a810301)


### 🎫 Enhance RAG: Integrate Contextual Compression and Filtering for Precision.
Follow the Colab Notebook for full code.

## Interface 🌟

1. Load the Model from Huggingface.
2. Instantiate Contextual Compressor from Langchain.
3. Create a pipeline with different retrieving filters.
4. Get the answer using QA chain.
Loading

0 comments on commit 5a682f6

Please sign in to comment.