.=*****************************+=:.
:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+-.
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#+.
:+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#@@@@@@@#+.
..-+*@@@@@#=
.-%@@@@+.
.::::::::::::::::::::::::::::::::::....=%@@#:
=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+-=%@@+
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*=*@#:
+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*+*@*:
.:------------------------------------=+%#@@@@@*-+#%=:.
.-+#@@@#=:+#@@#%****++++++++++++++++++++++++++++.
.-%@@@=.:*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=
.=*****************************************+=-:. .=*@#= :=+******************************:
:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+=+%@#=.
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##@@@%*==============================.
.=*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%
..-=*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*
.:-=*%#@@@#%+=::..:::::::::::::::::::::::::::
.:-------------------------------------=+*%##@@@@@@%+:
+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*=. .-+*%##############################-
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+- .=%#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-
=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%*+-. :+%##%+=----------------------------------.
.:::::::::::::::::::::::::::::::::::.. :+#@%=.
.-*#@@%-
..:-=*#@@@@%-
:+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##@@@@@@@@%-
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*-
:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+:.
.=+***************************++=-:.from llmslim import compress
result = compress(chat_history, target_ratio=0.25,
query="Where should the card be shipped?")
print(result.compressed_text) # what the model needs
print(result.tokens_saved) # what you no longer pay for .=*****************************+=:.
:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+-.
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#+.
:+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#@@@@@@@#+.
..-+*@@@@@#=
.-%@@@@+.
.::::::::::::::::::::::::::::::::::....=%@@#:
=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+-=%@@+
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*=*@#:
+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*+*@*:
.:------------------------------------=+%#@@@@@*-+#%=:.
.-+#@@@#=:+#@@#%****++++++++++++++++++++++++++++.
.-%@@@=.:*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@=
.=*****************************************+=-:. .=*@#= :=+******************************:
:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+=+%@#=.
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@##@@@%*==============================.
.=*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%
..-=*#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*
.:-=*%#@@@#%+=::..:::::::::::::::::::::::::::
.:-------------------------------------=+*%##@@@@@@%+:
+#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*=. .-+*%##############################-
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+- .=%#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-
=#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%*+-. :+%##%+=----------------------------------.
.:::::::::::::::::::::::::::::::::::.. :+#@%=.
.-*#@@%-
..:-=*#@@@@%-
:+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%##@@@@@@@@%-
:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#*-
:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#%+:.
.=+***************************++=-:.from llmslim import compress
result = compress(chat_history, target_ratio=0.25,
query="Where should the card be shipped?")
print(result.compressed_text) # what the model needs
print(result.tokens_saved) # what you no longer pay forAccount
Sign in to LLMSlim.
Use a passkey, Google, GitHub or your email and password.
or use your email
New to LLMSlim? Create an account