GithubHelp home page GithubHelp logo

blinnk / copperai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from athrael-soju/copperai

0.0 0.0 0.0 28.17 MB

CopperAI offers a hands-free, voice-to-voice interaction system with a Large Language Model (LLM)

Home Page: https://copper-ai.vercel.app

License: MIT License

JavaScript 4.67% TypeScript 92.64% CSS 2.55% Dockerfile 0.14%

copperai's Introduction

ezgif-4-58049cbd43

Copper AI

Status GitHub Issues GitHub Pull Requests License


Copper AI is a Voice to Voice Web Application that leverages the latest LLM Technologies to deliver a hands free user experience.

๐Ÿ“ Table of Contents

๐Ÿง Problem Statement

Professionals across various fields often confront unfamiliar or intricate situations, leading to inefficiencies and reduced customer satisfaction. Traditional solutions can be cumbersome, especially when professionals need hands-on interaction.

๐Ÿ’ก Idea / Solution

CopperAI offers a hands-free, voice-to-voice interaction system with a Large Language Model (LLM). Using voice commands, professionals can get instant guidance, troubleshooting steps, or relevant information without diverting their attention. Features:

  • Fully voiced, hands free interaction.
  • Persistent, multi user Vector based memory.
  • The Ability to ingest and interact with custom documents, or even books.
  • The ability to adjust its persona and response type based on user profile and professional aptitude.

โ›“๏ธ Dependencies / Limitations

  • Dependencies: Next.js, OpenAI, LangChain, Pinecone, MongoDB, Google Cloud Text-to-Speech, ElevenLabs and more.
  • Limitations: Potential limitations could relate to the accuracy of voice recognition, the need for an active internet connection

๐Ÿš€ Future Scope

Future enhancements could include integrating more advanced LLMs, expanding voice command capabilities, and supporting additional languages.

๐Ÿ Getting Started

These instructions will guide you on setting up CopperAI on your local machine for development.

Prerequisites

  • Ensure you have Node.js, MongoDB, and other related dependencies installed.
  • Copy your .env.public file to .env.local and populate environment variables.
# Main
NEXT_PUBLIC_AUDIO_DB_SENSITIVITY='-55'

# OpenAI
NEXT_PUBLIC_OPENAI_API_MODEL=
NEXT_PUBLIC_OPENAI_API_KEY=

# Auth
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET='secret'
GITHUB_ID=
GITHUB_SECRET=
GOOGLE_ID=
GOOGLE_SECRET=

# TTS - google | elevenlabs
NEXT_PUBLIC_TTS_PROVIDER="google"

# Google Cloud TTS
NEXT_PUBLIC_GOOGLE_CLOUD_TTS_ENCODING=MP3
NEXT_PUBLIC_GOOGLE_CLOUD_TTS_CLIENT_EMAIL=
NEXT_PUBLIC_GOOGLE_CLOUD_TTS_API_KEY=

# Eleven Labs TTS
NEXT_PUBLIC_ELEVENLABS_TTS_API_KEY=
NEXT_PUBLIC_ELEVENLABS_TTS_VOICE_ID_IRIS=
NEXT_PUBLIC_ELEVENLABS_TTS_VOICE_ID_JUDE=

# MongoDB
MONGODB_URI="mongodb+srv://<username>:<password>@<collection>.mongodb.net/?retryWrites=true&w=majority"

# Pinecone
NEXT_PUBLIC_PINECONE_API_KEY=
NEXT_PUBLIC_PINECONE_ENVIRONMENT=
NEXT_PUBLIC_PINECONE_NAMESPACE=
NEXT_PUBLIC_PINECONE_INDEX=
NEXT_PUBLIC_PINECONE_SIMILARITY_CUTOFF=0.75
NEXT_PUBLIC_PINECONE_TOPK=5

# Langchain 
NEXT_PUBLIC_LANGCHAIN_ENABLED="false"
NEXT_PUBLIC_LANGCHAIN_CHUNK_SIZE=1000
NEXT_PUBLIC_LANGCHAIN_OVERLAP_SIZE=0.2
NEXT_PUBLIC_USE_CHAT_HISTORY="false"
NEXT_PUBLIC_USE_CHAT_TEMPERATURE=0
NEXT_PUBLIC_USE_DOC_TEMPERATURE=0
NEXT_PUBLIC_RETURN_SOURCE_DOCS="true"

# Speechly Polyfill
NEXT_PUBLIC_SPEECHLY_APP_ID=

# File Upload
TMP_DIR="tmp"

Installing

Clone the repository and install the required packages.

git clone https://github.com/athrael-soju/CopperAI.git
cd CopperAI
npm install

๐ŸŽˆ Usage

After setting up, run npm run dev to launch the application. Visit http://localhost:3000 to access CopperAI. Alternatively:

  • Run docker-compose up --build -d for a local container
  • Deploy the app on Vercel viat github.

โ›๏ธ Tech Stack

  • Next.js - Web Framework
  • Docker - Containerization and deployment.
  • NodeJs - Backend, utilized by Next.js.
  • OpenAI API - ChatGPT model integration for chatbot functionality.
  • Google TTS - Converts text into natural-sounding speech in a variety of languages and voices.
  • Eleven Labs TTS - Generative AI Text to Speech & Voice Cloning
  • Langchain - Framework for developing applications powered by language models.
  • MongoDB Atlas - Cloud Database

โœ๏ธ Authors

๐ŸŽ‰ Acknowledgments

This is a Next.js project bootstrapped with create-next-app.

Contribute

  • Fork the repo
  • Make your changes
  • Submit a pull request
  • I'll review it and merge it

copperai's People

Contributors

athrael-soju 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.