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:c044febf376aed475b4851f0d3929acdad38b0b425fff3a5a60938c4bdfb0cde
# 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()}
end