Interface ContextOptions

The ContextOptions interface describes the query and optional filter to retrieve context snippets from an Assistant.

Hierarchy

  • ContextOptions

Properties

filter?: Record<string, string>

Optional filter to apply to the context snippets.

messages?: MessagesModel

The list of MessageModel to use for generating the context. Either query or messages should be provided.

query?: string

The query to retrieve context snippets for. Either query or messages should be provided.

topK?: number

The number of context snippets to return. Default is 15.