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_catapult-0.1.9.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

promptengine_catapult-0.1.9-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file promptengine_catapult-0.1.9.tar.gz.

File metadata

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

File hashes

Hashes for promptengine_catapult-0.1.9.tar.gz
Algorithm Hash digest
SHA256 128737fbae6359b58465c6f824f76bcd11bf7a6e8f9189e1c3079949b626eb3b
MD5 b3abac66febf3bc7099bc003b82bc7ff
BLAKE2b-256 583580584348cdef5eaf37b96ef44235c98328c394e50f7a1737ffc7748493e0

See more details on using hashes here.

File details

Details for the file promptengine_catapult-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for promptengine_catapult-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7dfc6fd468f09402f09cb6ec90e895c21ec271ce773f554460097a123194acd1
MD5 aa033e46c792f6a7e7373009781b864d
BLAKE2b-256 0ee2845c334b542967fd79fff080a0701d799f6688f7077b47778d992d86ee33

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