Skip to content

QuizCraftCorporation/SearchEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Engine Server

Service for semantic search among any text. Used for quiz search.

How to install and run

  1. Make sure that you have installed lfs
git lfs install
  1. Clone repository with submodules
git clone --recurse-submodules https://github.com/QuizCraftCorporation/SearchEngine.git
  1. Create virtual environment and install dependencies
python -m venv venv

(activate for Windows)

venv\Scripts\activate
pip install -r requirements.txt
  1. 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)

How to use

Searching for text

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"
    }
  ] 
}

Saving text

Post request to http://base_url/search/
Example of request body:

{
	"raw_quiz_data": "...",
	"unique_id": "123"
}

Example of response body:

{
	"operation": "SUCCESS"
}

About

Simple and optimized search engine service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages