/JmailBot

The JmailBot is your smart assistant for managing professional correspondence. It can write cover letters, change meeting times, draft new emails, modify existing ones, and retrieve company information using retrieval-augmented generation (RAG). Simplify your email tasks with this efficient and intuitive tool.

Primary LanguagePython

JmailWriter: Tailoring Prompts to Elegant Writing

Introduction:

in this project, we aim to guide the user in writing prompts that invoke the LLM to:

  • Generate emails
  • Modify emails
  • Adjust meeting times
  • Write cover letters
  • Retrieve information about companies

image

Prompt engineering Tools utilized:

  • RAG
  • Output Parsing
  • Memory
  • Few-shot-learning
  • Query Routing

Requirements:

  • A working OpenAI key in this line os.environ['OPENAI_API_KEY']='KEY'
  • All necessary libraries listed in requirements.txt

Example on Using RAG and memory

image

Example on Generating Tailored cover letter and parsed output image

image

Before executing the project, ensure that you have pip installed in your environment. You can verify this by running the following command in the command prompt:

pip --version

Then, install dependencies and run the project with the following commands:

pip install -r requirements.txt
py GUI.py