This project aims to demonstrate a Multi-Agent AI System that performs tasks related to:
- Text Summarization ✍️
- Research Article Writing 📝
- Data Sanitization 🛡️
Each agent is responsible for a specific task, ensuring that the multi-agent system efficiently handles complex workflows in areas like summarizing text, generating articles, and sanitizing data.
Directory structure:
└── mashrufmohd-multi-rag-agent/
├── README.md
├── app.py
├── requirements.txt
├── server.py
├── agents/
│ ├── __init__.py
│ ├── agent_base.py
│ ├── refiner_agent.py
│ ├── sanitize_data_tool.py
│ ├── sanitize_data_validator_agent.py
│ ├── summarize_tool.py
│ ├── summarize_validator_agent.py
│ ├── validator_agent.py
│ ├── write_article_tool.py
│ └── write_article_validator_agent.py
├── frontend/
│ ├── README.md
│ ├── components.json
│ ├── eslint.config.mjs
│ ├── next.config.ts
│ ├── package-lock.json
│ ├── package.json
│ ├── postcss.config.mjs
│ ├── tailwind.config.ts
│ ├── tsconfig.json
│ ├── .gitignore
│ ├── public/
│ └── src/
│ ├── app/
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ ├── page.tsx
│ │ ├── sanitize/
│ │ │ └── page.tsx
│ │ ├── summarize/
│ │ │ └── page.tsx
│ │ └── write_article/
│ │ └── page.tsx
│ ├── components/
│ │ ├── main-nav.tsx
│ │ ├── theme-provider.tsx
│ │ └── ui/
│ │ ├── button.tsx
│ │ ├── card.tsx
│ │ ├── dialog.tsx
│ │ ├── dropdown-menu.tsx
│ │ ├── form.tsx
│ │ ├── input.tsx
│ │ ├── label.tsx
│ │ ├── select.tsx
│ │ ├── tabs.tsx
│ │ ├── textarea.tsx
│ │ ├── toast.tsx
│ │ └── toaster.tsx
│ ├── hooks/
│ │ └── use-toast.ts
│ └── lib/
│ └── utils.ts
└── utils/
├── __init__.py
└── logger.py
- Summarize Text: Summarize any provided text efficiently.
- Write and Refine Research Articles: Automatically generate and refine research articles.
- Sanitize Data: Clean and sanitize sensitive data for privacy.
-
Clone the repository:
git clone https://github.com/Hiteshydv001/Multi-agent-RAG-tools.git cd Multi-agent-RAG-tools
-
Install dependencies:
pip install -r requirements.txt
-
To run the Streamlit application, execute the following command:
streamlit run app.py
-
Open the web interface in your browser and select a task from the sidebar:
- Summarize Text 📚
- Write and Refine Research Article 🖋️
- Sanitize Data 🔒
The system is composed of the following agents:
- SummarizeTool: Summarizes text efficiently.
- WriteArticleTool: Generates research articles.
- SanitizeDataTool: Sanitizes sensitive data.
- RefinerAgent: Refines and improves research articles for clarity and quality.
- ValidatorAgent: Validates the quality and relevance of research articles.
- SummarizeValidatorAgent: Validates the quality and accuracy of text summaries.
- SanitizeDataValidatorAgent: Ensures the sanitization of sensitive data is successful.
This project is licensed under the MIT License - see the LICENSE file for details.