Skip to main content

1. Obtain API Key

  1. Open the SiliconFlow website and register an account (if you have registered, log in directly).
  2. After completing the registration, go to the API Keys, create a new API Key, and copy the key for future use.

2. Deploy MindSearch

  1. Clone MindSearch to your local machine and install the required dependencies (refer to https://github.com/InternLM/MindSearch/blob/main/README.md).
  2. Modify: /path/to/MindSearch/mindsearch/models.py
  3. Add the configuration for calling the SiliconFlow API. The configuration is as follows:
After adding this configuration, you can execute the relevant commands to start MindSearch.
  1. Start the backend:
  1. Start the frontend. Here, we use Gradio as an example. For other frontends, refer to MindSearch’s README:
python frontend/mindsearch_gradio.py

3. Upload to HuggingFace Space

We can also choose to deploy it to a HuggingFace Space.
  1. Create a new Space on https://huggingface.co/new-space, configure it as:
Gradio Template: Blank Hardware: CPU basic · 2 vCPU · 16GB · FREE
  1. After creating the Space, go to “Settings” and set the API Key.
  2. Upload the MindSearch directory, requirements.txt, and an app.py file.
The detailed content of app.py can be found at: https://huggingface.co/spaces/SmartFlowAI/MindSearch_X_SiliconFlow/blob/main/app.py