This commit is contained in:
16
docs/snippets/dart/plugins/clear_plugins.md
Normal file
16
docs/snippets/dart/plugins/clear_plugins.md
Normal file
@@ -0,0 +1,16 @@
|
||||
```dart title="Dart"
|
||||
import 'package:kreuzberg/kreuzberg.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
// The Dart binding exposes bulk-clear entry points for OCR backends,
|
||||
// post-processors, and validators. Document-extractor clearing is not
|
||||
// surfaced through flutter_rust_bridge; the built-in extractors are
|
||||
// registered automatically by the kreuzberg core when the library
|
||||
// initializes.
|
||||
await KreuzbergBridge.clearOcrBackends();
|
||||
await KreuzbergBridge.clearPostProcessors();
|
||||
await KreuzbergBridge.clearValidators();
|
||||
|
||||
print('OCR backends, post-processors, and validators cleared');
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user