Skip to main content

Overview

The Summarization tool returns concise and meaningful summaries of various web sources. Summarizations can also be used as context for a chatbot to provide an answer to questions, e.g. “What is this video about?” and “List the key ideas from this video”.

Code Example

  • Python
  • JavaScript
  • Curl
You will need to install the Mechanix Python SDK.
from mechanix import Mechanix

mec = Mechanix()

response = mec.tools.summarize_content(
    source_type="youtube",
    content_id="https://www.youtube.com/watch?v=5qSrmeiWsuc",
    method="auto"
)

print(response.data.summary)
# "This video explains the process of DNA replication and the enzymes invo..."
The method determines HOW the content is summarized. Learn more below.

Parameters

The Summarization tool is flexible, supporting a variety of use cases.

Source Type

NameSource IDSupport Status
YouTube Videosyoutube
Github ReposN/AIn Progress
ArXiv PapersN/AIn Progress
Blog PostsN/AIn Progress
Custom textN/AIn Progress

Content ID

For YouTube videos, use either the full URL or the 11-character video ID:
InputAccepted?Note
https://www.youtube.com/watch?v=W4DnuQOtA8EFull URLs work
W4DnuQOtA8EVideo IDs work
How to survive a... By Mark RoberFree-form text is not supported

Method

IDDescriptionLatencySupport Status
simpleBest for short contentLow
recursiveIdeal for longer contentHigh
autoChooses between simple and recursiveVariable
multi_modalCombines text and audio for richer summariesHighestIn Progress
All methods except multi_modal focus solely on text. multi_modal offers more detailed summaries by incorporating visuals, making it highly suitable for lengthy, visually-driven content like educational videos.

Current Limitations

  • Limited efficacy for non-English language processing
  • Cannot summarize non-textual elements of web sources like images and audio
Explore the following resources to continue learning:
I