官方网站 | https://github.com/InternLM/MindSearch |
---|---|
GIT地址 | https://github.com/InternLM/MindSearch |
GIT Star数 | 5777 |
开发语言 | JavaScript |
话题 | ai-search-engine, gpt, llm, llms, multi-agent-systems, perplexity-ai, search, searchgpt, transformer, web-search |
GIT信息最后更新日期 | 2025/01/28 02:25 |
许可 | Apache-2.0 |
简介 | 模仿人类思维引发深度人工智能搜索 |
git clone https://github.com/InternLM/MindSearch
cd MindSearch
pip install -r requirements.txt
Before setting up the API, you need to configure environment variables. Rename the .env.example
file to .env
and fill in the required values.
mv .env.example .env
# Open .env and add your keys and model configurations
Setup FastAPI Server.
python -m mindsearch.app --lang en --model_format internlm_server --search_engine DuckDuckGoSearch --asy
--lang
: language of the model, en
for English and cn
for Chinese.
--model_format
: format of the model.
internlm_server
for InternLM2.5-7b-chat with local server. (InternLM2.5-7b-chat has been better optimized for Chinese.)gpt4
for GPT4. if you want to use other models, please modify models--search_engine
: Search engine.
DuckDuckGoSearch
for search engine for DuckDuckGo.BingSearch
for Bing search engine.BraveSearch
for Brave search web api engine.GoogleSearch
for Google Serper web search api engine.TencentSearch
for Tencent search api engine.Please set your Web Search engine API key as the WEB_SEARCH_API_KEY
environment variable unless you are using DuckDuckGo
, or TencentSearch
that requires secret id as TENCENT_SEARCH_SECRET_ID
and secret key as TENCENT_SEARCH_SECRET_KEY
.
--asy
: deploy asynchronous agents.
Providing following frontend interfaces,
First configurate the backend URL for Vite proxy.
HOST="127.0.0.1" # modify as you need
PORT=8002
sed -i -r "s/target:\s*\"\"/target: \"${HOST}:${PORT}\"/" frontend/React/vite.config.ts
# Install Node.js and npm
# for Ubuntu
sudo apt install nodejs npm
# for windows
# download from https://nodejs.org/zh-cn/download/prebuilt-installer
# Install dependencies
cd frontend/React
npm install
npm start
Details can be found in React
python frontend/mindsearch_gradio.py
streamlit run frontend/mindsearch_streamlit.py