Giter VIP home page Giter VIP logo

coachabi's Introduction

PDF-CHAT AI โœจ๐Ÿค–๐Ÿ’ป๐Ÿ—ƒ๏ธ

An AI-powered PDF chat built with Next.js 13, Vercel's AI SDK, Langchain, and PineconeDB

๐Ÿ‘ท๐Ÿพโ€โ™‚๏ธ Want to Learn How to Build It?

Check out the tutorial on my YT channel

Demo

Demo.1.mov

Architecture

Embed LLM

๐Ÿ‘ฉโ€๐Ÿš€ Description

Built with:

  • โœ… Next.js 13
  • โœ… Vercel's AI SDK
  • โœ… Shadcn-ui
  • โœ… Langchain TypeScript integration
  • โœ… PineconeDB as the knowledge store
  • โœ… Dark Mode with persistent theme-switching

๐Ÿ—ƒ๏ธ Pre-requisites

  • Create a free account and get an OPEN_AI key from platform.openai.com
  • Create a free account and get access to PineconeDB
  • And populate your .env file with the required information.

๐Ÿ’ฌ Good to know

  • The PineconeDB index creation happens when we run npm run prepare:data, but its better to create it manually if you dont want the command to fail.
  • If the command fails, then give sometime for pinecone index to get initialized and try to run the command again, it should work eventually.

๐Ÿงž Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run prepare:data Splits your PDF file under the /docs folder into chunks, embeds them, uploads them to Pinecone
npm run dev Starts the local dev server at localhost:3000

๐Ÿšธ Roadmap

  • โœ… Add sources to the streamed chat bubble
  • ๐Ÿšง Clean up and show proper error messages
  • ๐Ÿšง Sanitize input and output source documents

๐Ÿ‘๐Ÿฝ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

coachabi's People

Contributors

mzafarr avatar rajeshdavidbabu 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.