Skip to main content

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

Metadata

Release files for ragmap 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ragmap 0.1.1
File Size Uploaded
ragmap-0.1.1.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ragmap 0.1.1
File Interpreter ABI Platform
ragmap-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.9 kB

Release files / ragmap-0.1.1.tar.gz

Download URL ragmap-0.1.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
080a1573d35328d8856c64fdb5b8c503b4abff0533de1af41b05d416d72a9a04
BLAKE2b-256 checksum
How to use checksums
7a480197fad9f7f2c2c2f7a59b319592d3c76a7226eb7bc9492ab18a1476720d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / ragmap-0.1.1-py3-none-any.whl

Download URL ragmap-0.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccc300416d62d215683e38f317828514353443cb6b94eddd36af78ccbe752322
BLAKE2b-256 checksum
How to use checksums
d0a1e17552b08453d34b721b60b568b7249f320940f59d8fbe94bb9dd3f8aa3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page