From the course: Build with AI: Agentic Applications with LlamaIndex and MCP

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Introduction to Weaviate Query Agent

Introduction to Weaviate Query Agent

We've built a powerful search system, but writing the right query for every possible customer question can be a challenge. A manual query might look something like this with a set of parameters and a very rigid syntax. This is powerful, but it would be difficult and cumbersome to map variations in users queries here to variations of this particular syntax. So what if we could replace all of that with just one line of code? Something like this perhaps, where you're asking questions in natural language. Well, that's the power of the Weaviate Query Agent. Let's upgrade our e-commerce agent by giving it a new brain that can understand the customer's natural language and find products for them automatically. For this, you'll need the Weaviate Agents library. It should already be installed in your environment, but if it's not, you can install it with the following command, by running pip install Weaviate Agents. Great. So let's get started building our agent. Here, what we're going to do is…

Contents