Analyze call transcript (above GPT context windows)

Hi everyone !

I’m trying to set up an automation that analyzes a sales call transcripts. The issue is that most of the calls last over an hour, which exceeds GPT’s context window.

The most common solution is to divide the call into chunks, but I find this method unreliable. Information provided at the beginning of a call might end up in chunk 1, while it’s necessary for understanding chunk 10, for instance.

I had thought about converting the transcripts into Word or PDF documents, but it doesn’t seem possible to attach a document to GPT via the API (except through an assistant, but here I’m not looking to do RAG; I need a summary of the sales call).

Do you have any ideas on the best approach?

Thank you!

1 Like

Hey!
Seems like embeddings would be perfect for this!
A vectorstore would probably make your life a lot easier.
An easy way to try this is with Llamaindex (More advanced) or Flowise (Easier to use), both of which I can recommend!

Cheers. :hugs:

1 Like

@j.wischnat Thank you for your response :slight_smile:

Would embeddings work to summarize a very long text?

Sorry if my question seems silly, but I had the impression that embeddings were only used in the context of a RAG, where the use case is to ask questions to a knowledge base.

In my case, I don’t need to ask questions. I just want to create a prompt that would say: “Summarize this text by highlighting the key points: point 1, point 2, etc.”

thanks again !

Oh I see, I misunderstood. You could chunk the text and summarize each chunk, that would be a lot easier to implement as well! :hugs:

2 Likes

@progent - Welcome to the forums! Here’s a simple method for summarizing conversations without attaching documents:

Use chat completions to summarize the first five conversations.

After summarizing each set of n conversations, use this example prompt:
"
{Summary generated for the first n conversations}

Expand the summarized text using the context given below:
{transcript}
Next n conversations
{/transcript}"

Recursively apply this prompt to subsequent conversations after summarizing the prior ones.
Note: this is an example prompt just to give you an idea.

Try it out and see how the results improve!

Hope this helps, cheers!

1 Like

@Munna23 alright I see what you mean. I’m going to try and I will let you know if it works :slight_smile:
Thanks!

1 Like