Giter Club home page Giter Club logo

sensei's Introduction

Sensei Search

Sensei Search is an AI-powered tool designed to deliver the relevant search results.

Demo

http://sensei-frontend.default.52.24.120.109.sslip.io/

Screenshots

Screenshot

Tech Stack

Sensei Search is built using the following technologies:

  • Frontend: Next.js, Tailwind CSS
  • Backend: FastAPI, OpenAI client
  • LLMs: Mistral-7b and Command-R
  • Search: SearxNG
  • Memory: Redis
  • Deployment: AWS, Paka

How to Run Sensei Search

You can run Sensei Search either locally on your machine or in the cloud.

Running Locally

Follow these steps to run Sensei Search locally:

  1. Prepare the backend environment:

    cd sensei_root_folder/backend/
    mv .env.development.example .env.development

    Edit .env.development as needed. The example environment assumes you run models through Ollama. Make sure you have reasonably good GPUs to run the command-r model.

  2. No need to do anything for the frontend.

  3. Run the app with the following command:

    cd sensei_root_folder/
    docker compose up
  4. Open your browser and go to http://localhost:3000

Running in the Cloud

We deploy the app to AWS using paka. Please note that the models require GPU instances to run.

Before you start, make sure you have:

  • An AWS account
  • Requested GPU quota in your AWS account

The configuration for the cluster is located in the cluster.yaml file. You'll need to replace the HF_TOKEN value in cluster.yaml with your own Hugging Face token. This is necessary because the mistral-7b and command-r models require your account to have accepted their terms and conditions.

Follow these steps to run Sensei Search in the cloud:

  1. Install paka:

    pip install paka
  2. Provision the cluster in AWS:

    make provision-prod
  3. Deploy the backend:

    make deploy-backend
  4. Deploy the frontend:

    make deploy-frontend
  5. Get the URL of the frontend:

    paka function list
  6. Open the URL in your browser.

sensei's People

Contributors

jjleng 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.