Service for semantic search among any text. Used for quiz search.
- Make sure that you have installed lfs
git lfs install- Clone repository with submodules
git clone --recurse-submodules https://github.com/QuizCraftCorporation/SearchEngine.git- Create virtual environment and install dependencies
python -m venv venv(activate for Windows)
venv\Scripts\activatepip install -r requirements.txt- Run server with specified port and host address.
py server.py --address 127.0.0.1 --port 1234(you can set your own port and address if you want)
Post request to http://base_url/search/
Example of request body:
{
"query": "Psychology",
"number_of_results": 3
}Example of response body:
{
"operation": "SUCCESS",
"payload": [
{
"raw_quiz_data": "...",
"unique_id": "123"
}
]
}Post request to http://base_url/search/
Example of request body:
{
"raw_quiz_data": "...",
"unique_id": "123"
}Example of response body:
{
"operation": "SUCCESS"
}