This is the backend part for the Project solution ultimate
The c++ part is a rest api coded with cpprestsdk and sqlite3
Cmake 3.28 and ninja are required
-
cpprestsdk:
If you have apt, run:
sudo apt update sudo apt install libcpprest-dev
-
sqlite3:
Same for sqlite3:
sudo apt update sudo apt install sqlite3 libsqlite3-dev
To compile, simply execute this command:
cmake --build ./cmake-build-debug --target project_solution_finder_ultimate_backend -j 6
To run the program, run the following command:
./cmake-build-debug/project_solution_finder_ultimate_backend ./plateforme.db [--export]
The --export
option is used to export all the solutions in a solutions.json file
Python 3.12
Create a python virtual environment using for example virtualenv
To check if virtualenv is already installed :
pip list | grep virtualenv
If virtualenv does not appear, run :
pip install virtualenv
Move to the directory containing project-solution-finder-ultimate-backend :
cd path/to/project-solution-finder-ultimate-backend`
To create a virtual environment, execute the following command :
python<version> -m venv .venv
Activate the virtual environment :
source .venv/bin/activate
Download all required librairies :
pip install -r requirements.txt
reimers-2019-sentence-bert
- Title : Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
- Author : Reimers, Nils and Gurevych, Iryna
- Booktitle : Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing
- Month : November
- Year : 2019
- Publisher : Association for Computational Linguistics
reimers-2020-multilingual-sentence-bert
- Title : Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation
- Author : Reimers, Nils and Gurevych, Iryna
- Booktitle : Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing
- Month : November
- Year : 2020
- Publisher : Association for Computational Linguistics