Skip to content

psd401/AIChatCore

 
 

Repository files navigation

AIChatCore

PSD Base code for building and running AI chatbots for different applications all throughout the district

aichatcore - forked version of ChatYTT

An application which allows users to leverage LLMs to retrieve natural language responses to questions about the contents of Youtube Videos e.g. asking questions on what was discussed in long form content like podcasts. It does so, using Retrieval Augmented Generation supplemented by Semantic Search over the embeddings of video transcripts. The application consists of four main components:

  • aichatcore: The core component containing interfaces to the Youtube API for fetching transcripts, the Pinecone DB vector database for storing embeddings of these transcripts (retrieved from OpenAIs embedding models), and langchain - the framework of choice for constructing prompts to and retrieving responses from LLMs.
  • server: A Flask API exposing endpoints to retrieve responses to queries, retrieving user chat history, and storing user chat history.
  • client: A React.js application providing a chat like user interface for asking questions, creating new chats to separate lines of questioning and saving chats for future reference.
  • deploy: The Cloudformation templates containing IaC used to deploy each component (with the AWS SAM CLI).

The architecture diagram below describe the end-end interactions of these components, as deployed on AWS:

Test Image !

Below is a demo of the web application:

Screen-2023-12-21-180035.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.7%
  • TypeScript 21.3%
  • CSS 9.6%
  • JavaScript 1.3%
  • HTML 1.1%
  • Makefile 0.5%
  • Shell 0.5%