engshell
engshell copied to clipboard
Implement function summarize(text)
Engshell fails with text data larger than the maximum prompt size. Need a non-GPT based summarize(text) function for processing large text data.
Why must it be non GPT based? Wouldn't recursively summarizing chunks of the conversation using the gpt3.5 chat endpoint be sufficient?
Why must it be non GPT based? Wouldn't recursively summarizing chunks of the conversation using the gpt3.5 chat endpoint be sufficient?
It's much better to vectorize large texts using the ADA model and then process it from there. Much cheaper and faster.
"This model's maximum context length is 4097 tokens. However, your messages resulted in 685229 tokens. Please reduce the length of the messages."
Getting the embeddings of the large text doesn't help to summarize it as you can't usefully convert the embeddings back to text. What do you mean by "process it from there"?
Why must it be non GPT based? Wouldn't recursively summarizing chunks of the conversation using the gpt3.5 chat endpoint be sufficient?
I believe chunking the text and then doing this would work as well, yes.