Extending Possibility to Opt-in for Using Prompt Compression or using as a Tool. #16593
jatinchawda1503
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
Hello Everyone,
PromptCompression using LongLLMLingua or AutoCompresser refer this blog helps to compress the tokens by 6x-7x.
Using langchain, I have seen that the token consumption is steadily increasing especially when we use different types of Memory Types also mentioned in the pinecone blogs.
It would be great to introduce in the langchain core features to either opt in for the prompt compression or to use as an external function compatible with the current module.
This will help to optimize the cost for folks who are using OpenAI to build apps using LangChain.
Motivation
Enabling prompt Compression will shortern the original prompt length while keeping all the necessary information which helps to reduce cost of tokens while using 3rd party APIs.
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions