[![My Skills](https://skillicons.dev/icons?i=nextjs,tailwind,react,vercel,ts,supabase)](https://skillicons.dev)Buy Me A Coffee # ChatFiles ## Deploy with Vercel

Deploy with Vercel

> this repository use [LangchainJS](https://github.com/hwchase17/langchainjs), based on [Chatbot-ui](https://github.com/mckaywrigley/chatbot-ui) Technical architecture ![Embedding](./doc/Embedding.png) Product screenshot. ![ChatFiles](./doc/chatfiles.png) **Upload your file and have a conversation with it.** ## How to use it ### Init Vector DB [Crate a vector db on Supabase](doc/vectordb/supabase.md) ### How to run locally without limited 1. clone this repository. 2. create a .env file on root path. 3. set environment variables in .env file follow [doc/env-vars.md](doc/env-vars.md). open browser with http://localhost:3000 ## How to run locally ### chatfiles-ui ```shell npm install npm run dev ``` ### How to deploy on vercel 1. Click the Deploy Button. 2. Set environment variables follow [doc/env-vars.md](doc/env-vars.md). 3. Pay attention to the NEXT_PUBLIC_CHAT_FILES_UPLOAD_PATH value must be /tmp. ## Feature - [x] Chat with GPT-3.5 - [x] Chat with file by langchainjs and supabase vector db. ## Star History [![Star History Chart](https://api.star-history.com/svg?repos=guangzhengli/ChatFiles&type=Date)](https://star-history.com/#guangzhengli/ChatFiles&Date) ## Sponsors [![Buy Me A Coffee](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/iguangzhengli) More Sponsor methods: https://guangzhengli.com/sponsors ### Who is sponsoring this project? Sponsored by [The best china travel guide website](https://chinagotrip.com)

johnliu33   noxonsu   magedhelmy1   Zhang Andy   Huayu-Qin