Gleanex.Client.Summarize (Gleanex v0.1.0)

Copy Markdown View Source

Provides API endpoint related to summarize

Summary

Functions

summarize(body, opts \\ [])

@spec summarize(body :: Gleanex.Client.SummarizeRequest.t(), opts :: keyword()) ::
  {:ok, Gleanex.Client.SummarizeResponse.t()} | {:error, Gleanex.Error.t()}

Summarize documents

Generate an AI summary of the requested documents.

Options

  • locale: The client's preferred locale in rfc5646 format (e.g. en, ja, pt-BR). If omitted, the Accept-Language will be used. If not present or not supported, defaults to the closest match or en.

Request Body

Content Types: application/json

Includes request params such as the query and specs of the documents to summarize.