Weaviate
Near-text, vector, hybrid and BM25 search with filters (GraphQL built from validated arguments), counts, objects and schema, agent writes and raw GraphQL need opt-ins, deletes are node only
About
A Graphrt plugin for Weaviate, self-hosted or Weaviate Cloud. Search (near text, near vector, near object, hybrid, BM25, filters, counts) goes through Weaviate's GraphQL API with queries the plugin builds from structured arguments, objects and the schema go through the REST API v1. It is built with the declarative REST layer (definition.mjs) plus two hand-written GraphQL operations (lib/weaviate-extras.mjs).
What it can do
- Search: search_objects: one of near_text, near_vector, near_object, hybrid_query (with alpha, fusion_type, hybrid_vector) or bm25_query (with search_properties, ^ boosts), or none to list, where filters, distance, target_vectors, limit/offset/autocut, after cursor paging, tenant, include_vector. Each object has its properties and _additional (id, distance or score/explainScore, timestamps).
- Counts: count_objects (Aggregate meta { count }, optionally filtered)
- Schema and cluster: get_meta, list_collections, get_collection, get_nodes_status
- Objects: list_objects (UUID order, next_cursor), get_object, create_object, update_object (merge patch), batch_objects, delete_object (node only)
- Raw GraphQL: graphql_query (opt-in for agents)
- api_request: any other REST endpoint, e.g. /v1/schema/<collection>/shards (agents: GET only, on an allowlist)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Server meta
weaviate.get_meta - List collections
weaviate.list_collections - Get collection
weaviate.get_collection - Nodes status
weaviate.get_nodes_status - Search objects
weaviate.search_objects - Count objects
weaviate.count_objects - List objects
weaviate.list_objects - Get object
weaviate.get_object - Create object
weaviate.create_object - Update object
weaviate.update_object
Show all 14 actions
- Batch import objects
weaviate.batch_objects - Delete object
weaviate.delete_object - GraphQL query
weaviate.graphql_query - Weaviate REST API request
weaviate.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
WEAVIATE_URLOptionalServer URL, default http://localhost:8080, Weaviate Cloud: the cluster's REST endpoint (https://<id>.<region>.weaviate.cloud, a bare host gets https://). Plain http:// only for localhost. -
WEAVIATE_API_KEYCloud / auth enabledAPI key, sent as Authorization: Bearer. Without it nothing is sent (anonymous local Weaviate). A node's access_token replaces it. -
WEAVIATE_PROVIDER_HEADERSOptionalModel provider keys for vectorizer/generative modules as JSON, e.g. {"X-OpenAI-Api-Key": "sk-...", "X-Cohere-Api-Key": "..."} (only X-... names, values are redacted) -
WEAVIATE_TOOL_ALLOW_WRITESOptional1 lets agent tools create, update and batch-import objects -
WEAVIATE_TOOL_ALLOW_RAW_GRAPHQLOptional1 lets agent tools run graphql_query
How to use it
In Graphrt Desktop
- Open Plugins and search for Weaviate.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
$ graphrt plugin install weaviate - id: related
type: weaviate.search_objects
collection: Article
properties: [title, url]
hybrid_query: "{{#start.question#}}"
alpha: 0.6
where: { path: [lang], operator: Equal, valueText: id }
limit: 5
- id: save
type: weaviate.create_object
collection: Note
object_uuid: "{{#start.note_id#}}"
properties: { text: "{{#llm.text#}}" }