metadata property
Application-defined metadata, usable for filtering during search.
Documents returned from InMemoryVectorStore expose an unmodifiable
copy of the map that was stored: a fresh top-level map, so mutating the
map you passed in afterwards does not reach the store, and mutating the
map you get back throws instead of silently rewriting the stored
document.
Implementation
final Map<String, Object?> metadata;