LegalLabourAI is a Streamlit application powered by large language models (LLMs) that provides accurate, context-aware answers based on the French Labour Code.
- 🚀 Live App: LegalLabourAI on Streamlit
- 💻 Source Code: GitHub Repository
- 🔍 Semantic search across the French Labour Code.
- 🤖 LLM selection:
Local model (Ollama/Mistral)OpenAI GPT-3.5(API key required)
- 🧾 Conversation memory to maintain context across user interactions.
- 🗣️ Response adaptation based on question type:
- Greetings → friendly response in French.
- Out-of-scope questions → polite redirect.
- Labour law questions → answers strictly based on retrieved articles.
- 📚 Cited sources from the Labour Code in each answer.
- Python 3.9+
- Ollama (for using the local Mistral model)
- OpenAI API Key (if using GPT-3.5)
git clone https://github.com/sifaoufatai/LegalLabourAI.git
cd LegalLabourAI
pip install -r requirements.txtstreamlit run app.pyLegalLabourAI/
├── app.py # Main Streamlit app
├── french_labour_code_vectordb/ # Chroma vector database (persistent embeddings)
├── requirements.txt # Python dependencies
└── README.md # Project documentation
Contributions are welcome! Feel free to open issues or submit pull requests to improve the app.
This project is licensed under the MIT License. See the LICENSE file for details.
Fatai Idrissou AI Engineer passionate about law and technology. GitHub Profile
---