Weaviate search

From bidewio/better-openclaw · View interactive version

Weaviate search is an AI agent skill from the GitHub repository bidewio/better-openclaw. Perform hybrid vector and keyword search using Weaviate at {{WEAVIATE_HOST}}:{{WEAVIATE_PORT}}.

How to use this skill

Skill file

Weaviate Search

Weaviate is available at http://{{WEAVIATE_HOST}}:{{WEAVIATE_PORT}} within the Docker network.

Create a Class

curl -X POST "http://{{WEAVIATE_HOST}}:{{WEAVIATE_PORT}}/v1/schema" \
  -H "Content-Type: application/json" \
  -d '{"class": "Document", "vectorizer": "none", "properties": [{"name": "content", "dataType": ["text"]}]}'

Add Objects

curl -X POST "http://{{WEAVIATE_HOST}}:{{WEAVIATE_PORT}}/v1/objects" \
  -H "Content-Type: application/json" \
  -d '{"class": "Document", "properties": {"content": "Hello world"}, "vector": [0.1, 0.2, 0.3]}'

Search

curl -X POST "http://{{WEAVIATE_HOST}}:{{WEAVIATE_PORT}}/v1/graphql" \
  -H "Content-Type: application/json" \
  -d '{"query": "{Get {Document(nearVector: {vector: [0.1, 0.2, 0.3]}, limit: 5) {content}}}"}'

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.