Current section

Files

Jump to
liter_llm lib liter_llm rerank_document.ex
Raw

lib/liter_llm/rerank_document.ex

# This file is auto-generated by alef — DO NOT EDIT.
# alef:hash:8c6394307ee786542760e258bcc70a27da623ca905384e09eb87f8ddb8d7e534
# To regenerate: alef generate
# To verify freshness: alef verify --exit-code
defmodule LiterLlm.RerankDocument do
@moduledoc "A document to be reranked — either a plain string or an object with a text field."
@typedoc "A document to be reranked — either a plain string or an object with a text field."
@type t :: term()
@typedoc "Plain text document content."
@type text :: %{type: :text, value: String.t()}
@typedoc "Document with explicit text field (may include metadata)."
@type object :: %{type: :object, text: String.t()}
def object(text), do: {:object, %{text: text}}
end