A Streamlit app that creates an AI persona based on interview transcripts, allowing you to have conversations with the interviewee.
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables: Copy the example environment file and add your API keys:
cp .env.example .env
Then edit
.envand replace the placeholder values with your actual API keys:OPENROUTER_API_KEY=your_openrouter_api_key_here PINECONE_API_KEY=your_pinecone_api_key_here COHERE_API_KEY=your_cohere_api_key_here -
Run the app:
streamlit run app.py
-
Initialize the system:
- The app will show a simple "Initialize AI System" button
- Click it to start the RAG setup process
- Watch the progress as it loads the transcript, creates embeddings, and sets up the database
- Once complete, you can start chatting with the AI persona
- OpenRouter API Key: Sign up at openrouter.ai to get access to GPT-4 and other models
- Pinecone API Key: Sign up at pinecone.io for vector database storage
- Cohere API Key: Sign up at cohere.ai for better embeddings (optional)
app.py- Main Streamlit applicationpilot.py- Backend logic for persona creation and Q&Ainterview.pdf- Interview transcript to create the persona fromrequirements.txt- Python dependencies
- Creates an AI persona from interview transcripts
- Interactive chat interface with modern UI
- On-demand RAG system initialization - no more slow loading!
- Real-time progress tracking during system setup
- Cohere AI embeddings for better semantic search
- Persistent conversation history
- Error handling and user feedback
- Responsive design
- Never commit your
.envfile - it contains sensitive API keys - The
.envfile is already in.gitignoreto prevent accidental commits - Use
.env.exampleas a template for your environment variables - If you accidentally commit API keys, immediately rotate them in your service accounts
If you see a blank page:
- Check that all required API keys are set in your
.envfile - Ensure you have an active internet connection
- Verify that
interview.pdfexists in the project directory - Check the terminal for any error messages