[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73495":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":21,"defaultBranch":22,"hasWiki":20,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":30,"discoverSource":31},73495,"search_with_lepton","leptonai\u002Fsearch_with_lepton","leptonai","Building a quick conversation-based search demo with Lepton AI.","https:\u002F\u002Fsearch.lepton.run",null,"TypeScript",8090,1005,1,38,0,2,40.01,"Apache License 2.0",true,false,"main",[24,25,7,26],"ai","ai-applications","llm","2026-06-12 02:03:14","\u003Cdiv align=\"center\">\n\u003Ch1 align=\"center\">Search with Lepton\u003C\u002Fh1>\nBuild your own conversational search engine using less than 500 lines of code.\n\u003Cbr\u002F>\n\u003Ca href=\"https:\u002F\u002Fsearch.lepton.run\u002F\" target=\"_blank\"> Live Demo \u003C\u002Fa>\n\u003Cbr\u002F>\n\u003Cimg width=\"70%\" src=\"https:\u002F\u002Fgithub.com\u002Fleptonai\u002Fsearch_with_lepton\u002Fassets\u002F1506722\u002F845d7057-02cd-404e-bbc7-60f4bae89680\">\n\u003C\u002Fdiv>\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:\u002F\u002Fwww.microsoft.com\u002Fen-us\u002Fbing\u002Fapis\u002Fbing-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:\u002F\u002Fwww.searchapi.io\u002F) from SearchApi, [Serper Google Search API](https:\u002F\u002Fserper.dev) from Serper, or opt for the [Programmable Search Engine](https:\u002F\u002Fdevelopers.google.com\u002Fcustom-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[![Deploy with Lepton AI](https:\u002F\u002Fgithub.com\u002Fleptonai\u002Fsearch_with_lepton\u002Fassets\u002F1506722\u002Fbbd40afa-69ee-4acb-8974-d060880a183a)](https:\u002F\u002Fdashboard.lepton.ai\u002Fworkspace-redirect\u002Fexplore\u002Fdetail\u002Fsearch-by-lepton)\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:\u002F\u002Fwww.lepton.ai\u002Fdocs\u002Freferences\u002Flep_photon).\n","Search with Lepton 是一个基于对话的快速搜索引擎构建项目。该项目利用不到500行代码即可创建自定义的搜索应用，支持大型语言模型（LLM）和多种搜索引擎（如Bing、Google等），并提供美观可定制的用户界面。此外，它还具备分享和缓存搜索结果的功能。此项目适用于需要将自然语言处理能力与传统搜索技术相结合的应用场景，比如企业内部知识库查询、网站内容检索等。通过简单的配置步骤，开发者能够轻松集成不同后端服务，并部署到Lepton AI平台上。","2026-06-11 03:45:50","high_star"]