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.
Perform queries in Weaviate - LlamaIndex Tutorial
From the course: Build with AI: Agentic Applications with LlamaIndex and MCP
Perform queries in Weaviate
Our e-commerce store is now stocked with products. Next, let's learn how our agent can find the perfect item for a customer by using Weaviate's powerful search capabilities. We'll get hands on with Weaviate's query engine, starting with vector and keyword search to understand the concepts. But we'll focus most of our attention on hybrid search, which is the most powerful and commonly used method for real world applications. First, as always, let's connect to our Weaviate cloud instance and make sure our collection is ready. you'll see that the connection script is pre-populated with the Weaviate URL environment variable, as well as the Weaviate API key environment variable. So, all we need to do is to get the collection handle by using the client object and looking at the collections namespace. And we'll say use the e-commerce handle. Great, so if I run that, I see that the product catalog is ready and we are connected. We have two fundamental ways here to search. First is vector…