Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If the the context token limit is 8k, then wouldn't gpt start forgetting the initial chunks? #16

Open
dhyanKaro opened this issue Oct 1, 2023 · 1 comment

Comments

@dhyanKaro
Copy link

15000 chars ~= 5200 tokens
Well after a few chunks, the initial text wouldn't be context anymore, right?

@adamerose
Copy link

Yes you're right, I thought the same thing and came here looking for an explanation. It seems like rather than completely forgetting the first chunk, it tries to compress it. The more chunks you include, the more detail is lost.

My guess is that when your conversation history reaches the GPT memory limit, ChatGPT gets GPT to summarize the conversation so far and includes that as the history for subsequent messages rather than the full text.

For example I took the full text of this paper and used chatgpt-prompt-splitter to break it into 3 chunks. ChatGPT then gave me a summary of the paper, but when I asked "Give me the full text of the Abstract" it failed to do so. If I only paste the first chunk and ask the same question, it doesn't fail.

https://chat.openai.com/share/69457db1-b3dc-4224-a0ba-538c14fa4292
https://chat.openai.com/share/bd022ee2-5f9e-4d25-8958-63a1ec667184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants