This guide will walk you through the steps to quickly set up and run a demonstration of the LocalSearch project.
Ensure you have Docker installed on your machine. If not, you can download and install it from Docker's official website.
-
To execute a query and see the LocalSearch in action, use the following command:
python local_search/script/run_query.py query --query="What is Fermat's last theorem?"
Please register with SciPhi for a free API key for remote access to the entire database.
-
Database Population:
-
Run the following command to populate the SQLite database:
python local_search/script/populate_dbs.py populate_sqlite
This will create a SQLite database named
open_web_search.db
in thedata
directory. It would be rather slow to stream the entire 1tb of data into the database, so the database can be installed directly from [insert link].
-
-
Start Qdrant (vector database) Service with Docker:
-
Execute the following command to run the Qdrant service in a Docker container. This step will expose the necessary ports and set up the volume for Qdrant storage:
docker run -p 6333:6333 -p 6334:6334 \ -v $(pwd)/qdrant_storage:/qdrant/storage:z \ qdrant/qdrant
For help installing Qdrant, please refer to their documentation here.
-
-
Run the Server:
-
Start the LocalSearch server by executing:
python local_search/app/server.py
-
- Ensure all commands are run from the root directory of the LocalSearch project.
- Modify the
query
in the last step with your specific search query.