search_with_lepton  by leptonai

Conversational search engine demo

created 1 year ago
8,134 stars

Top 6.5% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a conversational search engine demo built with Lepton AI, enabling users to create a custom search experience with less than 500 lines of code. It targets developers and researchers looking for a quick way to prototype AI-powered search applications with integrated LLM and customizable UI.

How It Works

The demo leverages Lepton AI's framework for seamless integration of Large Language Models (LLMs) and key-value (KV) stores. It supports multiple search engine backends, including Bing, Google (via SearchApi, Serper, or Programmable Search Engine), allowing users to choose their preferred data source. The architecture is designed for simplicity and rapid prototyping, with a focus on a shareable and cached search results experience.

Quick Start & Requirements

  • Install: pip install -U leptonai openai && lep login
  • Prerequisites: Bing Search API key (BING_SEARCH_V7_SUBSCRIPTION_KEY), Lepton AI Workspace Token (LEPTON_WORKSPACE_TOKEN), and optionally API keys for Google Search (SearchApi, Serper, or Programmable Search Engine).
  • Setup: Requires setting environment variables for API keys and tokens. The web frontend needs npm install && npm run build.
  • Run: BACKEND=BING python search_with_lepton.py (or other backends).
  • Deployment: One-click deployment to Lepton AI or via lep photon run.

Highlighted Details

  • Built-in support for LLMs and KV stores via Lepton AI.
  • Customizable UI and shareable, cached search results.
  • Supports multiple search engine APIs (Bing, Google variants).
  • Deployable to Lepton AI platform.

Maintenance & Community

The project is maintained by Lepton AI. Further community engagement details are not explicitly provided in the README.

Licensing & Compatibility

The README does not specify a license. Compatibility for commercial use or closed-source linking is not detailed.

Limitations & Caveats

The project is presented as a demo, and its production-readiness or long-term support status is not specified. Obtaining API keys for various search engines is a prerequisite.

Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
72 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.