This project leverages the crewAI framework to generate high-quality documentation for the MENTORIA, a Retrieval Augmented Generation (RAG) tool designed to enable users to chat with their data from various sources such as PDFs, Word documents, text files, and URLs.
The MENTORIA Multi-Agent Documentation Pipeline is an innovative approach to creating comprehensive and accurate documentation using a multi-agent system. The pipeline involves three key agents:
- Content Planner
- Content Writer
- Editor
Each agent plays a crucial role in ensuring that the final documentation is well-structured, insightful, and polished.
- Role: Plan engaging and factually accurate content on the given topic.
- Backstory: Responsible for planning documentation, collecting relevant information, and laying the foundation for the Content Writer.
- Role: Write insightful and factually accurate documentation on the given topic.
- Backstory: Tasked with writing new documentation based on the Content Planner's outline and context, following main objectives, and providing objective insights.
- Role: Edit the documentation for clarity, grammar, and alignment with the brand's voice.
- Backstory: Responsible for editing the documentation, ensuring clarity, grammatical correctness, and brand voice alignment.
The Content Planner identifies the latest trends, key players, and noteworthy news on the topic, defines the target audience, develops a detailed content outline, and includes SEO keywords and relevant sources.
The Content Writer uses the content plan to craft a compelling chapter on the topic, incorporates SEO keywords naturally, names sections/subtitles engagingly, structures the content with an engaging introduction, insightful body, and summarizing conclusion, and proofreads for grammatical errors and brand voice alignment.
The Editor proofreads the documentation for grammatical errors and alignment with the brand's voice, ensuring it is ready for publication.
To use this pipeline, follow these steps:
-
Clone this repository:
git clone git@github.com:mohamedhassan218/mentoria-helper.git
-
Create a virtual environment:
python -m venv .venv
-
Activate your virtual environment:
-
On Windows:
.venv\Scripts\activate
-
On Unix or MacOS:
source .venv/bin/activate
-
-
Install the dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the project root and add the following environment variables:GOOGLE_API_KEY="" SERPER_API_KEY=""
You can also find the final documentation pdf in the repo, all content is generated using this pipeline, isn't this amazing?!
This simple pipeline is a testament to the power of Generative AI agents working together to produce high-quality content. This innovative approach ensures that documentation is not only informative but also engaging and well-structured, making it an invaluable tool for both developers and users of the MENTORIA application.
Contributions are welcome! If you have any ideas, suggestions, or improvements, please feel free to open an issue or submit a pull request.