quick-musician-29561
04/15/2024, 6:44 PMjs
workflow.chunks = event.kb.results.slice(0, 5).map((a) => a.dsFriendlyName + "\n" + a.content).join("\n\n")
Don't send all 50 chunks from the Botpress KB, it costs too much and may not even fit the LLMs' context window.
Originally, I built this using the Cohere API and Pinecone vector database, but here we are all about doing things in Botpress.
I want to use this to build a chatbot that allows everyone to build blockchain smart contracts like a pro, when the KB is official documents and the best GitHub code examples, and I'm getting feedback from blockchain developers whose job is to build smart contracts. And my friend who is a lawyer, has been searching for more than a year for a chatbot or other AI tool that can give correct answers when the KB is the country's law related to a specific field he's working on. If a multi-LLM chatbot can solve those as well, we all have clients.cold-jewelry-54343
04/21/2024, 11:13 AMquick-musician-29561
04/21/2024, 11:20 AMcold-jewelry-54343
04/21/2024, 11:47 AMbest-intern-32269
06/02/2024, 4:57 PM