{"data":{"slug":"leptonai-search-with-lepton","name":"search_with_lepton","tagline":"Building a quick conversation-based search demo with Lepton AI.","github_url":"https://github.com/leptonai/search_with_lepton","owner":"leptonai","repo":"search_with_lepton","owner_avatar_url":"https://avatars.githubusercontent.com/u/124112888?v=4","primary_language":"TypeScript","stars":8089,"forks":1003,"topics":["ai","ai-applications","leptonai","llm"],"archived":true,"github_pushed_at":"2025-12-02T03:48:24+00:00","maintenance_label":"Archived","url":"https://www.graphcanon.com/tools/leptonai-search-with-lepton","markdown_url":"https://www.graphcanon.com/tools/leptonai-search-with-lepton.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/leptonai-search-with-lepton","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=leptonai-search-with-lepton","description":"Building a quick conversation-based search demo with Lepton AI.","homepage_url":"https://search.lepton.run","license":"Apache-2.0","open_issues":47,"watchers":1,"ai_summary":null,"readme_excerpt":"<div align=\"center\">\n<h1 align=\"center\">Search with Lepton</h1>\nBuild your own conversational search engine using less than 500 lines of code.\n<br/>\n<a href=\"https://search.lepton.run/\" target=\"_blank\"> Live Demo </a>\n<br/>\n<img width=\"70%\" src=\"https://github.com/leptonai/search_with_lepton/assets/1506722/845d7057-02cd-404e-bbc7-60f4bae89680\">\n</div>\n\n\n## Features\n- Built-in support for LLM\n- Built-in support for search engine\n- Customizable pretty UI interface\n- Shareable, cached search results\n\n## Setup Search Engine API\nThere are two default supported search engines: Bing and Google.\n \n### Bing Search\nTo use the Bing Web Search API, please visit [this link](https://www.microsoft.com/en-us/bing/apis/bing-web-search-api) to obtain your Bing subscription key.\n\n### Google Search\nYou have three options for Google Search: you can use the [SearchApi Google Search API](https://www.searchapi.io/) from SearchApi, [Serper Google Search API](https://serper.dev) from Serper, or opt for the [Programmable Search Engine](https://developers.google.com/custom-search) provided by Google.\n\n## Setup LLM and KV\n\n> [!NOTE]\n> We recommend using the built-in llm and kv functions with Lepton. \n> Running the following commands to set up them automatically.\n\n```shell\npip install -U leptonai openai && lep login\n```\n\n## Obtain Your Lepton AI Workspace Token\nYou can copy your workspace toke from the Lepton AI Dashboard &rarr; Settings &rarr; Tokens.\n\n\n## Build\n\n1. Set Bing subscription key\n```shell\nexport BING_SEARCH_V7_SUBSCRIPTION_KEY=YOUR_BING_SUBSCRIPTION_KEY\n```\n2. Set Lepton AI workspace token\n```shell\nexport LEPTON_WORKSPACE_TOKEN=YOUR_LEPTON_WORKSPACE_TOKEN\n```\n3. Build web\n```shell\ncd web && npm install && npm run build\n```\n4. Run server\n```shell\nBACKEND=BING python search_with_lepton.py\n```\n\nFor Google Search using SearchApi:\n```shell\nexport SEARCHAPI_API_KEY=YOUR_SEARCHAPI_API_KEY\nBACKEND=SEARCHAPI python search_with_lepton.py\n```\n\nFor Google Search using Serper:\n```shell\nexport SERPER_SEARCH_API_KEY=YOUR_SERPER_API_KEY\nBACKEND=SERPER python search_with_lepton.py\n```\n\nFor Google Search using Programmable Search Engine:\n```shell\nexport GOOGLE_SEARCH_API_KEY=YOUR_GOOGLE_SEARCH_API_KEY\nexport GOOGLE_SEARCH_CX=YOUR_GOOGLE_SEARCH_ENGINE_ID\nBACKEND=GOOGLE python search_with_lepton.py\n```\n\n\n\n## Deploy\n\nYou can deploy this to Lepton AI with one click:\n\n\n\nYou can also deploy your own version via\n\n```shell\nlep photon run -n search-with-lepton-modified -m search_with_lepton.py --env BACKEND=BING --env BING_SEARCH_V7_SUBSCRIPTION_KEY=YOUR_BING_SUBSCRIPTION_KEY\n```\n\nLearn more about `lep photon` [here](https://www.lepton.ai/docs/references/lep_photon).","github_created_at":"2024-01-23T05:51:43+00:00","created_at":"2026-07-11T10:39:37.211922+00:00","updated_at":"2026-07-12T11:08:54.138871+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"},{"slug":"inference-serving","name":"Inference & Serving","url":"https://www.graphcanon.com/categories/inference-serving","markdown_url":"https://www.graphcanon.com/categories/inference-serving.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/inference-serving"},{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"ai","name":"ai"},{"slug":"ai-applications","name":"ai-applications"},{"slug":"leptonai","name":"leptonai"},{"slug":"llm","name":"llm"},{"slug":"typescript","name":"typescript"}],"trust":{"provenance":{"is_fork":false,"github_id":747030811,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-11T10:39:37.815Z","maintenance":{"label":"Archived","score":8,"methodology":"github_public_v1","releases_90d":0,"days_since_push":221,"last_release_at":null},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T10:39:38.645Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-07-11T10:39:38.283Z"},"languages":{"value":["typescript"],"source":"github.language","observed_at":"2026-07-11T10:39:38.283Z"},"license_spdx":{"value":"Apache-2.0","source":"github.license","observed_at":"2026-07-11T10:39:38.283Z"}}}}