⚠️ Solace Agent Mesh plugins in Python are now deprecated
👋 Thank you to everyone who's used the Solace Agent Mesh plugins! This Python version is now deprecated — it's no longer under active development and won't receive new features, bug fixes or security updates.
🚀 Check out the new version of Solace Agent Mesh → https://docs.solace.com/Agent-Mesh/agent-mesh.htm
🖥️ A free edition of the Solace Agent Mesh desktop app is available: https://solace.com/products/agent-mesh/download
These packages remain installable; the repository will be archived (read-only) for reference.
Solace Agent Mesh RAG
A document-ingesting agent that monitors specified directories, keeping stored documents up to date in a vector database for Retrieval-Augmented Generation (RAG) queries.
About Solace Agent Mesh
Solace Agent Mesh (SAM) is an open-source framework for building event-driven, multi-agent AI systems where specialized agents collaborate on complex tasks. It provides a standardized way for agents to communicate, share data, and integrate with external systems while keeping components loosely coupled and production-ready.
SAM helps you:
- Build event-driven multi-agent systems on Solace Event Mesh
- Connect agents, tools, gateways, and services through a common runtime
- Extend projects with installable plugins such as
sam-rag
Learn more in the Solace Agent Mesh documentation and the main project repository.
Overview
The Solace Agent Mesh RAG system provides a complete RAG pipeline that includes:
- Document Scanning: Monitors directories for new, modified, or deleted documents
- Document Preprocessing: Cleans and normalizes text from various document formats
- Text Splitting: Breaks documents into smaller chunks for embedding
- Embedding Generation: Converts text chunks into vector embeddings
- Vector Storage: Stores embeddings in a vector database for efficient retrieval
- Retrieval: Finds relevant document chunks based on query similarity
- Augmentation: Enhances retrieved content using LLMs
Documentation
Comprehensive documentation is available in the docs directory:
- Architecture Guide: Overview of the SAM RAG architecture and components
- Configuration Guide: Detailed explanation of configuration options
- Tools and Lifecycle Guide: Documentation for tools and lifecycle functions
Installation
Add the RAG Plugin to Solace Agent Mesh
solace-agent-mesh plugin add <your-new-component-name> --plugin sam-rag
This will create a new component configuration at configs/plugins/.yaml. You need to configure proper values by updating this file. Export at least the following environment variables to work with the default configuration. For more advance settings, please visit the Configuration Guide.
export SOLACE_BROKER_URL=ws://localhost:8008
export SOLACE_BROKER_USERNAME=admin
export SOLACE_BROKER_PASSWORD=admin
export SOLACE_BROKER_VPN=default
export SOLACE_IS_QUEUE_TEMPORARY=true
export OPENAI_MODEL_NAME=<LLM MODEL NAME>
export OPENAI_API_KEY=<LLM KEY>
export OPENAI_API_ENDPOINT=<LLM ENDPOINT>
export QDRANT_URL=<QDRANT CLUSTER URL>
export QDRANT_API_KEY=<QDRANT API KEY>
export QDRANT_COLLECTION=<A NAME FOR QDRANT COLLECTION>
export QDRANT_EMBEDDING_DIMENSION=1024
export DOCUMENTS_PATH=<PATH OF SOURCE DOCUMENTS IN LOCAL DISK>
Key Configuration Sections
- Scanner Configuration: Document source and monitoring settings
- Preprocessor Configuration: Text extraction and cleaning settings
- Splitter Configuration: Document chunking settings
- Embedding Configuration: Vector embedding settings
- Vector Database Configuration: Storage and retrieval settings
- LLM Configuration: Language model settings for augmentation
- Retrieval Configuration: Search parameters
Usage
Running the RAG System
solace-agent-mesh run
Querying the RAG System
Open the SAM UI on the browser.
Ingesting documents
(Option1): Store documents in a specific directory and configure the directory path in the rag.yaml file.
After running SAM, the plugin ingests documents in background automatically.
(Option2): Open the SAM UI on the browser (by default http://localhost:8000), attach files to a query such as "ingest the attached document to RAG".
This query persistently stores the attachments in file system and index them in vector database.
Retrieving documents
Use SAM UI on the browser (by default http://localhost:8000) or any other interfaces and send a query such as "search documents about and return a summary and referenced documents". It retrieves top similar documents and returns a summary of documents align with their original documents.
Metadata
Release files for sam-rag 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sam_rag-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Release files / sam_rag-0.1.5-py3-none-any.whl
| Download URL | sam_rag-0.1.5-py3-none-any.whl |
|---|---|
| Size | 138.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3629fd03892c5c605158d65969c319bd2cf263a17dd10b904ba988ff5934a0b
|
|
BLAKE2b-256 checksum How to use checksums |
bc4ecbaae792ddf6b9c349f991769c9bc1cbc67086bd6cd86b3ffc26dea3411f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.
Transparency log