platform_interface library
Where the browser plugin plugs Google's JavaScript runtime into the retrieval tasks.
Applications should import mediapipe_retrieval.dart instead.
Classes
- RetrievalBackend
- One Universal Embedder on one runtime, and the Semantic Retrievers built on it, which share its worker so they can share its model.
Properties
-
retrievalBackendFactory
↔ Future<
RetrievalBackend> Function(Map<String, Object?> options)? -
Creates Google's Universal Embedder from
optionsnamed as in Google's JavaScript API (l2Normalize,maxInputLength,visionTokensPerImage,activationDataType,delegate), plusmodelBytes(aUint8List) ormodelPath(a URL).getter/setter pair