🤝This template showcases a LangChain.js retrieval chain and the Vercel AI SDK in a Next.js project - by: RenanGeorgio.
🛠️The agent has access to a vector store retriever as a tool as well as a memory. It's particularly well suited to meta-questions about the current conversation.
💻You can find the prompt and model logic for this use-case in app/api/chat/retrieval_agents/route.ts.
🤖By default, the agent is pretending to be a robot, but you can change the prompt to whatever you want!
👇Upload some text, then try asking e.g. What are some ways of doing retrieval in LangChain below!