Replies: 1 comment
-
You are exactly correct. I noticed this when getting garbage responses while running extract_wisdom on longer YoutTube videos. I was blowing past the default context window, and remedied the situation by opening up the context window after calculating how many tokens I was using. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently switched to the Go fabric implementation. I am on version v1.4.128 (but I also observed the same thing on v1.4.126)
The question is, is our input supposed to be duplicated in the API request?
For example, I tried to use the 'compare_and_contrast' pattern with the '--dry-run' option. My input was "Ancient Egypt and Ancient Mesopotamia".
The output for the dry run was:
The formatting doesn't make it clear but it looks like the input text is being sent as the last part of system.md (which is what I would have assumed) as well as the entire content of user.md .
Indeed, I found a tool called HTTP toolkit and it verified that this is exactly what it is doing. The payload sent to the REST endpoint when doing a real run (in this case to the Anthropic API endpoint) is as follows:
Is this what is supposed to be happening here?
With my dumb example, it probably doesn't matter much but with longer input isn't this going to unnecessarily end up cutting your effective input in half by prematurely running into the context window size limit?
Beta Was this translation helpful? Give feedback.
All reactions