Next.js Discord

Discord Forum

Can this repo be used with a custom rag pipeline?

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
https://github.com/vercel/ai-chatbot?tab=readme-ov-file

I was using this repo and wanted to modify it to run on a custom pipeline running on hugging face spaces, I've implemented the /api/chat/route.ts file exactly as the docs said , but the response does not get displayed on the website, I am able to log responses, but it doesn't reach the Messages.tsx component for some reason, I believe the issue could be with the useChat hook, can someone guide me in the right direction with this.

here's my route.ts file,
https://codeshare.io/GbzBgb

0 Replies