Skip to main content

The python package that returns Response of Google Gemini through API.

Project description

Open Interview PyPI

$ pip install open-interview

https://github.com/dsdanielpark/open-interview/assets/81407603/22f9b991-33e8-40d2-a4f2-b80199415767

Transform your job interview preparation into an unparalleled journey with Open Interview, where the avant-garde artificial intelligence of OpenAI, Anthropic, and Google is meticulously tailored to forge your path to success. Here, every interaction is designed to sculpt your technical and personal narrative into perfection, mirroring the exigencies of your dream job.


Stellar Features ✨

  • 🌍 Universal Language Support: Emphasize the ability to accommodate all languages across the following features:
  • 🖋️ Dynamic Q&A Alchemy: Craft your arsenal with precision—generate nuanced technical interview Q&As distilled from the essence of your resume and the job description.
  • 📖 Document Genesis: Automate the creation of elegant Word documents (.docx), encapsulating your personalized interview Q&As for study and reflection.
  • 🎧 Sonic Refinement: Convert your Q&As into audio files, enabling auditory mastery and convenience for your preparatory rituals.
  • 🌐 Cosmos Customization: Navigate your preparation through customizable orbits—fine-tune preferences for job designation, interview cadence, lingua franca, and narrative complexity.

Commencing Voyage

Welcome to the nexus of your interview preparation odyssey.

[!IMPORTANT] Token usage for experimental projects can be high, possibly exhausting paid API tokens quickly. A long-response prompt is now active. Please see the document below to adjust system and user prompts accordingly.

Prerequisites

  • Python >= 3.7: Ensure your command module is updated to version 3.7 or beyond.
  • 🔑 API Keys - OpenAI, Anthropic, Google: Secure your access to the galaxies of OpenAI, Anthropic, and Google, embarking with the keys to unlock the full spectrum of your potential.

Installation 📦

pip install open-interview
git clone https://github.com/dsdanielpark/open-interview.git
pip install -r requirements.txt

Quick Start

Open In Colab

Generate interview content using Claude or GPT models with minimal setup:

Using Claude

from openinterview import InterviewManager

claudeToken = "<your_claude_token>"
claude_interview_manager = InterviewManager(api_key=claudeToken, engine="Claude")

claude_interview_manager.generate_interview(
    jd="This role demands a deep enthusiasm for AI development.",
    resume="path/resume.pdf or path/resume.txt or string",
    position= "AI Researcher",
    interview_type="techQAsFromResume",
    language="English", # Any language you want
    max_sentence=5,
    output_dir="save/dirs",
)

Using GPT

import openai
from openinterview import InterviewManager

openai.api_key = "<your_openai_token>"
gpt_interview_manager = InterviewManager(api_key=openai.api_key, engine="GPT")

gpt_interview_manager.generate_interview(
    jd="This role demands a deep enthusiasm for AI development.",
    resume="path/resume.pdf or path/resume.txt or string",
    position= "AI Researcher",
    interview_type="techQAsFromResume",
    language="English", # Any language you want
    max_sentence=5,
    output_dir="save/dirs",
)

Playing Random Question Audio

To randomly play question.mp3 files from a specified folder, create an instance of the RandomPlayer class with the folder path, and then invoke play_random_mp3:

player = RandomPlayer("path/to/output")  # Directory containing question.mp3 files
player.play_random_mp3()

Default plays randomly for 2 minutes. Press 'n' for next question, 'q' to quit.


Usage

For detailed examples, refer to the 📋Usage document for example code and prompting engineering or the 💻tutorial script.

  • OpenAI GPT: Use InterviewGPT for GPT-based content generation.
  • Anthropic Claude: Use InterviewClaude for Claude-based interviews.

FAQ & Support

For questions and support, visit our FAQ and Issues pages. Contributors are welcome! Submit issues, feature suggestions, or pull requests. Reach out to the core maintainer, Daniel Park, for direct contributions or queries.

License ©️

Apache 2.0 license, 2024.

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

open-interview-1.0.11.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

open_interview-1.0.11-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file open-interview-1.0.11.tar.gz.

File metadata

  • Download URL: open-interview-1.0.11.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for open-interview-1.0.11.tar.gz
Algorithm Hash digest
SHA256 8cc593cb8eb9478d48c2869e79862b166c9c12c93a6f34d6e1f2a8a6688f2cc0
MD5 8c6fd36d4ec4a28d95b32f81aa180150
BLAKE2b-256 455efb9acc78897ba80f00f0495f8a4e942db2a083c429169837b3c77695bf96

See more details on using hashes here.

File details

Details for the file open_interview-1.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for open_interview-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e3f2ec35f1a67afe6147d8b7b987f1d57ea3810f92a4359a8c861ea5e58f2b1e
MD5 8211ef29e5ff2b0e2f48d2f774a7bc86
BLAKE2b-256 4b0439525929ed84093bc539960943136f9efa45e86f8fd32a56854abd5bfdeb

See more details on using hashes here.

Supported by

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