Skip to content

daram62/Corning_AI_Challenge

Repository files navigation

2024 Corning AI Challenge Team 777

Corning HR Helper ChatBot

Develop an advanced system that leverages Large Language Models (LLM) to analyze large-scale survey documents. It will feature a user-friendly chatbot interface, enabling users to interact with the LLM to obtain specific information efficiently.

Demo Video

https://youtu.be/6NzlLT4RVW4?si=5vDgNtFHDVC1NMit

image

Setup

1. Set your OpenAI API key

export OPENAI_API_KEY="sk_..."

(or in .env.example and rename it to .env).

2. Install dependencies

npm install

3. Run

npm run dev

4. Navigate to http://localhost:3000.

Deployment

You can deploy this project to Vercel or any other platform that supports Next.js.

Deploy with Vercel

Pages

Main Components

  • app/components/chat.tsx - handles chat rendering, streaming, and function call forwarding
  • app/components/file-viewer.tsx - handles uploading, fetching, and deleting files for file search

Endpoints

  • api/assistants - POST: create assistant (only used at startup)
  • api/assistants/threads - POST: create new thread
  • api/assistants/threads/[threadId]/messages - POST: send message to assistant
  • api/assistants/threads/[threadId]/actions - POST: inform assistant of the result of a function it decided to call
  • api/assistants/files - GET/POST/DELETE: fetch, upload, and delete assistant files for file search

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •