Skip to content

SaudAltamimi/search_with_lepton

 
 

Repository files navigation

Search with Lepton - Locally

Build your own conversational search engine for local files using less than 500 lines of code.

Features

  • Built-in support for Large Language Models (LLM)
  • Built-in support for local search engine
  • Customizable pretty UI interface
  • Shareable, cached search results

Setup Google Drive Real Time Search Engine API

Pathway Real Time Search - Google Drive

Follow this tutorial to guide you through connecting Pathway to your data stored on Google Drive. Make sure to place credentials.json in the same directory as pathway_retriever.py.

Setup LLM and KV

Note

We recommend using the built-in llm and kv functions with Lepton. Run the following commands to set them up automatically.

pip install -U leptonai && lep login

Build

  1. Run Pathway’s vector store for up-to-date knowledge and information retrieval for your Google Drive.
export OPENAI_API_KEY=YOUR_OPENAI_API_KEY # temporary
python pathway_retriever.py
  1. Build the web interface.
cd web && npm install && npm run build
  1. Run the server.
BACKEND=LOCAL python search_with_lepton.py

TODO: Deploy Locally

About

Building a quick conversation-based search demo with Lepton AI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 44.7%
  • TypeScript 30.3%
  • Python 24.0%
  • Other 1.0%