search_with_ai

search_with_ai

🤖 Free Search with AI, 💡 Open-Source Perplexity, 📍 Support Ollama/SearXNG, Support Docker deployment. 让AI大模型和搜索引擎回答你的问题,支持本地大模型(Ollama)、聚合搜索引擎SearXNG,支持Docker一键部署。

Stars: 534

Visit
 screenshot

Build your own conversation-based search with AI, a simple implementation with Node.js & Vue3. Live Demo Features: * Built-in support for LLM: OpenAI, Google, Lepton, Ollama(Free) * Built-in support for search engine: Bing, Sogou, Google, SearXNG(Free) * Customizable pretty UI interface * Support dark mode * Support mobile display * Support local LLM with Ollama * Support i18n * Support Continue Q&A with contexts.

README:

Search with AI


Build your conversation-based search with AI, a simple implementation with Node.js & Vue3.

Live Demo

Github Stars License Report a bug Ask a question

English | 中文 | 日本語

Repositories: GitHub Gitee CNB

Features

  • Built-in support for LLM: OpenAI, Google, Lepton, DeepSeek, Ollama(local)
  • Built-in support for search engine: Bing, Google, SearXNG(Free)
  • Built-in support for web search plugin: ChatGLM
  • Customizable pretty UI interface
  • Support dark mode
  • Support mobile display
  • Support Ollama, LMStudio
  • Support i18n
  • Support Continue Q&A with contexts.
  • Support Cache results, Force reload.
  • Support images search.

Deploy with Docker (recommended)

Install Docker.

Project pre-built image Docker Hub

1.Get the code.

git clone https://github.com/yokingma/search_with_ai.git
cd search_with_ai

2.Edit .env.docker file. in docker directory.

If you modify the .env.docker file, simply restart the Docker container for the changes to take effect.

You must set at least one KEY.

...
# OpenAI's key & baseUrl
OPENAI_KEY=#your key
OPENAI_PROXY_URL=#baseURL

# Searxng hostname.
SEARXNG_HOSTNAME=http://searxng:8080

3.Edit model.json file. [Optional]

{
  "platform": "openai",
  "type": "openai",
  // add your models
  "models": ["o1-preview", "o1-mini", "gpt-4o", "gpt-4o-mini"]
}

4.run with docker-compose.

docker compose up -d

Then visit http://localhost:3000

5.Update

  • Delete old images using Docker Desktop or Docker CLI (if needed)
  • run docker compose down
  • run docker compose up -d

LLMs

Support

  • OpenAI ChatGPT
  • Google Gemini
  • Lepton LLama2、Mixtral8*7B
  • AliYun Qwen
  • Baidu Wenxin
  • 01.ai
  • Moonshot(Kimi)
  • DeepSeek
  • ChatGLM
  • Tencent Hunyuan
  • Ollama, LMStudio

Local LLM

Support Ollama, LMStudio

Search Engine

Built-in support for search engine: Bing, Google, SearXNG

SearXNG (Free, No Key required)

install SearXNG with searxng-docker

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. The service does not track or profile its users, providing online anonymity for those who seek it. Additionally, SearXNG can be used over Tor for online anonymity.

When you install SearxNG, the only active output format by default is the HTML format. You need to activate the json format to use the API. This can be done by adding the following line to the settings.yml file:

search:
    formats:
        - html
        - json

And set limiter to false:

server:
   limiter: false # default is true

You can also set the host in .env:

# SEARXNG_HOSTNAME=<host>

Bing Search

To use the Bing Web Search API, please visit this link to obtain your Bing subscription key.

The Bing Search API is billed, but has a free tier of 1000 calls per month.

Google Search

You have three options for Google Search: you can use the SearchApi Google Search API from SearchApi, Serper Google Search API from Serper, or opt for the Programmable Search Engine provided by Google.

ChatGLM Web Search

[2024/09/17] Added Zhipu AI's ChatGLM Web Search plugin, used as a Chinese search engine.

Zhipu AI's glm-flash is currently free, and its Web Search plugin is also free. Based on these two, ChatGLM has been added as a free Chinese search engine.

Setup

Required:

Node.js >= 20

  • Server
yarn install && yarn run build
  • Web
cd web && yarn install && yarn run build
  • Config(.env)

.env is the project configuration file. Please configure it according to your requirements.

.env.docker is for docker deployment.

  • Run In the root of the project:
yarn run start 
  • Update In the root of the project:
git pull
yarn install
cd web && yarn install && yarn run build

Now you can visit http://localhost:3000

License

This repository's source code is available under the MIT License.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for search_with_ai

Similar Open Source Tools

For similar tasks

For similar jobs