Coder Social home page Coder Social logo

mada-vector's Introduction

One-Click RAG: A self-hosted RAG that runs on Vercel + Postgres

A Next.js template that uses Vercel Postgres as the database, Prisma as the ORM with pgvector to enable vector similarity search, and OpenAI's text-embedding-ada-002 model for embeddings, Llamaindex for indexing pages.

If you like this tool and starter kit, add a star on GitHub and follow me on X @madarco!

Demo

https://mada-vector.vercel.app/

How to Install

One-click Deploy with:

Deploy with Vercel

You'll only need to set 3 variables:

  • OPENAI_API_KEY: obtain this from your OpenAI console
  • ADMIN_USER: pick a username to use to login to the admin area
  • ADMIN_PASSWORD: pick a password to use for the admin area

Admin Area

To index new pages, simply add them in the admin area in /admin. To login use your ADMIN_USER and ADMIN_PASSWORD credentials that you previously defined in the env variables.

Local Installation

Use create-next-app with pnpm to bootstrap the example:

pnpm create next-app --example https://github.com/madarco/mada-vector

Once that's done, copy the .env.example file in this directory to .env.local (which will be ignored by Git):

cp .env.example .env.local

Then open .env.local and set the environment variables to match the ones in your Vercel Storage Dashboard or run:

vercel env pull

Next, run Next.js in development mode:

pnpm dev

Made by Marco D'Alia @madarco

mada-vector's People

Contributors

madarco avatar

Stargazers

Davi William Moraes Suga avatar  avatar  avatar Agrim Singh avatar Joe Cole avatar

Watchers

 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.