View Source Guesswork.Query (Guesswork v0.6.0)

Represents an un-resolved query.

Summary

Types

@type t() :: %Guesswork.Query{
  computation: Enumerable.t(Guesswork.Answer.t()),
  id: String.t()
}

Functions

Link to this function

new(statement, opts \\ [])

View Source

Builds a new query.

Available Options:

  • :knowledge_base (term/0) - The Guesswork.KnowledgeBase used to resolve queries. The default value is Guesswork.EmptyCollection.

  • :query_id (String.t/0) - The id used to report telemetry. Defaults to a new UUID (v4).

  • :precompute_count (integer/0) - How many answer sets to precmpute, shuffle, and share when queries have repeated fact statements that result in the same matches and substitutions. The default value is 100.