compress_json() not working? #124
Answered
by
SiyunZhao
freddysongg
asked this question in
Q&A
|
Hey all, I was beginning to use LLMLingua and I tried to configure it so that it can optimally compress my JSON data but when I ran it, I get an attribute error: I'm following the documentation by using llm_lingua = PromptCompressor(device_map="mps") Is there something that I'm missing? |
Answered by
SiyunZhao
Mar 28, 2024
Replies: 1 comment
|
Hi @MrFrooty , thank you for your support. |
0 replies
Answer selected by
iofu728
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @MrFrooty , thank you for your support.
The reason for this issue might be that this feature has not been released yet, so the current version you are using has not updated compress_json method. If you want to use it, you can update to the latest github version by using
pip install git+ https://github.com/microsoft/LLMLingua.git.