Skip to main content

PromptEngine is a Python library for conducting interview sessions using OpenAI's ChatGPT model.

Project description

PromptEngine

PromptEngine is a Python library that provides an interface for conducting interview sessions using OpenAI's ChatGPT model. It allows you to interact with the AI assistant to simulate interview conversations and generate responses based on candidate input.

Installation

You can install PromptEngine using pip: pip install promptengine

Prerequisites

Before using PromptEngine, make sure you have the following:

  • Python 3.6 or higher
  • OpenAI API key
  • .env file having following info: OPENAI_API_KEY = "Your-key" LOG_MODE=DEBUG

Usage

Here's an example of how to use PromptEngine:

import promptengine

Create a PromptEngine instance

prompt_engine = promptengine.PromptEngine(redis_instance)

Store user data for an interview session

interview_id = "interview-1" username = "John Doe" position = "Software Engineer" skills = "Python, JavaScript" job_description = "A software engineer responsible for developing web applications." experience = "5 years of experience in software development."

prompt_engine.store_user_data( interview_id, username, position, skills, job_description, experience )

Conduct an interview conversation

state = "ONGOING" candidate_input = "Tell me about your team management experience."

system_message = prompt_engine.chatAI(interview_id, state, candidate_input)

Convert voice to text

audio_file = "interview_audio.wav" transcription = prompt_engine.voiceToText(audio_file)

For detailed API documentation and usage examples, please refer to the documentation.

Contributing

Contributions to PromptEngine are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

PromptEngine was inspired by the need to automate interview simulations and make the process more efficient and interactive.

Contact

For any questions or inquiries, please contact akybharat02@gmail.com.

We hope you find PromptEngine useful! Enjoy conducting interview sessions with AI assistance.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptengine_ai-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptengine_ai-0.0.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file promptengine_ai-0.0.2.tar.gz.

File metadata

  • Download URL: promptengine_ai-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for promptengine_ai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1461dca33e5418d0cc5f1ab844fe9f4b2eb0ed4959c1a30725fa45a68bfe09f5
MD5 68865e4765fdadeb00df3f0852de54a6
BLAKE2b-256 35fe83e5d635340d6cb1a8eca6a8c2104330474024732f5325cd55059065c088

See more details on using hashes here.

File details

Details for the file promptengine_ai-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for promptengine_ai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 589430c5d03b4012161572ca4da130cf8a42ff7c44f0580810f88ee16d766c0b
MD5 4ac0e7d2abdea455b1a395a9e10efa90
BLAKE2b-256 276baf94adf957d97b2f6de5f9328259ce40be3f0c5ed189ffcefa61c15caa21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page