Skip to content

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

Closed
andreibondarev with Copilot wants to merge 2 commits into
mainfrom
copilot/rename-schema-to-collection
Closed

andreibondarev with Copilot wants to merge 2 commits into
mainfrom
copilot/rename-schema-to-collection

Conversation

Copilot AI commented Apr 8, 2026 •

Copy link
Copy Markdown

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
@andreibondarev

Copy link
Copy Markdown
Collaborator

Superseded by #72, which adds client.collections / Weaviate::Collections (with client.schema / Weaviate::Schema kept as aliases) on top of the new Net::HTTP client and named-vector support. Thanks!

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