In order to submit text in an openai completion api call, the text needs to be under a…
- User
In order to submit text in an openai completion api call, the text needs to be under a certain number of tokens. I have several documents that I wish to submit for completion which exceed the 4K token limitation. One resolution to this problem is to divide the larger documents into smaller "chunk" sizes. The problem with this approach is that dividing a document by size alone runs the risk of losing the semantic meaning of the text in the resulting "chunked" document.
I would like to submit a document to you to resize it into smaller "chunks", but I would like for you to read the document first and make sure the semantic ideas in each chunk are preserved.
Do you understand what I am asking you to do?
Assistant
Yes, I understand your concern. Dividing a document into smaller "chunks" while preserving the semantic meaning of the text can be challenging. Here are some steps you can take to ensure that the "chunks" you create preserve the semantic meaning of the original document:
-
Determine the size of the chunks: The first step is to determine the size of the chunks you want to create. You can experiment with different chunk sizes to see which one works best for your documents. Generally, smaller chunks are easier to manage and process, but they should still be large enough to contain meaningful content.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.