Giter Site home page Giter Site logo

oshoura / islamai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mayooear/gpt4-pdf-chatbot-langchain

7.0 0.0 1.0 10.54 MB

A GPT-4 powered Chatbot that is grounded in Islamic Sources

Home Page: https://islam-ai-eta.vercel.app/

JavaScript 1.46% TypeScript 79.46% CSS 10.90% Python 8.18%
chatbot chatgpt gpt-4 islam langchain pinecone

islamai's Introduction

IslamGPT : The first AI Chatbot grounded in Islamic Sources

Try it here

What is it

This is a Chatbot grounded in Islamic sources. It can answer questions about the Quran, Hadiths, or Seerah of the Prophet SAW and will return all the source documents.

How it works

The scrips/ingest.ts script will load all the sources from the web/directory, chunk them, embed them using OpenAI's eda modal then upsert them to Pinecone.

The api uses Langchain and gpt-3.5. The Langchain chain will first formulate a question using the current user's question, and the chat history (using gpt-3.5). Using that question, it'll query Pinecone for the four most relevant sources. The final chain will again use gpt-3.5 to return an answer to the user based on the source documents.

The project is built using Next.js and deployed using Vercel.com

Credit

Frontend of this repo is inspired by langchain-chat-nextjs

Big help with the front end from Aman Ali

Skeleton forked from https://www.youtube.com/watch?v=ih9PBGVVOO4

islamai's People

Contributors

amaan630 avatar ankri avatar mayooear avatar oshoura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ototao

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.