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 options named as in Google's JavaScript API (l2Normalize, maxInputLength, visionTokensPerImage, activationDataType, delegate), plus modelBytes (a Uint8List) or modelPath (a URL).
getter/setter pair