Skip to content

v1.0.6 - Custom Model Provider Plugins & Schema System Refactor

Compare
Choose a tag to compare
@aksg87 aksg87 released this 13 Aug 10:22
· 111 commits to main since this release
bdcd416

Major Features

Custom Model Provider Plugin Support

  • New provider registry infrastructure for extending LangExtract with custom LLM providers
  • Plugin discovery via entry points allows third-party packages to register providers
  • Example implementation available at examples/custom_provider_plugin

Schema System Refactor

  • Refactored schema system to support provider-specific schema implementations
  • Providers can now define their own schema constraints and validation
  • Better separation of concerns between core schema logic and provider implementations

Enhancements

  • Ollama Provider: Added support for Hugging Face style model IDs (e.g., meta-llama/Llama-3.2-1B-Instruct)
  • Extract API: Added model and config parameters to extract() for more flexible model configuration
  • Examples: Updated Ollama quickstart to demonstrate ModelConfig pattern with JSON mode
  • Testing: Improved test infrastructure for provider registry and plugin system

Bug Fixes

  • Fixed lazy loading for provider pattern registration
  • Fixed unicode escaping in example generation
  • Fixed test failures related to provider registry initialization

Installation

pip install langextract==1.0.6

Full Changelog: v1.0.5...v1.0.6