Giter Site home page Giter Site logo

sorokinvld / think-ai-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maanvithag/think-ai-ui

0.0 1.0 0.0 1.04 MB

An LLM-based chatbot trained on philosophical texts built using OpenAI GPT models, Langchain Tokenizers, HuggingFace transformers, and Meta BART summarization model wrapped in a NextJS web app hosted completely on AWS

Home Page: http://thinkai.live

License: MIT License

JavaScript 11.38% TypeScript 85.68% CSS 2.93%

think-ai-ui's Introduction

ThinkAi

ThinkAi UI

Website Code License NextJS React TypeScript TailwindCSS

ThinkAi is an LLM-based chatbot trained on philosophical texts using InstructGPT embeddings, Chroma's Vector Search, LangChain tokenizers for text chunking, Meta's bart-large-cnn model for summarizing, and OpenAI's gpt-3.5-turbo model for structuring the final response. This is wrapped with a NextJS web app hosted completely on AWS (AWS Amplify, AWS Elastic Beanstalk, and AWS EC2)

Basic User Flow:

Here is how ThinkAi processes each user query;

  • User pings the web client with a query.
  • Chroma DB creates embeddings for this query
  • Using vector search, Chroma DB pulls the most relevant articles for the query
  • The summaries for these articles is pulled from the preprocessed JSON file from below and are combined by simple concatenation
  • The combined text is included in prompt for OpenAI GPT model
  • API call to OpenAI gpt-3.5-turbo model and get response
  • Response is sent back to the user

ThinkAi

think-ai-ui's People

Contributors

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