View Source TxtaiEx.Summary (txtai_ex v0.1.1)

txtai summary instance for interfacing with a remote txtai service via REST API calls, providing functionality for summarizing text.

Summary

Functions

Link to this function

batchsummary(api, texts, minlength \\ nil, maxlength \\ nil)

View Source

Summarizes a list of texts in batch.

Parameters

  • api: The API struct containing configuration for URL and token.
  • texts: A list of texts to summarize.
  • minlength: The minimum length of each summary (optional).
  • maxlength: The maximum length of each summary (optional).

Returns

  • on success.
  • on failure.
Link to this function

summary(api, text, minlength \\ nil, maxlength \\ nil)

View Source

Summarizes a single block of text.

Parameters

  • api: The API struct containing configuration for URL and token.
  • text: The text to summarize.
  • minlength: The minimum length of the summary (optional).
  • maxlength: The maximum length of the summary (optional).

Returns

  • on success.
  • on failure.