Skip to content

Commit f436d28

Browse files
authored
Update README.md
1 parent f850e36 commit f436d28

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,53 @@ HR Buddy is an application which is inspired by HR Chatbot portals. Uses combina
55
The whole architecture is explain with the below picture.
66

77
![Architecture](media/wiki/Flowchart_v1.3.png)
8+
9+
## Prerequisites
10+
11+
Before running the application, ensure your system has the following:
12+
* **Docker & Docker Compose** installed.
13+
* **Hardware:** Minimum 8GB RAM (16GB+ recommended) to run the Llama 3.2 model smoothly.
14+
* **OS:** Linux or macOS (Windows users should use WSL2).
15+
16+
## Getting Started
17+
18+
If you are on MacOS / Linux, simply make the shell script executable
19+
20+
chmod +x run.sh
21+
22+
Then, just run the shell script.
23+
24+
./run.sh
25+
26+
Note: If you have any other shell instead of bash, open the first line of run.sh and replace the first line with the shell of your choice.
27+
28+
This script will handle all the setup of Ollama Package and the model and as well as builds the docker container.
29+
30+
## Tech Stack
31+
32+
* **Frontend:** Streamlit
33+
* **AI/LLM:** Ollama (Llama 3.2 3B)
34+
* **Embeddings:** Nomic Embed Text
35+
* **Vector Store:** ChromaDB
36+
* **Database:** MongoDB (for user authentication and chat history)
37+
* **Orchestration:** Langchain & Docker
38+
39+
## Customizing the HR Policy
40+
41+
By default, the application uses the provided 2016 HR Manual. To use your own data:
42+
1. Delete the existing PDF in the `rag_source/` directory.
43+
2. Place your company's HR policy PDF into `rag_source/`.
44+
3. Update the `PDF_PATH` variable in `main.py` if the filename changes.
45+
4. Restart the containers to trigger a fresh vector embedding.
46+
47+
## Troubleshooting
48+
49+
**Ollama Connection Refused inside Docker:**
50+
If the Streamlit app cannot reach Ollama, you need to configure Ollama to listen to the Docker bridge network.
51+
1. Run `sudo systemctl edit ollama.service`
52+
2. Add the following under the `[Service]` block:
53+
`Environment="OLLAMA_HOST=0.0.0.0"`
54+
3. Save, then run `sudo systemctl daemon-reload` and `sudo systemctl restart ollama`.
55+
56+
## Author
57+
**ToastCoder** * GitHub: [@ToastCoder](https://github.com/ToastCoder)

0 commit comments

Comments
 (0)