Weaviate Query Agent Demo banner
weaviate weaviate

Weaviate Query Agent Demo

Development community

Description

This notebook highlights the functionality of the Weaviate Query Agent.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Query Agent Demo

Create a Weaviate Cloud instance

  • Head to Weaviate Cloud console and log in, or create a new account.
  • Create a free Sandbox cluster. Give it a name, select the cloud region and press "Create".
  • Copy your REST endpointe and paste it into your .env as WEAVIATE_URL
  • Create an API key with admin privileges and copy and paste it into your .env as WEAVIATE _KEY

![wcd create cluster - step 1](img/wcd-create-cluster-1.jpg) ![wcd create cluster - step 2](img/wcd-create-cluster-2.jpg) ![wcd create cluster - step 3](img/wcd-create-rest-endpoint.png) ![wcd create cluster - step 4](img/wcd-create-apikey-1.png) ![wcd create cluster - step 5](img/wcd-create-apikey2.png)

Running the notebooks

Option 1 - Run locally

Virtual environment – do this only once

First create a new venv configuration.

python3 -m venv .venv

Then switch to the new configuration:

source .venv/bin/activate

And install the required packages.

pip install -r requirements.txt

Option 2 - GitHub CodeSpaces instructions

  1. Go to the project https://github.com/weaviate-tutorials/weaviate-workshop

Make sure you are logged in with GitHub.

  1. Create a Codespace project
  • Press the green <> Code button, then switch to Codespaces tab.
  • Press the Create codespace on main button.
  • Your codespace project will install all the necessary components, it will take a few minutes.

Option 3 - Run in Google Colab

  1. Click on the Google Colab button at the top of the notebook in this repo.
  2. Uncomment the first cell in the notebook to install the dependencies.
  3. Paste your keys into the first cell in the Dependencies section of the notebook.

Env vars

Update env vars in .env.

Hint. you can find your Weaviate Cluster URL and API keys in the [WCD console](https://console.weaviate.cloud/).

  • WEAVIATE_URL - is the `REST Endpoint