Skip to main content

RAGmap is a simple RAG visualization package for exploring document chunks and queries in embedding space

Project description

RAGmap 🗺️🔍

Overview

RAGmap is a simple RAG visualization tool for exploring document chunks and queries in embedding space.

Inspired by DeepLearning.ai's short course on Advanced Retrieval for AI with Chroma and Gabriel Chua's award-winning RAGxplorer.

Updates:

  • 👨‍💻 RAGmap is now available as a standalone Python package!
  • 🌐 Try the live demo hosted on Streamlit Community Cloud.
  • 📢 RAGmap now supports Hugging Face 🤗 models!

What's inside?

RAGmap supports the following features:

☝️⚠️ Important notice: As of January 2024, chromadb's AmazonBedrockEmbeddingFunction only works with Titan models. Feel free to upvote this PR to add support for Cohere Embed models.

Prerequisites

Amazon Bedrock

Enable access to the embedding (Titan Embeddings, Cohere Embed) and text (Anthropic Claude) models via Amazon Bedrock.

For more information on how to request model access, please refer to the Amazon Bedrock User Guide (Set up > Model access)

How to use

Option 1 💻

  1. Install dependencies

    pip install -r requirements.txt
    
  2. Run the application

    streamlit run app.py
    
  3. Point your browser to http://localhost:8501

Option 2 🐳

  1. Run the following command to start the application

    docker-compose up
    
  2. Once the service is up and running, head over to http://localhost:8501

Option 3 👨‍💻

  1. Install the ragmap package

    pip install ragmap
    
  2. Start building your own apps.

    Check out the examples folder to get started!

Example: Amazon shareholder letters

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ragmap-0.1.1.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

ragmap-0.1.1-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page