Business context
Employees often have recurring questions about leave regulations, sick leave notification processes, and internal policies. The department in charge needs to look up documents or personnel data to respond to each case. THLOne builds an internal Q&A assistant that combines regulatory documents with HR data so employees can find information in natural language from one unified point.
Questions about vacation benefits, sick leave procedures, and remaining days of leave appear many times in the corporate environment. While part of the answer lies in regulatory documents, another part lies in individual employee data. If only using regular text search, users have to switch back and forth between multiple sources and ask the human resources department to confirm.
Implemented solution
THLOne implements a RAG architecture that combines a search corpus and language model, allowing the assistant to retrieve the appropriate information source before responding to a query.
To answer the right type of question, the assistant needs to combine two different sources: internal regulations documents and employee leave data sheets.
Key solutions include:
1. Q&A interface
Streamlit provides a chat interface for employees to submit questions in natural language.
2. Process service connection
FastAPI takes on the role of receiving requests and connecting system components.
3. RAG stream organization
LangChain orchestrates the process of retrieving relevant content from internal data sources before generating responses.
4. Semantic storage and search
ChromaDB stores data for semantic search.
5. Connecting language models
Ollama provides a locally run model for processing questions and generating responses.
6. Look up human resource data
The system exploits leave information from Google Sheets in addition to the content specified in the document.
The RAG architecture mines the regulatory document to find passages relevant to the question, while a native data stream supports the retrieval of leave information from connected HR sources. The question and answer interface combines the results of two search methods, helping users not have to switch between multiple tools. Controlling access to personal data is still a requirement that needs to be applied in practical implementation.
Results
The assistant supports employees in looking up leave regulations, sick leave notification procedures and leave information from connected data sources. Combining RAG with spreadsheet data helps the system handle both questions based on policy documents and questions that need to look up personnel information. The solution creates a centralized Q&A channel, helping to reduce repetitive lookup and feedback operations of the department in charge.
The Assistant combines retrieval of policy documents and spreadsheet data to respond to questions from these two sets of information in one interface. Employees can access regulations and related data faster, and the responsible department can reduce the number of repeat lookup requests. In actual implementation, access to personal data must still be established by role.

