Giter VIP home page Giter VIP logo

chatty2's Introduction

Intro

Demo

Chatty will eventually be a modular chat UI that has easy swappable connections with various vector databases for retrieval.

Experiment and ship AI chat applications as fast as possible without having to spend too much time building the UI. This is not a safe space for Langchain users.

Goal

To finally have an ultra fast solution for iteratively building chat applications and experimenting with different tools, methods, and databases.

How To Use (Eventually)

Copy repo, plug in the connector for your db of choice, set your db host/port, set your keys, npm run dev and you should have a full functioning AI app with retrieval over your db.

Choose from a number of premade UI's until you find one you vibe with. Default, iOS messenger style, terminal style, cyberpunk style, uwu/soft style, etc etc

What's Done?

Not much

  • Default UI
  • OAI Chat Completions functionality
  • Response streaming (so proud of myself for figuring this out)

TODO

A lot (short term stuff)

  • Chroma connector and query function for retrieval

More (long term stuff)

  • Pinecone connector
  • Supabase connector
  • HuggingFace models functionality

File Guide

  • app/ - we use the Next.js app router thing because a lot of new AI tooling is built on top of it from the Vercel guys
  • app/page.js - the home page, since the point of this is just for the chat functionality we only have a single page
  • app/api/ - the folder that holds routing files
  • app/api/chat/route.js - route file that handles chat messages as well as sends prompts to the OAI API and then handles the response and allows for response streaming
  • components/ - component folder
  • components/chatBox.js - the larger component that pieces together the messages, input, and button components
  • components/inputBox.js - the component that makes up the input, where users type in their prompt
  • components/messagesBox.js - the component that makes up the messages history including user messages and AI responses
  • components/sendButton.js - the component that when clicked sends the text within the inputbox

chatty2's People

Contributors

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