Skip to content

Commit ad2df48

Browse files
committed
Replace architecture PNG with Mermaid diagram, remove old flowchart
1 parent f531ae7 commit ad2df48

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,31 @@
22

33
HR Buddy is an application which is inspired by HR Chatbot portals. Uses combination of Llama (LLM) + Nomic (Embedding) models. Uses Retrieval Augumented Generation for identify the context strictly from the HR Policies PDF.
44

5-
The whole architecture is explain with the below picture.
6-
7-
![Architecture](media/HRBuddy-Flowchart.png)
5+
```mermaid
6+
flowchart TD
7+
UI["Streamlit UI"]
8+
SESS["Session State<br/>(history, session_id)"]
9+
MDB[("MongoDB<br/>Auth & Chat History")]
10+
11+
subgraph RAG [RAG Engine]
12+
direction LR
13+
subgraph Hybrid [Hybrid Retrieval]
14+
SEM["Semantic Search<br/>ChromaDB + OllamaEmbeddings<br/>(MMR, fetch_k=18)"]
15+
BM25["Keyword Search<br/>BM25 (heading-enriched<br/>chunks, top_k=6)"]
16+
FUSION["Weighted Fusion<br/>(semantic=0.7, bm25=0.3)"]
17+
SEM --> FUSION
18+
BM25 --> FUSION
19+
end
20+
CTX["Context Assembly<br/>(top_k=6 documents)"]
21+
LLM["Ollama Llama 3.2<br/>3B params<br/>(temp=0.1, ctx=4096)"]
22+
Hybrid --> CTX --> LLM
23+
end
24+
25+
UI --> SESS
26+
SESS --> MDB
27+
UI -->|"user input + history"| RAG
28+
LLM -->|"response stream"| UI
29+
```
830

931
## Prerequisites
1032

media/HRBuddy-Flowchart.png

-922 KB
Binary file not shown.

0 commit comments

Comments
 (0)