class

Memvid::AskRequest

Inherits JSON::Serializable < Reference < Object

Ask request parameters.

Constructors

new(question : String, top_k : Int32 = 10, snippet_chars : Int32 = 200, uri : Nil | String = nil, scope : Nil | String = nil, cursor : Nil | String = nil, start : Int64 | Nil = nil, end_time : Int64 | Nil = nil, context_only : Bool = true, mode : Memvid::AskMode = AskMode::Hybrid, as_of_frame : UInt64 | Nil = nil, as_of_ts : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

as_of_frame
Source
as_of_frame=(as_of_frame : UInt64 | Nil)
Source
as_of_ts
Source
as_of_ts=(as_of_ts : Int64 | Nil)
Source
context_only
Source
context_only=(context_only : Bool)
Source
cursor
Source
cursor=(cursor : String | Nil)
Source
end_time
Source
end_time=(end_time : Int64 | Nil)
Source
mode
Source
mode=(mode : AskMode)
Source
question
Source
question=(question : String)
Source
scope
Source
scope=(scope : String | Nil)
Source
snippet_chars
Source
snippet_chars=(snippet_chars : Int32)
Source
start
Source
start=(start : Int64 | Nil)
Source
top_k
Source
top_k=(top_k : Int32)
Source
uri=(uri : String | Nil)
Source