SuperAPIAI Directory

search_with_lepton

github.com · AI developer platforms

Build your own conversational search engine using less than 500 lines of code by LeptonAI.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

Search with Lepton is an open-source conversational search demo project designed to show how to quickly build a conversational search experience combining a large language model (LLM) and a search engine in fewer than 500 lines of code. It is suitable for developers to learn, validate prototypes, or use as a foundation for building their own search applications.

Main Capabilities

  • Built-in LLM support: The project integrates Lepton AI's LLM capabilities, which can be used to understand and generate conversational search results.
  • Built-in search engine support: By default, it supports two search engines, Bing and Google. For Google, three access methods are provided: SearchApi's Google Search API, Serper's Google Search API, or Google's Programmable Search Engine.
  • Customizable UI interface: It provides a beautiful and customizable user interface, making it easy to adjust the appearance and interactions.
  • Shareable, cacheable search results: Search results can be cached and support shareable links, making them easy to revisit and spread.

Usage

  1. Configure the search engine API:
    • To use the Bing Web Search API, you need to obtain a Bing subscription key.
    • To use Google search, you can choose SearchApi, Serper, or Google Programmable Search Engine, and obtain the corresponding API key.
  2. Configure LLM and KV: It is recommended to directly use Lepton's built-in llm and kv features, which are automatically set up by running commands.
  3. Obtain a Lepton AI workspace token: Copy the workspace token from Lepton AI Dashboard → Settings → Tokens.
  4. Set environment variables: Set the Bing subscription key, the Lepton AI workspace token, and the corresponding API key according to the chosen Google search method.
  5. Deploy: You can deploy to Lepton AI with one click, or you can also deploy your own version through lep photon commands.

Applicable Scenarios

  • Developers want to quickly build a conversational search prototype.
  • Learn how to combine an LLM with a search engine to build intelligent search applications.
  • A small search tool that needs shareable and cacheable search results.

Limitations

  • Although the project has few lines of code, you still need to configure the search engine API and Lepton AI token yourself, involving external services.
  • By default, only Bing and Google search engines are supported, and no direct support for other search engines is mentioned.
  • It relies on the Lepton AI platform for LLM and KV features, and may be subject to platform limitations.
  • No specific performance metrics, pricing details, or large-scale production environment validation are provided.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools