In the Email Response Automation Application, sentiment classification is powered by the "MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli" model for zero-shot classification. This state-of-the-art model excels in understanding and categorizing sentiments within the email content. By leveraging the capabilities of DeBERTa-v3, the application ensures accurate sentiment analysis, enabling it to generate responses that align with the emotional tone of incoming messages. This integration highlights the commitment to employing advanced natural language processing models for nuanced and context-aware communication in the email automation process.
This application is designed to automate the process of reading and responding to emails. It uses machine learning models to analyze the content of the emails and generate appropriate responses. The application is configurable, allowing users to set up custom response prompts through the config.py
file.
- Data: Contains the PDF Knowledge Base used for creating vector database.
- Email_Reader: Scripts for reading emails from a file or email server.
email_reader.py
: Reads emails from the source.email_response.py
: Processes the emails and drafts responses.
- Logs: Logs from the application execution.
- Utils: Utility scripts that support the main application functions.
loaders.py
: For loading data and models.logging.py
: Logging utility.text_processing.py
: Text preprocessing and analysis.vector_db.py
: Handles the vector database operations.vectorstores.py
: Manages vector storage.
config.py
: Configuration script to set up custom prompts.ingest.py
: Script to ingest and process the data to create the vector database.interface.py
: Defines the Gradio app interface.requirements.txt
: Lists all the dependencies for the application.
Modify the config.py
to change the email prompts according to your requirements. This allows you to tailor the automation process to fit the nature of your email correspondence.
Use the ingest.py
script to create and maintain a vector database. This database is crucial for the application to analyze and process emails efficiently.
Run the interface.py
script to start the Gradio web application. This interface provides a user-friendly way to interact with the email automation system.
- Install the required dependencies:
pip install -r requirements.txt
- Set up your email data source and configure the
config.py
file with your custom prompts. - Use
ingest.py
to create the vector database. - Run
interface.py
to start the Gradio interface and begin automating your email responses.
- Visit [Ollama] (https://github.com/ollama/ollama) to learn more.
- Visit [Langchain] (https://www.langchain.com/) to learn more.
Contributions to this project are welcome. Please fork the repository, make your changes, and submit a pull request.