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
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.
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.