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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for promptengine_catapult-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7289765ed5b3ced8dd4d5adc175a7fb8eaf3d38a953f92da7f864629c7b50d68 |
|
MD5 | 2c21caf2c6f84a15620351824cbb9b3f |
|
BLAKE2b-256 | 2a1090b5936548dd1801b1285172650b118455d9ed33577f6c6eb2691869d520 |
Hashes for promptengine_catapult-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd198d25749396fa508dcbd07c807c0933f37094f2a2617354b045648a6de723 |
|
MD5 | f958061a535b819f5b0860ad163535ed |
|
BLAKE2b-256 | 3a9110f346a1bfa25de2ad8f2516da7ec7b5ad91eb369b5d84c29ee1a0c8e07b |