An AI powered project to help job seekers by crafting cover letters. Host it on your local machine and use it to generate cover letters for your job applications.
anukool-demo.mp4
- Clone the repo
git clone https://github.com/dakshesh14/anukool.git
cd anukool
- Create a virtual environment
python3 -m venv venv
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Add the environment variables and populate them
cp .env.example .env
By default, the app will use openai's model. If you wish to change that to llama-2, change the MODEL_NAME
variable in .env
file to llama-2-7b.ggmlv3.q8_0.bin
.
Note: if you change the model to something other than openai's, you will have to download the model and place it in
models
folder. To download the model, run the following command(taking 7b model as an example):
cd models
wget https://huggingface.co/TheBloke/Llama-2-7B-GGML/resolve/main/llama-2-7b.ggmlv3.q8_0.bin?download=true
or in powershell 👇
Invoke-WebRequest -Uri "https://huggingface.co/TheBloke/Llama-2-7B-GGML/resolve/main/llama-2-7b.ggmlv3.q8_0.bin?download=true" -OutFile "models\llama-2-7b.ggmlv3.q8_0.bin" # in powershell
Additionally, you will have to populate the HUGGINGFACEHUB_API_TOKEN
variable in .env
file. To get the token, go to huggingface and copy the token.
-
Add your pdf in
docs
folder. -
Run the script
python ingest.py # to ingest the pdf
uvicorn main:app --reload
- Open the browser and go to
http://localhost:8000/
to view the app.
Contributions are welcome! In fact to promote the open source culture, I launched this project in under GPL-3.0 License. Feel free to open an issue or submit a pull request.
- FastAPI
- LangChain
- OpenAI
- Llama-2
- and others for their unwavering support.
- Reduce hallucination
- Add option for llama-2 model
- Add option for users to download cover letter in pdf format
While this project is far from perfect, I wish that it will bring value to the community and the job seekers. I hope that it will help you in your job search. If you like this project, please consider giving it a star. If you want to connect with me, you can find me on the following platforms: