Skip to content

refactor(index): extract BasicTrainer trait from ScalarIndexPlugin#7395

Open
westonpace wants to merge 7 commits into
lance-format:mainfrom
westonpace:refactor-scalar-index-plugin-training-api
Open

refactor(index): extract BasicTrainer trait from ScalarIndexPlugin#7395
westonpace wants to merge 7 commits into
lance-format:mainfrom
westonpace:refactor-scalar-index-plugin-training-api

Conversation

@westonpace

Copy link
Copy Markdown
Member

Move the two-stage training API (new_training_request + train_index) out of ScalarIndexPlugin into a new BasicTrainer trait. ScalarIndexPlugin gains a basic_trainer() accessor (default: None) so callers can opt into training without coupling the core plugin interface to it.

westonpace and others added 6 commits June 22, 2026 13:28
…lugin

Move the two-stage training API (new_training_request + train_index) out
of ScalarIndexPlugin into a new TrainsOnColumnStream trait. ScalarIndexPlugin
gains an as_trainer() accessor (default: None) so callers can opt into
training without coupling the core plugin interface to it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ugin

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…xPlugin

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…orted

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the A-index Vector index, linalg, tokenizer label Jun 22, 2026
- Update lance-namespace-impls manifest.rs to use basic_trainer() instead
  of calling new_training_request/train_index directly on ScalarIndexPlugin
- Fix typo: "approches" -> "approaches" in registry.rs doc comment
- Run cargo fmt to fix formatting diffs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the A-namespace Namespace impls label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-index Vector index, linalg, tokenizer A-namespace Namespace impls

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant