VetsAI is an AI-powered virtual assistant designed to help veterans navigate employment transitions and find opportunities in civilian careers. The app allows users to interact via chat, upload resumes in PDF or DOCX format, and receive tailored assistance, such as translating military job codes to civilian job suggestions.
- Chat Assistant: Ask questions and receive advice on job searching and career transitions.
- Military Job Code Translation: Provide a military job code (e.g., MOS, AFSC) to get suggestions for related civilian careers.
- Document Upload: Upload employment-related documents (PDF or DOCX), and VetsAI will process the content to assist with career suggestions.
- OpenAI Integration: Uses OpenAI's GPT-4 to generate responses based on the conversation context.
To run this application, ensure you have the following installed:
- Python 3.8 or later
- A virtual environment (recommended)
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Set up a virtual environment:
python -m venv venv source venv/bin/activate # For macOS/Linux .\venv\Scripts\activate # For Windows
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a .env file in the root of your project.
- Add your OpenAI API key to the .env file:
OPENAI_API_KEY=your-openai-api-key
-
Run the Streamlit app:
streamlit run app.py
-
Access the app: Open your web browser and navigate to http://localhost:8501.
- Chat: Ask questions about job searching, resume building, and military job code translations.
- Upload Resume: Upload a resume (PDF or DOCX), and VetsAI will process the text for further assistance.
- Military Job Codes: Enter your military job code (e.g., MOS, AFSC) to get suggestions for civilian careers.
app.py
: Main application script.data/employment_transitions/job_codes/
: Directory containing military job code files.requirements.txt
: Python package dependencies.
The following Python libraries are required to run this app:
streamlit
: For the web interface.httpx
: To make HTTP requests to OpenAI's API.nest-asyncio
: To allow nested event loops for async operations.better-profanity
: To filter profane language.PyPDF2
: For extracting text from PDF files.python-docx
: For reading DOCX files.python-dotenv
: To load environment variables from a .env file.openai
: To interact with OpenAI's API.
This project is licensed under the Apache License.