MediaPipeTasksRetrieval Framework Reference

Structures

The following declarations are available globally.

  • Built-in text chunker supporting character sliding windows and layout-preserving word windows.

    Declaration

    Swift

    struct DefaultTextChunker: Sendable, Equatable, Hashable, TextChunker
  • A stored entry persisted in or returned from a VectorStore.

    Declaration

    Swift

    struct RetrievalRecord: Sendable, Equatable, Hashable
  • Ranked match returned by a SemanticRetriever query.

    Declaration

    Swift

    struct RetrievalResult: Sendable, Equatable, Hashable
  • Pluggable storage, text-chunking, and embedding dependencies for SemanticRetriever.

    Declaration

    Swift

    struct SemanticRetrieverComponents
  • Convenience configuration for creating a SemanticRetriever backed by SqliteVectorStore, DefaultTextChunker, and UniversalEmbedder.

    Declaration

    Swift

    struct SemanticRetrieverOptions: Sendable
  • Configuration options for UniversalEmbedder.

    Declaration

    Swift

    struct UniversalEmbedderOptions: Sendable, Equatable, Hashable