View Source AI.Agent.FileSummary (fnord v0.4.17)

This module provides an agent that summarizes files' contents in order to generate embeddings for the database and summaries for the user.

Summary

Functions

Get a summary of the given text. The text is truncated to 128k tokens to avoid exceeding the model's input limit. Returns a summary of the text.

Functions

Link to this function

get_summary(ai, file, text)

View Source

Get a summary of the given text. The text is truncated to 128k tokens to avoid exceeding the model's input limit. Returns a summary of the text.