GoodMem
ReferenceClient SDKsJavaScriptRequests

RetrieveMemoryRequest

RetrieveMemoryRequest documentation for JavaScript SDK

Properties

NameTypeDescriptionNotes
messageStringPrimary query/message for semantic search.
context[ContextItem]Optional context items (text or binary) to provide additional context for the search.[optional]
spaceKeys[SpaceKey]List of spaces to search with optional per-embedder weight overrides.
requestedSizeNumberMaximum number of memories to retrieve.[optional]
fetchMemoryBooleanWhether to include streamed memory-definition records in the response. Defaults to true when omitted. These records include memory metadata and audit fields, but omit originalContent unless fetchMemoryContent is true.[optional] [default to true]
fetchMemoryContentBooleanWhether streamed memory-definition records include originalContent bytes. Requires fetchMemory=true. Defaults to false when omitted.[optional] [default to false]
hnswHnswOptions[optional]
postProcessorPostProcessor[optional]

On this page