bamerf / ai

A Javascript AI project

Home Page:https://ai-bamerf.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI powered knowledge base

Overview

This repository contains a Next.js application that utilizes LangChain.js, Pinecone Database, and OpenAI's GPT-3.5 Turbo API. The main intent of this project is to supply necessary information to chat GPT, store it in a long-term memory (Pinecone vector DB), and then use it as a knowledge base to provide useful responses.

Tech Stack

Getting Started

Prerequisites

  • Node.js
  • Yarn
  • Pinecone API key
  • OpenAI API key

Installation

  1. Clone the repo

    git clone git@github.com:bamerf/ai.git
  2. Install dependencies

    yarn install
  3. Create a .env.local file in the root directory and add your credentials for pinecone and openAI.

  4. Put all necessary files in the docs directory. and run

    yarn generate-embeddings-pinecone
  5. Run the development server

    yarn dev
  6. Open http://localhost:3000 with your browser to see the result. Now you should be able to ask knowledge base relevant questions and get right answers.

About

A Javascript AI project

https://ai-bamerf.vercel.app

License:MIT License


Languages

Language:TypeScript 47.5%Language:JavaScript 25.1%Language:PLpgSQL 12.3%Language:Dockerfile 9.5%Language:CSS 5.6%