An AI-powered Employee Knowledge Management System built using Flask, SQLite, and Groq LLM API. This system helps organizations store employee problem-solving experiences and allows users to ask questions and receive intelligent answers based on saved organizational knowledge.
The Employee Knowledge System is designed to capture employee knowledge, workplace problems, solutions, and lessons learned in a centralized system.
Instead of losing valuable experience when employees leave or change roles, this platform stores knowledge and uses AI to answer questions based on previously recorded information.
The application also includes a dashboard for tracking knowledge entries, employees, and AI queries.
- Employee knowledge submission
- AI-based question answering system
- Knowledge database storage
- Dashboard with analytics
- View employee knowledge records
- Delete knowledge entries
- Question history tracking
- User-friendly web interface
- HTML
- CSS
- JavaScript
- Python
- Flask
- SQLite
- Groq API
- Llama 3.1 8B Instant Model
- Flask
- OpenAI SDK
- SQLite3
- Python Dotenv
employee-knowledge-system/
โโโ app.py
โโโ .env
โ
โโโ database/
โ โโโ knowledge.db
โ
โโโ static/
โ โโโ style.css
โ โโโ script.js
โ
โโโ templates/
โ โโโ welcome.html
โ โโโ index.html
โ โโโ ask.html
โ โโโ view.html
โ
โโโ uploads/
โ
โโโ vector_store/
Employees submit:
- Employee Name
- Department
- Problem faced
- Solution implemented
- Lesson learned
This information is stored in an SQLite database.
When a user asks a question:
- The question is stored in the database.
- Previously stored employee knowledge is retrieved.
- A prompt is generated dynamically.
- The prompt is sent to the Groq API using the Llama model.
- AI generates a practical answer based on employee experiences.
The dashboard displays:
- Total knowledge entries
- Total employees
- Total AI queries
- Recent knowledge entries
- Recently asked questions
Employee Input
โ
Store in SQLite Database
โ
User Asks Question
โ
Retrieve Stored Knowledge
โ
Generate Prompt
โ
Groq LLM API (Llama 3.1)
โ
AI Response Generated
โ
Display Answer to User
git clone <repository-url>cd employee-knowledge-systempip install flask openai python-dotenvAdd your Groq API key:
GROQ_API_KEY=your_api_key_herepython app.pyOpen:
http://127.0.0.1:5000/
| Column | Description |
|---|---|
| id | Unique ID |
| employee_name | Employee name |
| department | Department name |
| problem | Problem faced |
| solution | Solution applied |
| lesson | Lesson learned |
| Column | Description |
|---|---|
| id | Unique ID |
| question | User asked question |
Landing page of the application.
Displays analytics and employee knowledge statistics.
Allows users to ask questions and receive AI-generated responses.
Displays all stored knowledge records.
- Prevents knowledge loss in organizations
- Reuses employee expertise
- Fast knowledge retrieval
- AI-assisted practical responses
- Easy to use and lightweight system
Developing the Employee Knowledge System involved several challenges. One major challenge was connecting the Flask backend with the SQLite database and managing employee knowledge efficiently. Another challenge was generating meaningful AI responses using stored knowledge through prompt engineering. Proper handling of API keys using environment variables and integrating the Groq API with Flask also required careful implementation. Designing a clean and responsive interface while maintaining smooth communication between frontend and backend was another challenge faced during development.
- Authentication and login system
- Role-based access control
- Knowledge search functionality
- File/document upload support
- Better dashboard analytics
- Vector database integration for advanced retrieval
- Semantic search using embeddings
Developed as an AI-powered knowledge management project using Flask and Groq LLM.