This project provides a tool for simulating conversations between an AI assistant and a user. It's designed to help developers rapidly iterate on and improve their AI assistants, particularly for tasks like conducting interviews or generating reports.
- Simulates back-and-forth conversations using OpenAI's API
- Retrieves initial context from Pinecone vector database
- Saves conversation logs for review and analysis
- Allows easy modification of system prompts and initial contexts
- Python 3.7+
- OpenAI API key
- Pinecone API key
- An OpenAI assistant ID
-
Clone the repository:
git clone https://github.com/grandSpecial/interview-simulation.git cd interview-simulation
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your environment variables:
cp .env.example .env
Edit the
.env
file and add your API keys and other required information.
Run the simulation script:
python3 simulate.py
The script will generate a simulated conversation and save the log in the logs
directory.
Adjust the following in the .env
file:
OPENAI_API_KEY
: Your OpenAI API keyORGANIZATION_ID
: Your OpenAI organization ID (if applicable)PINECONE_KEY
: Your Pinecone API keyASSISTANT_ID
: The ID of your OpenAI assistantINDEX
: Your Pinecone index nameDOC_ID
: The document ID for initial contextSYSTEM_PROMPT
: The system prompt for the simulated respondent
Contributions are welcome! Please feel free to submit a Pull Request.
This tool is for development and testing purposes only. Ensure you comply with OpenAI's use-case policy and terms of service when using this simulation tool.