This project is a search engine for the French Labor Code. It provides two entry points: load_data.py
for loading a CSV table as the data source, and main.py
for querying the system.
To get started with this project, follow the steps below: To get started with this project, follow the steps below:
- Clone the repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt
. - Rename the
.env-example
file to.env
and provide the necessary environment variables. - Run the
load_data.py
script to load the CSV table as the data source. - Execute the
main.py
script to start querying the system.
It was written for linux, and if you use MacOS, you have to delete following libraries from requirements.txt
- torch
- torchaudio
- torchvision
- debugpy and then install them with pip
To load the CSV table as the data source, run the following command and provide path to file.csv:
python load_data.py data/extrait_travail.csv
This script will parse the CSV file and populate the search engine with the relevant data.
To query the search engine, use the main.py
script.
This script provides a command-line interface for searching the French Labor Code. Simply enter your search query, and the system will return the relevant results.
Run the following command and provide path to vector_storage from load_data.py script:
python main.py path/to/storage
Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.