Dialogue Summarization API

What is Dialogue Summarization?

Dialogue summarization is the process of summarizing a dialogue in order to immediately have a good grasp of the conversation.

You can perform advanced dialogue summarization thanks generative models like ChatGPT, GPT-3.5, and GPT-4, like LLaMA 2 or Mixtral 8x7B.

Let's say you have the following dialogue:

Jules: Hey kids! How you boys doin’?
Jules: (Speaking to the guy laying on the couch) Hey, keep chillin’. You know who we are? We’re associates of your business partner Marsellus Wallace. You do remember your business partner don’t you? Let me take a wild guess here. You’re Brett, right?
Brett: Yeah.
Jules: I thought so. You remember your business partner Marsellus Wallace, don’t you, Brett?
Brett: Yeah, yeah, I remember him.
Jules: Good. Looks like me an Vincent caught you boys at breakfast. Sorry about that. Whatcha havin’?
Brett: Hamburgers.
Jules: Hamburgers! The cornerstone of any nutritious breakfast. What kind of hamburgers?
Brett: Ch-cheeseburgers.
Jules: No, no no, where’d you get ’em? McDonalds? Wendy’s? Jack in the Box? Where?
Brett: Big Kahuna Burger.
Jules: Big Kahuna Burger. That’s that Hawaiian burger joint. I hear they got some tasty burgers. I ain’t never had one myself. How are they?
Brett: They’re good.
Jules: Mind if I try one of yours? This is yours here, right?
Jules: (Picks up burger and takes a bite) Mmm-mmmm. That is a tasty burger. Vincent, ever have a Big Kahuna Burger?
(Vincent shakes his head)
Jules: Wanna bite? They’re real tasty.
Vincent: Ain’t hungry.

This dialogue is quite long and maybe you want to automatically make it shorter while keeping the main idea? So you now want to leverage machine learning in order to automatically summarize this conversation.

A dialogue summarization AI model would return something like this:

Jules and Vincent are associates of Brett's business partner Marsellus Wallace. They are at Brett's place and they're eating burgers. Jules takes a bite from Brett's burger. Vincent doesn't want to try it.

As you can see, the general idea is still there, but tons of details were stripped. The summary is properly rephrased so that it is easy to read.

Dialogue Summarization

Why Use Dialogue Summarization?

Dialogue summarization can be leveraged in many situations. Let's give you a couple of examples.

Medical Consultation

Doctors - especially psychiatrists - often need to summarize the conversation they just had with their patient so that a peer can potentially read it and help. Doing this manually is extremely tedious and time consuming. But AI can now take care of it!

Customer Interviews

It is quite common for companies to interview their customers in order to better understand their needs. But analyzing these interviews is very long and it is quite common to see marketing teams just abandon this overwhelming task... Thanks to dialogue summarization, it is now possible to automatically process these reports so that a marketing specialist can analyze them in the blink of an eye!

Police Reports

After typing a conversation with a suspect or a witness, it can be very useful for police to automatically summarize this conversation and then make team work easier.

Job Interviews

Job interviews reports often need to be shared within the rest of the team in order to make a decision. Automatically summarizing these conversations helps speed up recruitment!

NLP Cloud's Dialogue Summarization API

NLP Cloud proposes a dialogue summarization API that gives you the opportunity to perform dialogue summarization out of the box, based on advanced generative AI models like Bart Large CNN SamSum, LLaMA 2, ChatDolphin, Yi 34B, Mixtral 8x7B, which are excellent alternatives to ChatGPT, GPT-3.5 and GPT-4. You can either use our pre-trained models, train your own models, or upload your own custom models!

For more details, see our documentation about text summarization here. For advanced usage, see the text generation API endpoint here. And easily test text summarization on our playground.

Testing dialogue summarization locally is one thing, but using it reliably in production is another thing. With NLP Cloud you can just do both!

Frequently Asked Questions

What languages does your API support for dialogue summarization?

On NLP Cloud you can summarize dialogues in 200 languages

Can your API summarize real-time conversations?

No, in order to accurately summarize a discussion, the AI model needs to know about the whole discussion. So you can only send your text to our API once the whole discussion is finished.

What measures do you take to ensure data privacy and security?

NLP Cloud is focused on data privacy by design: we do not log or store the content of the requests you make on our API. NLP Cloud is both HIPAA and GDPR compliant.

Is it safe to use AI to summarize medical conversations?

Absolutely. We have a lot of medical customers trusting NLP Cloud for our strong privacy guarantees. NLP Cloud is HIPAA compliant.

Can I try the dialogue summarization API for free?

Yes, like all the models on NLP Cloud, the dialogue summarization API endpoint can be tested for free