Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sifaoufatai/LegalLabourAI

Repository files navigation

⚖️ LegalLabourAI – French Labour Code Assistant 🇫🇷

LegalLabourAI is a Streamlit application powered by large language models (LLMs) that provides accurate, context-aware answers based on the French Labour Code.

🔗 Useful Links


🧠 Key Features

  • 🔍 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.

🚀 Run Locally

✅ Requirements

  • Python 3.9+
  • Ollama (for using the local Mistral model)
  • OpenAI API Key (if using GPT-3.5)

🛠️ Setup

git clone https://github.com/sifaoufatai/LegalLabourAI.git
cd LegalLabourAI
pip install -r requirements.txt

▶️ Start the App

streamlit run app.py

🗂️ Project Structure

LegalLabourAI/
├── app.py                         # Main Streamlit app
├── french_labour_code_vectordb/  # Chroma vector database (persistent embeddings)
├── requirements.txt              # Python dependencies
└── README.md                     # Project documentation

🧰 Technologies Used


🤝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the app.


📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


👨‍💻 Author

Fatai Idrissou AI Engineer passionate about law and technology. GitHub Profile


---

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published