Enhanced Summarization for Your Data

Enhanced Summarization for Your Data

Hey devs! 👋

Dealing with large volumes of text and need concise, accurate summaries? JigsawStack’s Summary API has you covered! Whether it’s simplifying legal documents, extracting key points from articles, or generating concise meeting notes, our Summary API makes it blazing fast and ridiculously easy.

Let’s dive into what makes this tool a must-have for your data-heavy workflows.

What is the Summary API?

The JigsawStack Summary API lets you condense large amounts of text into readable summaries, tailored to your needs. Designed with flexibility and performance in mind, this API ensures:

  • Contextual understanding to maintain the meaning of the original text.

  • Summarization in points or paragraphs.

  • Support for 180+ languages, including slang and sentiment detection.

  • Blazing-fast results, even for large documents.

The Summary API ensures you never lose sight of the important details.

What’s New in the Summary API?

Larger Context Support
Tackle extended content effortlessly with enhanced processing for massive documents. Whether it’s a policy manual or a 300,000 character article, the Summary API can handle it all.

Cost Efficiency
Get smarter summaries at a fraction of the cost. The API minimizes resource usage while delivering top-tier results.

Document Versatility
Now you can summarize more than just text! Upload PDFs or URLs for seamless integration into your workflow.

How to Use the Summary API

Summarize Text
Summarize any large document or text in just a few lines of code. We’ll summarize this article below:

import { JigsawStack } from "jigsawstack";

const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});

const textSummary = await jigsawstack.summary({
  text: "Masayoshi Son’s SoftBank will invest $500mn into OpenAI... ",
  type: "points", // Options: "text" for paragraphs, "points" for bullet points
  max_points: 3,
});

console.log(textSummary);

Output

{
  success: true,
  summary: [
    'SoftBank to invest $500mn in OpenAI as part of a $6.5bn funding round valuing the AI start-up at $150bn',
    'SoftBank joins existing investors Thrive Capital and Microsoft in the funding round'
    'SoftBanks investment is part of its increased focus on AI, with CEO Masayoshi Son declaring it is time to'
  ]
}

Summarize a PDF
Got a document to process? No problem. Pass a PDF URL to the API:

const pdfSummary = await jigsawstack.summary({
  url:"https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/SG%20firm%20aspires%20to%20be%20Stripe%20of%20AI%20services.pdf?t=2024-11-18T06%3A07%3A00.011Z",
  type: "text",
  max_charaters: 300
});

console.log(pdfSummary);

Output

{
  success: true,
  summary: 'Singapore startup JigsawStack, offering AI services via a single API, 
  raised $500k pre-seed. They aim to simplify AI API use, focusing on user-friendly 
  services unlike larger players like AWS, Microsoft, and Google. They plan rapid 
  growth and future funding.'
}

Have a document you want to store with us?
First, import readFileSync from ‘fs’ and grab a public key:

import {JigsawStack} from "jigsawstack";
import {readFileSync} from 'fs';

const publicKey = "your-public-key"
const jigsawstack = JigsawStack({
  apiKey: "your-api-key",
});
const pdf = readFileSync("./resume.pdf");

Then, upload the pdf and create the key:

//Max file size is 100MB
const file = await jigsaw.store.upload(pdf, {
  overwrite: true,
  filename: "resume.pdf",
});

// Retrieve the file key
const fileKey = file.key;

Finally, let’s grab the resume with the file_store_key and summarize it:

const pdfSummary = await jigsaw.summary({
    file_store_key: fileKey,
    type: "points",
    max_points: 3
});

console.log(pdfSummary);

Output

{
  success: true,
  summary: [
    'Handled various customer service roles, responding to inbound calls and providing support, including problem resolution.',
    'Assisted beneficiaries with enrollment/disenrollment, plan status, medical exemptions, and waivers.',
    'Maintained knowledge of managed care plans and provided beneficiaries with relevant information.'
  ]
}

Learn more about uploading files to JigsawStack here.

Use Cases

Legal Contracts
Extract key clauses and obligations from lengthy contracts without missing critical details.

Meeting Notes
Generate concise overviews of meeting discussions and action points for easy reference.

News Summaries
Summarize articles and reports to keep up with the latest developments at a glance.

Internal Documentation
Simplify complex internal documents, like resumes, technical reports or policies, into digestible summaries.

Real-Time Summarization
Integrate the API into chat or email applications for live summarization of messages.

Why Choose JigsawStack’s Summary API?

The Summary API is designed to meet your needs with unmatched speed, flexibility, and ease of use:

  • Lightning-Fast Performance: Process and summarize millions of texts in seconds with our cutting-edge engine.

  • Tailored to Your Needs: Customize summaries to your style—bullet points, paragraphs, or a fine-tuned level of detail.

  • Ironclad Security: Your data stays protected with end-to-end encryption, and no text is ever stored after processing.

Effortless, secure, and tailored to your needs—get started today!