{"id":20300890,"url":"https://github.com/dsdanielpark/open-interview","last_synced_at":"2025-04-11T13:24:17.401Z","repository":{"id":228930588,"uuid":"774830431","full_name":"dsdanielpark/open-interview","owner":"dsdanielpark","description":"Open Interview automates technical Q\u0026A generation from resumes, offers document and audio outputs, and customizable settings for efficient interview prep.","archived":false,"fork":false,"pushed_at":"2024-05-08T00:37:09.000Z","size":4063,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-10T10:52:04.963Z","etag":null,"topics":["claude-interview","gpt-interview","interview","llm-application","tech-interviews","voice-interview"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/open-interview/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsdanielpark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"dsdanielpark","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-03-20T09:15:18.000Z","updated_at":"2024-07-01T07:24:37.000Z","dependencies_parsed_at":"2024-03-29T05:20:27.560Z","dependency_job_id":"d160b244-5a62-4b47-ac62-692009369bdf","html_url":"https://github.com/dsdanielpark/open-interview","commit_stats":null,"previous_names":["dsdanielpark/open-interview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsdanielpark%2Fopen-interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsdanielpark%2Fopen-interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsdanielpark%2Fopen-interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsdanielpark%2Fopen-interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsdanielpark","download_url":"https://codeload.github.com/dsdanielpark/open-interview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224651560,"owners_count":17347199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-interview","gpt-interview","interview","llm-application","tech-interviews","voice-interview"],"created_at":"2024-11-14T16:21:58.352Z","updated_at":"2024-11-14T16:21:59.173Z","avatar_url":"https://github.com/dsdanielpark.png","language":"Python","funding_links":["https://github.com/sponsors/dsdanielpark"],"categories":[],"sub_categories":[],"readme":"# Open Interview \u003cimg alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/open-interview?color=black\"\u003e\n\nLooking to practice mock interviews tailored to your resume and job description? Seeking an technical interview simulation? \nDive in with the Python open-source package `open-interview`. \n\n\n\n\n\u003cp align=\"right\"\u003e\n  \u003ca href=\"https://github.com/dsdanielpark/open-interview\"\u003e\u003cimg alt=\"pip download\" src=\"https://img.shields.io/badge/pip_install-open_interview-black\"\u003e\u003c/a\u003e \n  \u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://hits.seeyoufarm.com\"\u003e\u003cimg src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fdsdanielpark%2Fopen-interview%2F\u0026count_bg=%23000000\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://img.shields.io/pepy/dt/open-interview?logoColor=black\"\u003e\u003cimg alt=\"Downloads\" src=\"https://pepy.tech/badge/open-interview\"\u003e\u003c/a\u003e\n  \u003c!-- \u003ca href=\"https://github.com/dsdanielpark/Gemini-API/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/dsdanielpark/Gemini-API?style=social\"\u003e\u003c/a\u003e --\u003e\n\u003c/p\u003e\n\n\nhttps://github.com/dsdanielpark/open-interview/assets/81407603/22f9b991-33e8-40d2-a4f2-b80199415767\n\n\n\n\nTransform 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.\n\n\n\n- [Open Interview ](#open-interview-)\n  - [Stellar Features](#stellar-features-)\n  - [Commencing Voyage](#commencing-voyage)\n    - [Prerequisites](#prerequisites)\n    - [Installation](#installation-)\n    - [Quick Start](#quick-start)\n      - [Using Claude](#using-claude)\n      - [Using GPT](#using-gpt)\n      - [Playing Random Question Audio](#playing-random-question-audio)\n    - [Usage](#usage)\n  - [Contribution](#contribution)\n  - [FAQ \\\u0026 Support](#faq--support)\n  - [License](#license-️)\n\n\n\u003cbr\u003e\n\n## Stellar Features ✨\n- **🌍 Universal Language Support:** Emphasize the ability to accommodate all languages across the following features:\n- **🖋️ Dynamic Q\u0026A Alchemy:** Craft your arsenal with precision—generate nuanced technical interview Q\u0026As distilled from the essence of your resume and the job description.\n- **📖 Document Genesis:** Automate the creation of elegant Word documents (.docx), encapsulating your personalized interview Q\u0026As for study and reflection.\n- **🎧 Sonic Refinement:** Convert your Q\u0026As into audio files, enabling auditory mastery and convenience for your preparatory rituals.\n- **🌐 Cosmos Customization:** Navigate your preparation through customizable orbits—fine-tune preferences for job designation, interview cadence, lingua franca, and narrative complexity.\n\n\u003cbr\u003e\n\n\n## Commencing Voyage\nWelcome to the nexus of your interview preparation odyssey.\n\n\u003e [!IMPORTANT] \n\u003e 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.\n\n\n### Prerequisites\n\n- **Python \u003e= 3.7:** Ensure your command module is updated to version 3.7 or beyond.\n- **🔑 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. \n\n\n\n\n### Installation 📦\n\n```bash\npip install open-interview\n```\n```\ngit clone https://github.com/dsdanielpark/open-interview.git\npip install -r requirements.txt\n```\n\n\u003cbr\u003e\n\n\n### Quick Start   \n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1NWCwuunRRR2C2b0vmYk6Tm-JxV4yzSt9#scrollTo=bebO3UiGbIaD) \n\n\n\n\n\nGenerate interview content using Claude or GPT models with minimal setup:\n\n#### Using Claude\n\n\u003e [!IMPORTANT] \n\u003e Increasing the `iteration` argument can generate more QAs but may lead to duplicates and excessive token usage, as it's an experimental feature.\n\n\n```python\nfrom openinterview import InterviewManager\n\nclaudeToken = \"\u003cyour_claude_token\u003e\"\nclaude_interview_manager = InterviewManager(api_key=claudeToken, engine=\"Claude\")\n\njd = \"\"\"\nThe 'jd', 'resume', and other arguments\ncan accommodate extensive text.\n\"\"\"\n\nclaude_interview_manager.generate_interview(\n    jd=jd,\n    resume=\"path/resume.pdf or path/resume.txt or long text.\",\n    position= \"AI Researcher\",\n    interview_type=\"techQAsFromResume\",\n    language=\"English\", # Any language you want\n    max_sentence=5,\n    output_dir=\"save/dirs\",\n    iteration=1, # [Caution] You can make more QAs, But it cost token very fastly.\n)\n```\n\n#### Using GPT\n\n```python\nimport openai\nfrom openinterview import InterviewManager\n\nopenai.api_key = \"\u003cyour_openai_token\u003e\"\ngpt_interview_manager = InterviewManager(api_key=openai.api_key, engine=\"GPT\")\n\ngpt_interview_manager.generate_interview(\n    jd=\"This role demands a deep enthusiasm for AI development.\", # Feasible for long text\n    resume=\"path/resume.pdf or path/resume.txt or long text.\",\n    position= \"AI Researcher\",\n    interview_type=\"techQAsFromResume\",\n    language=\"English\", # Any language you want\n    max_sentence=5,\n    output_dir=\"save/dirs\",\n    iteration=1, # [Caution] You can make more QAs, But it cost token very fastly.\n)\n```\n\n\n\nThe `interview_type` arguments as follow:\n  - *generalQAs*: Ask about technical and personal skills in-depth.\n  - *generalTechQAs*: Ask basic professional questions related to the job.\n  - *techQAsFromResume*: Focus on technical skills listed on the resume.\n  - *techQAsFromExperts*: Questions based on interviewer's expertise.\n  - *techQAs*: Questions based on both parties' experiences.\n  - *personalityQAs*: Inquire about personal qualities.\n  - *reviewResume*: Identify and suggest improvements for the resume.\n\n\n#### Playing Random Question Audio\n\nTo 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`:\n\n```python\nfrom openinterview import RandomPlayer\n\np = RandomPlayer(directory=\"path/to/output\", interval=120)  # Directory containing question.mp3 files\np.play_random_mp3()\n```\nDefault plays randomly for 2 minutes. Press 'n' for next question, 'q' to quit.\n\n\u003cbr\u003e\n\n### Usage\n\nFor detailed examples, refer to the 📋[Usage document for example code and prompting engineering](https://github.com/dsdanielpark/open-interview/blob/main/docs/usage.md) or the 💻[tutorial script](https://github.com/dsdanielpark/open-interview/blob/main/script/example.ipynb).\n\n- OpenAI GPT: Use `GptGenerator` for GPT-based content generation.\n- Anthropic Claude: Use `ClaudeGenerator` for Claude-based interviews.\n\n\nYou can use [LangChain](https://python.langchain.com/docs/get_started), [LangSmith](https://python.langchain.com/docs/langsmith/), [LangServe](https://python.langchain.com/docs/langserve), and [LangGraph](https://python.langchain.com/docs/langgraph) for faster and more efficient coding and services. You can check [few-shot prompt template](https://python.langchain.com/docs/modules/model_io/prompts/few_shot_examples) in LangChain. Also, you can try faster RAG with [Llama Index](https://www.llamaindex.ai/). However, this project is used for general and efficient search for other my private projects.\n\n\u003cbr\u003e\n\n## Contribution\nFor detailed guidance on contributions, please refer to the [contribution guide](https://github.com/dsdanielpark/open-interview/blob/main/docs/contributions.md). We appreciate your interest in contributing and look forward to your valuable input. \n\nThank you for supporting our project.\n\n## FAQ \u0026 Support\n\nFor questions and support, visit our [FAQ](https://github.com/dsdanielpark/open-interview/blob/main/documents/faq.md) and [Issues](https://github.com/dsdanielpark/open-interview/issues) pages. Contributors are welcome! Submit issues, feature suggestions, or pull requests.\nReach out to the core maintainer, [Daniel Park](https://github.com/DSDanielPark), for direct contributions or queries.\n\n\n## License ©️ \n[Apache 2.0](https://opensource.org/license/apache-2-0) license, 2024. \n\n\u003cbr\u003e\u003cbr\u003e\n\nInheritance through LangChain or BaseModel, prompt disambiguation, and refined prompt engineering were omitted for rapid development within one day.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsdanielpark%2Fopen-interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsdanielpark%2Fopen-interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsdanielpark%2Fopen-interview/lists"}