This project is a movie search application that uses a neural network to provide search results. It consists of a Python backend that handles the neural search and a React frontend for the user interface.
The project is divided into two main parts:
- The Python backend located in the root directory and the
scratch_1directory. The backend handles the neural search functionality. It uses theNeuralSearcherclass fromscratch_1/search.pyand thecreate_document_fastembedandcreate_document_multi_langfunctions fromscratch_1/store.pyto create and search through the document embeddings. - The React frontend located in the
movie-search-uidirectory. The frontend provides a user interface for the movie search. It uses thehandleSearchandsearchMoviesfunctions frommovie-search-ui/src/App.jsto handle user input and search for movies.
To set up the Python backend, you need to install the required Python packages. You can do this by running the following command in your terminal:
pip install -r requirements.txtThen, you can start the backend by running the service.py script:
python service.pyTo set up the React frontend, navigate to the movie-search-ui directory and install the required Node.js packages:
cd movie-search-ui
npm installYou can then start the frontend by running the following command:
npm startThis will start the frontend in development mode. Open http://localhost:3000 to view it in your browser.
To use the application, simply type your search query into the search bar in the frontend. The application will then use the neural network to search for relevant movies and display the results.
Contributions are welcome. Please submit a pull request if you have something to add or fix.
This project is licensed under the MIT License.