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.
https://youtu.be/6NzlLT4RVW4?si=5vDgNtFHDVC1NMit
1. Set your OpenAI API key
export OPENAI_API_KEY="sk_..."(or in .env.example and rename it to .env).
npm installnpm run dev4. Navigate to http://localhost:3000.
You can deploy this project to Vercel or any other platform that supports Next.js.
- Full-featured : http://localhost:3000/examples/all
app/components/chat.tsx- handles chat rendering, streaming, and function call forwardingapp/components/file-viewer.tsx- handles uploading, fetching, and deleting files for file search
api/assistants-POST: create assistant (only used at startup)api/assistants/threads-POST: create new threadapi/assistants/threads/[threadId]/messages-POST: send message to assistantapi/assistants/threads/[threadId]/actions-POST: inform assistant of the result of a function it decided to callapi/assistants/files-GET/POST/DELETE: fetch, upload, and delete assistant files for file search