--- license: mit title: Assitant-Tiya sdk: streamlit emoji: 🐨 colorFrom: red colorTo: red short_description: Assitant for Dhanvanth Voona app_file: app.py --- # AI Resume Assistant A Streamlit-based LLM assistant that helps you tailor your resume and cover letter based on job descriptions. ## Features 1. **Resume Finder** - Automatically selects the most relevant portfolio (AI or Data Science) based on job description 2. **Cover Letter Generator** - Creates customized cover letters using your selected resume 3. **General Query** - Answers questions about your application with relevant context ## Setup ### 1. Install Dependencies ```bash pip install -r requirements.txt ``` ### 2. Configure API Keys Create a `.env` file in the project directory: ``` OPENROUTER_API_KEY=your_openrouter_api_key_here OPENAI_API_KEY=your_openai_api_key_here ``` Or provide API keys through the Streamlit UI sidebar. ### 3. Ensure Portfolio Files Exist Make sure you have: - `AI_portfolio.md` - `DS_portfolio.md` in the same directory as `app.py` ### 4. Run the Application ```bash streamlit run app.py ``` ## How It Works ### Input Section - **Job Description** (Required) - Paste the job posting - **Resume Finder** (Optional) - Check to find the best matching resume - **Cover Letter** (Optional) - Check to generate a cover letter - **Length of Resume** (Optional) - Choose response length (short/medium/long) - **Select Resume** (Optional) - Choose AI_portfolio or DS_portfolio - **Entry Query** (Optional) - Ask specific questions (max 5000 characters) ### Processing Logic The system categorizes inputs based on your selections: | Resume Finder | Cover Letter | Select Resume | Action | |---|---|---|---| | ✓ | ✗ | No Select | **Resume Finder** - Picks best portfolio | | ✗ | ✓ | Resume_P/Dss | **Cover Letter** - Generates cover letter | | ✗ | ✗ | Resume_P/Dss | **General Query** - Answers your question | | Any other combination | | | **Retry** - Validation error | ### Output Each category produces: 1. **Resume Finder Output** - Selected Resume: Resume_P or Resume_Dss - Reasoning: 25-30 words explaining why 2. **Cover Letter Output** - Professional cover letter (<250 words) - Starts with "Dear Hiring Manager," - Ends with "Best, Dhanvanth Voona" 3. **General Query Output** - Natural human-like response - Tailored to specified word count - Ready to use in applications ## API Usage ### Resume Finder - **Model:** openai/gpt-oss-safeguard-20b - **Provider:** OpenRouter - **Requires:** OPENROUTER_API_KEY ### Cover Letter & General Query - **Model:** gpt-4o-mini - **Provider:** OpenAI - **Requires:** OPENAI_API_KEY ## Notes - All LLM outputs are without preamble for direct usage - Cover letters have no em dashes as per specifications - General queries are kept under word limits specified - Responses are formatted to be immediately usable in applications