AI Personal Learning
and practical guidance

MindSearch: open source AI search engine framework to deploy your own Perplexity search engine!

General Introduction

MindSearch is an open-source AI search engine framework launched by Shanghai Artificial Intelligence Laboratory (SAL), which aims to simulate human thought process for complex information collection and integration. The tool combines the advanced technology of large-scale language modeling (LLM) and search engine, and realizes autonomous information collection and integration of hundreds of web pages through a multi-intelligence body framework, and gives comprehensive answers in a short time. Users can deploy their own search engines using closed-source LLM (e.g., GPT, Claude) or open-source LLM (e.g., InternLM2.5 series models).

The core logic is that a multi-intelligent body framework is used to model human thought processes, including two key components: the WebPlanner (layer) and WebSearcher (executor).

  • WebPlanner breaks down a user's question and builds a directed acyclic graph (DAG) to guide the search;
  • WebSearcher retrieves and filters valuable information from the Internet to WebPlanner;
  • WebPlanner eventually gives its conclusion.

MindSearch: open source AI search engine framework to deploy your own Perplexity search engine!

Function List

  • Multi-Intelligence Body Framework: Gathering and integrating complex information is achieved by multiple intelligences working in tandem.
  • Supports multiple LLMs: Compatible with both closed-source and open-source large language models, users can choose the appropriate model according to their needs.
  • Multiple front-end interfaces: Provide React, Gradio, Streamlit and other front-end interfaces for user convenience.
  • Deep Knowledge Exploration: Provides extensive and in-depth answers by navigating through hundreds of web pages.
  • Transparent solution path: Provide complete content such as thought paths and search terms to increase the credibility and usability of responses.

 

Using Help

Installation process

  1. Dependent Installation::
    git clone https://github.com/InternLM/MindSearch
    cd MindSearch
    pip install -r requirements.txt
    
  2. Configuring Environment Variables: Will.env.exampleRename the file to.env, and fill in the required values.
    mv .env.example .env
    # Open the .env file and add your key and model configurations
    
  3. Launch MindSearch API: Start the FastAPI server.
    python -m mindsearch.app --lang en --model_format internlm_server --search_engine DuckDuckGoSearch
    

    Parameter Description:

    • --lang: the language of the model.enfor English.cnfor Chinese.
    • ---model_format: the format of the model.internlm_serverfor InternLM 2.5-7b-chat local server.gpt4for GPT4.
    • --search_engine: Search engine, supports DuckDuckGo, Bing, Brave, Google, etc.
  4. Launch MindSearch front-end: The following front-end interfaces are available:
    • React::
      cd frontend/React
      npm install
      npm start
      
    • Gradio::
      python frontend/mindsearch_gradio.py
      
    • Streamlit::
      streamlit run frontend/mindsearch_streamlit.py
      

Usage Process

  1. Inquiry questions: Users can enter query questions through the front-end interface, and MindSearch will collect and integrate information through a multi-intelligence framework.
  2. View Results: MindSearch displays detailed search results for thought paths, search terms, etc. to increase the credibility and usability of the replies.
  3. Adjustment of search engines: Users can modify the search engine type to suit their needs, for example by switching to the Brave Search API:
    BingBrowser(searcher_type='BraveSearch', topk=2, api_key=os.environ.get('BRAVE_API_KEY', 'YOUR BRAVE API'))
    

AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " MindSearch: open source AI search engine framework to deploy your own Perplexity search engine!

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish