This rantir workflow builds another example of creating a knowledgebase assistant, but demonstrates how a more deliberate and targeted approach to ingesting the data can produce much better results for your chatbot.
In this example, a government tax code policy document is used. While we could split the document into chunks by content length, we often lose the context of chapters and sections, which may be required by the user.
Our approach is to first split the document into chapters and sections before importing it into our vector store. Additionally, using metadata correctly is key to allow filtering and scoped queries.
Human: "Tell me about what the tax code says about cargo for international commerce?"
AI: "Section 11.25 of the Texas Property Tax Code pertains to 'MARINE CARGO CONTAINERS USED EXCLUSIVELY IN INTERNATIONAL COMMERCE.' In this section, a person who is a citizen of a foreign country or an entity..."
Depending on your use case, consider returning actual PDF pages (or links) to the user for extra confirmation and to build trust.
Not using Mistral? You can replace it, but make sure to match the distance and dimension size of the Qdrant collection to your chosen embedding model.
Your connected stack awaits to automate AI workflows with 24-7 uptime performance and engagement
"I highly recommend Rantir, they are a great dev team with quick turn around on all projects and requests. We recently worked with them on updating our website and any changes, updates or modifications I needed were always taken care of quickly!"
"The team at Rantir has lived up to every definition of the word "partner". They're adaptive, fast, and flexible (all the things you'd hope for). We're so thrilled with what we've accomplished so far and look forward to working alongside them in the future."
"Working with the Rantir team was a pleasure. They guided us through the whole process from design to implementation, creating a great site on a tight deadline. They were responsive and adaptable throughout, and we'd be happy to work with them again in the future."
"Working with the Rantir team early on made combined design and development with early conversations to implement AI within Onder. We were happy to work together to help bring no-code, with code and AI."
Rantir University for learning how to build powerful AI Agents & Software you own.