class

Memvid::AskResponse

Inherits JSON::Serializable < Reference < Object

Ask response.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

answer
Source
answer=(answer : String | Nil)
Source
citations
Source
citations=(citations : Array(AskCitation))
Source
context

Returns the concatenated context from retrieval.

Source
context_fragments
Source
context_fragments=(context_fragments : Array(AskContextFragment))
Source
context_only
Source
context_only=(context_only : Bool)
Source
context_only?

Returns true if this was a context-only request (no LLM synthesis).

Source
mode
Source
mode=(mode : AskMode)
Source
question
Source
question=(question : String)
Source
retrieval
Source
retrieval=(retrieval : AskSearchResponse)
Source
retriever
Source
retriever=(retriever : AskRetriever)
Source
stats
Source
stats=(stats : AskStats)
Source