Giter Site home page Giter Site logo

av1d / laiser Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.38 MB

An experimental local web search engine assistant frontend and CLI for ollama and llama.cpp with a focus on being extremely lightweight and easy to run. The goal is to provide something along the lines of a minimalist Perplexity.

License: MIT License

Python 58.67% JavaScript 21.99% CSS 16.20% HTML 3.13%
ai cli localllama localllm search-algorithm search-engine

laiser's Introduction

LAISer

Local AI-Assisted Web Search

An experimental local search engine assistant frontend and CLI for ollama and llama.cpp with a focus on being extremely lightweight and easy to run. The goal is to provide something along the lines of a minimalist Perplexity. The web interface is responsive and works well with mobile devices.

Examples: Screenshot 01 Screenshot 02 Screenshot 03

It is written in Python 3 with Flask which provides a web-based UI, or you can run it from the command line instead.

If you can run ollama or llama.cpp then you can use this application.

It works by asking it a question or query like you would any other search engine.
It provides citations for all articles it references.
It does not chat, it only returns an answer.

The functionality is rudimentary, naive and serves as a basic proof-of-concept to show that feeding search results into a model can enhance the quality of the search results without doing anything fancy.

It will likely work with any halfway decent model but these are the ones I've tested it with. You don't really need anything fancy here. These are the tested models and they can be run on CPU (though may be a bit slow):

for llama.cpp:

for ollama:

  • stablelm-zephyr: ollama pull stablelm-zephyr
  • solobsd/rocket-3b: ollama pull solobsd/rocket-3b * untested
  • undi95/xwin-mlewd: ollama pull undi95/xwin-mlewd * untested

Known issues & limitations:

  • It currently only supports one web request at a time.
  • Doesn't allow refinement, it's "one and done".
  • Doesn't work with Firefox mobile or desktop. Use literally any other browser instead.
  • There are probably bugs.

Install:

git clone https://github.com/av1d/LAISer.git
cd LAISer
pip install -r requirements.txt

Run:

  • Make sure you have ollama or llama.cpp installed and running.
  • Edit your settings in the file settings.py

Now you can use it one of two ways:
python3 search.py -s or --server for server mode, or:
python3 search.py -q "What is the cost of a new TV?" or --query for command-line mode.

Found it useful? Tips appreciated but not required.

laiser's People

Contributors

av1d avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.