Skip to content

Rename schema to collection to match Weaviate's updated terminology#70

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/rename-schema-to-collection
Draft

Rename schema to collection to match Weaviate's updated terminology#70
Copilot wants to merge 2 commits intomainfrom
copilot/rename-schema-to-collection

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 8, 2026

Weaviate now refers to schemas as "collections." This aligns the Ruby client's public API with that naming while preserving full backward compatibility.

Changes

  • New Weaviate::Collection class (lib/weaviate/collection.rb) — primary class replacing Schema
  • Weaviate::Schema aliased to Collection — existing code continues to work without changes
  • client.collections — new primary accessor on Client; client.schema delegates to it for backward compat
  • spec/weaviate/collection_spec.rb — full test coverage for Collection
  • README — updated all examples to use collections

Usage

# New (preferred)
client.collections.create(class_name: 'Question', ...)
client.collections.list
client.collections.get(class_name: 'Question')
client.collections.delete(class_name: 'Question')

# Old (still works)
client.schema.create(class_name: 'Question', ...)

Copilot AI linked an issue Apr 8, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Rename schema to collection in Weaviate Rename schema to collection to match Weaviate's updated terminology Apr 8, 2026
Copilot AI requested a review from andreibondarev April 8, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename schema to collection

2 participants