/MindSearch

LLM-based Multi-agent Framework of AI Search Engine

Primary LanguagePythonApache License 2.0Apache-2.0

🌐 Project Page | 📃 Paper | 💻 Playground

English | 简体中文

352934970-71c3017a-6909-4893-a90f-f0de1f5e4653.mp4

✨ MindSearch: Mimicking Human Minds Elicits Deep AI Searcher

MindSearch is an open-source AI Search Engine Framework with Perplexity.ai Pro performance. You can simply deploy it with your own perplexity.ai style search engine with either close-source LLMs (GPT, Claude) or open-source LLMs (InternLM2.5-7b-chat). It owns following features:

  • 🤔 Ask everything you want to know: MindSearch is designed to solve any question in your life and use web knowledge.
  • 📚 In-depth Knowledge Discovery: MindSearch browses hundreds of web pages to answer your question, providing deeper and wider knowledge base answer.
  • 🔍 Detailed Solution Path: MindSearch exposes all details, allowing users to check everything they want. This greatly improves the credibility of its final response as well as usability.
  • 💻 Optimized UI Experimence: Providing all kinds of interfaces for users, including React, Gradio, Streamlit and Terminal. Choose any type based on your need.
  • 🧠 Dynamic Graph Construction Process: MindSearch decomposes the user query into atomic sub-questions as nodes in the graph and progressively extends the graph based on the search result from WebSearcher.

⚡️ MindSearch vs other AI Search Engines

Comparison on human preference based on depth, breadth, factuality of the response generated by ChatGPT-Web, Perplexity.ai (Pro), and MindSearch. Results are obtained on 100 human-crafted real-world questions and evaluated by 5 human experts*.

* All experiments are done before July.7 2024.

⚽️ Build Your Own MindSearch

Dependencies Installation

pip install -r requirements.txt

Setup MindSearch API

Setup FastAPI Server.

python mindsearch/app.py

Setup MindSearch Frontend

Providing following frontend interfaces:

  • React
cd frontend/React
npm install
npm start
  • Gradio
python frontend/gradio.py
  • Streamlit
streamlit run frontend/streamlit.py

🐞 Debug in Locally

python mindsearch/terminal.py

License

This project is released under the Apache 2.0 license.