In our career at big and startups, we have hardly enjoyed HR workflow eventhough they are critical part of firms and meant to be simple and helpful. In our small ways, we want to fix it by building tools that make HR workflow simple, helpful, and feel-like coaching vs what it is today - complex, stressful, and time-consuming.
If this is something that excites you, please reach out to us at ajabhish@gmail.com.
Demo of our first tool:
Ajitesh.Abhishek.s.Video.-.Dec.2.2024-VEED.6.mp4
We aim to keep this open source so that you can use it with no strings attached, contribute to it, and make something useful for the world.
- Performance Review Generation
- Self-Review Generation
- Support for multiple LLM providers (OpenAI, Google, Anthropic, Groq)
- Audio input for reviews (with transcription for Groq LLM)
- Streamlit web interface
- FastAPI backend for API access
-
Clone the repository
-
Create a virtual environment
python -m venv .venv
- Install the required packages:
pip install -r requirements.txt
- Use the following command to run the Streamlit app and FastAPI backend:
streamlit run app.py
This will start the web interface where you can:
- Choose between Performance Review and Self-Review
- Select LLM provider and model size
- Input your API key
- Enter review details or record audio
- Generate reviews based on your input
Run the FastAPI server:
uvicorn backend.app_fastapi:app --host 0.0.0.0 --port 8000
API endpoints:
- POST
/generate_review
: Generate a performance review - POST
/generate_self_review
: Generate a self-review
-
Build the Docker Image:
Navigate to the root directory of the project and run:
docker build -t performance-review-api .
-
Run the Docker Container:
Start the Docker container:
docker run -p 8000:8000 performance-review-api
This command maps port 8000 on your local machine to port 8000 in the Docker container, making the FastAPI application accessible at
http://localhost:8000
. -
Verify the Application is Running:
Open a web browser and navigate to
http://localhost:8000
. You should see the welcome message defined in theroot
endpoint.You can also use
curl
to test the root endpoint:curl http://localhost:8000/
You should see a response like:
{"message": "Welcome to the Performance Review API"}
ReviewRequest
: Pydantic model for performance review requestsgenerate_review()
: Main function to generate performance reviews- Supports custom questions or uses default questions
SelfReviewRequest
: Pydantic model for self-review requestsgenerate_self_review()
: Main function to generate self-reviews- Allows for custom questions and additional instructions
- Streamlit interface for both performance reviews and self-reviews
- Audio recording and transcription support
- Dynamic form based on review type selection
- FastAPI backend with endpoints for generating reviews and self-reviews
- CORS middleware enabled for API access from different origins
Supported LLM providers:
- OpenAI
- Anthropic
- Groq
Make sure to provide your own API key for the selected LLM provider when using the application.
We welcome contributions from the community! If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Create a pull request
Also, this is the first tool in the set of tools we want to build to simplify HR workflow and make what it should about - simple, helpful, feel-like coaching vs what it is today - complex, stressful, and time-consuming.
- π§ Email: ajabhish@gmail.com
- π Website: getopenhrai.com
This project is open-sourced under the MIT License - see the LICENSE file for details.
Made with β€οΈ by the OpenHR AI Team