Hello everyone, I am Orange Brother!
The reason is that a few days ago I wrote an article using Siliconflow’s large model API and Google Search to build an AI search engine to obtain more accurate search results.
Building your own AI search engine with 100 lines of code
This AI search engine based on a large model includes both command line and web interactive versions. This project uses a large model to process user queries, retrieves information through Google Search, and generates responses using Siliconflow’s SiliconCloud large model API. The web interactive version ultimately displays results in Streamlit, while the command line version can directly generate a markdown file with the answers. The large language models supported by SiliconCloud are as follows:
Users input keywords, and the large model can automatically think and analyze the user’s intent behind the search keywords, decide whether to perform a Google search, analyze the Google search results, scrape information from the internet, and provide more precise search results.
In this project, I used SiliconCloud’s large model API because it supports the OpenAI API format and allows switching between dozens of large models with just one line of code, which is very convenient. In the above example, I used the Qwen2 large model for Chinese processing, which is very quick and easy.
The founder of SiliconFlow is Yuan Jinhui, who holds a PhD in engineering from Tsinghua University. He was the founder and CEO of OneFlow (OneFlow Technology), which developed a high-performance distributed deep learning framework. Later, he co-founded Beyond Lightyears, which was later acquired by Meituan, and Yuan Jinhui served as a senior researcher at Microsoft Research Asia. Recently, SiliconFlow completed nearly 100 million yuan in angel+ round financing.
The complete code, video explanation, and details of this project can be found by scanning the QR code to join the community, and searching for the keyword “AI search” to obtain the download link and password. Currently, the community has held five technical live broadcasts related to AI agents on Tencent Meetings.
Click Read Original to enter AI Search Feishu Document