I think you are trying to tackle 2 different problems: 1) search 2) understanding customer needs. You are starting from the former to get to the latter - wouldn't be better to first design an LLM to understand the needs and then query your data store?
The process can be iterative, but at least you narrow down the search at the very beginning.
He can build an agentic pipeline that maps tools to a specific intent, when and whenever that intent is expressed. He can't always narrow the search at the very beginning because customers explore and change intents dynamically based on observations.
@AudetesFortunaIuvat yes but without narrowing down the results, I can't send everything to the LLM as the context will be too long and recall will be low as well. Understanding the customer needs is important for us as we need to ask a few follow-up questions before doing RAG search but those follow-up questions should be derived from the products data after narrowing the search results.
@Roland Tannous with agentic pipeline, I can add X number of tools but what I have seen with agents is that because of the thought process and actions, agents take a bit more time and for us if the response time is more than 5 seconds then its not OK.
I ask about a chair .. maybe instead of just throwing the whole explanation in the agent... the agent returns top 10 matching product page links and the frontend processes those. the user opens one of them. The agent tab is still open.... That page, like a standard e-commerce page, holds all the variants available in terms of colors and sizes, then you've offloaded the retrieval of that information off the agent pipeline.
The page can also have a recommendation section and a section with tell me how to build this.. once the user clicks it.. then the agent does two things: grabs the information on the page, with the different variants sizes, colors.. then asks a series of questions to the user about those variants/variables... whcih size do you ? hwich color.. once the user enters this information, then the agent can go and figure out how to build it based on the product page information, the user answers and the intent...
By doing it this way , you're offloading some of the work to more traditional UX elements but also delaying the overloading of the agent with too much information "all the time"
That approach sounds good to me. Which agent do you think will be good for this? I have used ReACT agent from llamaindex and so far I got good results apart from being slow.