├── .dockerignore ├── .env.public ├── .eslintrc.json ├── .gitignore ├── .vscode └── settings.json ├── Dockerfile ├── LICENSE ├── README.md ├── components ├── Buttons.tsx ├── FileUpload.tsx ├── Recorder.tsx ├── Spinner.tsx ├── SyncButton.tsx ├── Visualizer │ └── Visualizer.tsx └── header │ ├── Header.tsx │ └── buttons │ ├── SignInButton.tsx │ ├── SignedOutIcon.tsx │ └── User.tsx ├── docker-compose.yml ├── hooks ├── useAudioSensitivity.ts ├── useProcessRecording.ts ├── useRecorder.ts ├── useSendMessage.ts └── useTextToSpeech.ts ├── lib ├── ChatType.ts ├── client │ ├── googleTTS.ts │ ├── langchain.ts │ ├── mobgodb.ts │ └── pinecone.ts ├── database.ts ├── langchain.ts ├── openAI.ts ├── pinecone.ts ├── templates.ts ├── utils.ts └── winstonConfig.ts ├── next.config.cjs ├── package.json ├── pages ├── _app.tsx ├── api │ ├── [action].ts │ ├── auth │ │ └── [...nextauth].ts │ └── handlers │ │ ├── processIngest.ts │ │ ├── processUpload.ts │ │ ├── sendMessage.ts │ │ └── textToSpeech.ts └── index.tsx ├── postcss.config.cjs ├── public ├── favicon.ico ├── next.svg └── vercel.svg ├── styles └── globals.css ├── tailwind.config.js ├── tsconfig.json └── types └── Conversation.ts /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.public: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/.env.public -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/README.md -------------------------------------------------------------------------------- /components/Buttons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/Buttons.tsx -------------------------------------------------------------------------------- /components/FileUpload.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/FileUpload.tsx -------------------------------------------------------------------------------- /components/Recorder.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/Recorder.tsx -------------------------------------------------------------------------------- /components/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/Spinner.tsx -------------------------------------------------------------------------------- /components/SyncButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/SyncButton.tsx -------------------------------------------------------------------------------- /components/Visualizer/Visualizer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/Visualizer/Visualizer.tsx -------------------------------------------------------------------------------- /components/header/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/header/Header.tsx -------------------------------------------------------------------------------- /components/header/buttons/SignInButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/header/buttons/SignInButton.tsx -------------------------------------------------------------------------------- /components/header/buttons/SignedOutIcon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/header/buttons/SignedOutIcon.tsx -------------------------------------------------------------------------------- /components/header/buttons/User.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/components/header/buttons/User.tsx -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /hooks/useAudioSensitivity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/hooks/useAudioSensitivity.ts -------------------------------------------------------------------------------- /hooks/useProcessRecording.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/hooks/useProcessRecording.ts -------------------------------------------------------------------------------- /hooks/useRecorder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/hooks/useRecorder.ts -------------------------------------------------------------------------------- /hooks/useSendMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/hooks/useSendMessage.ts -------------------------------------------------------------------------------- /hooks/useTextToSpeech.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/hooks/useTextToSpeech.ts -------------------------------------------------------------------------------- /lib/ChatType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/ChatType.ts -------------------------------------------------------------------------------- /lib/client/googleTTS.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/client/googleTTS.ts -------------------------------------------------------------------------------- /lib/client/langchain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/client/langchain.ts -------------------------------------------------------------------------------- /lib/client/mobgodb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/client/mobgodb.ts -------------------------------------------------------------------------------- /lib/client/pinecone.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/client/pinecone.ts -------------------------------------------------------------------------------- /lib/database.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/database.ts -------------------------------------------------------------------------------- /lib/langchain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/langchain.ts -------------------------------------------------------------------------------- /lib/openAI.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/openAI.ts -------------------------------------------------------------------------------- /lib/pinecone.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/pinecone.ts -------------------------------------------------------------------------------- /lib/templates.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/templates.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /lib/winstonConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/lib/winstonConfig.ts -------------------------------------------------------------------------------- /next.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/next.config.cjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/[action].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/api/[action].ts -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /pages/api/handlers/processIngest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/api/handlers/processIngest.ts -------------------------------------------------------------------------------- /pages/api/handlers/processUpload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/api/handlers/processUpload.ts -------------------------------------------------------------------------------- /pages/api/handlers/sendMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/api/handlers/sendMessage.ts -------------------------------------------------------------------------------- /pages/api/handlers/textToSpeech.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/api/handlers/textToSpeech.ts -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /postcss.config.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/postcss.config.cjs -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/Conversation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athrael-soju/CopperAI/HEAD/types/Conversation.ts --------------------------------------------------------------------------------