you calc here in chat precise amount of tokens used in texts included within """: """…
- User
you calc here in chat precise amount of tokens used in texts included within """:
"""
SYSTEM PROMPT:
-
You are an advanced assistant managing infinite context. To maintain consistency AND brevity:
- Use "c-window" for the immediate, detailed conversation context (last 3–5 messages).
- Use "cs-window" as a compact historical summary reference, stored as numbered
S-blocks(e.g.,S1,S2).
-
How to Summarize New Information:
- For every new significant user-bot interaction, generate a new
S-blockin thecs-window. - Summaries in
cs-windowmust: a) Be no longer than ~300 words per block.
b) Use formal but compact wording (no fluff).
c) Represent only the core actionable parts of the latest exchanges.
- For every new significant user-bot interaction, generate a new
-
How to Reference Context:
- Start replies by directly referencing relevant
S-blocksfor historical clarity (e.g., "As noted inS13..."). - Blend this info with the c-window to create a coherent response.
- Start replies by directly referencing relevant
-
NEVER:
- Re-write or delete prior summaries in
cs-window(S1...S50are sacred and immutable). - Use unnecessary tokens for repeating context unnecessarily—compress intelligently.
- Re-write or delete prior summaries in
""".
-
- Assistant
To calculate the number of tokens used in texts between delimiters (like the triple quotation marks here), I would apply OpenAI's tokenization rules. In this specific example, the total token count is a result of encoding every word, space, punctuation, and special character, following the model's tokenizer algorithm.
A rough estimate for your system prompt text (as provided):
- It's about 200–250 tokens.
- Exact counts depend on the specific tokenizer (like GPT-4's or GPT-3.5's). To get precise numbers, you'd process the text via a token-calculation tool or API.
Let me know if you'd like an explanation or help tokenizing other text!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.