As organizations grow, it becomes increasingly difficult for employees to find quick answers to questions about internal company policies such as HR policies, IT security guidelines, vacation policies, travel expense reimbursement procedures, etc. These documents are typically lengthy, stored in various formats, and difficult to search. To address this challenge, a proof-of-concept (PoC) for an AI chatbot has been launched that leverages Large Language Models (LLM) and Retrieval-Augmented Generation (RAG) to help employees retrieve accurate and contextual information through a natural language interface.
Assignment
Employees did not have ready access to policy information
Manually searching for documents is time-consuming and inefficient
Repeated inquiries to HR and administrative departments increased workload
The solution had to ensure data privacy and not expose information to external services.
Solution
Document Ingestion and Indexing
Supported file formats: PDF, DOCX, TXT
Documents are split into paragraphs and embeddings are generated using Sentence Transformers.
Embedded information is stored in a local FAISS vector database for fast retrieval
LLM and RAG Integration
Integrating OpenAI GPT-4 using LangChain
Extract relevant content from the Vector Store to generate LLM answers in context
All answers include source document and section references to ensure transparency
Query interface
Developing a simple and responsive web UI with React
Users can type in their questions and get clear answers with references
Security and Management Features
PoC implements simple login function, with future SSO integration in mind
Local document and embedded information storage ensures data privacy
Optional administration module allows document upload and usage monitoring
Result
index
result
Accuracy of answers
Answer 85% or more of the test questions correctly
Citation of sources
100% of answers include accurate references
response speed
Average 3.2 seconds
User ratings
Particularly well received by the HR and administrative departments
Usage example:
What are the company’s policies regarding sick leave? → “Employees are entitled to 12 days of paid sick leave per year.” [HR_Policy.pdf, Section 3.2]
Can unused paid leave be carried over? → “You can carry over up to five days.” [Leave_Policy.docx, Article 4.1]
“What are the steps to report a phishing email?” → “Please forward the email to infosec@company.com and delete it.” [IT_Security_Guidelines.pdf, page 8]
In conclusion
This PoC demonstrated the effectiveness of a solution using LLM and RAG to answer questions about internal company policies. The chatbot provided highly accurate, contextual answers with references, demonstrating its potential to reduce the burden on HR and administrative departments and contribute to improving employee satisfaction.