Find answers from the community

Updated last year

Hi Team I wanna ask is

Hi Team, I wanna ask is ResponseSynthesizer class deprecated?
L
T
7 comments
Yea it got removed a little while ago

ResponseSynthesizers still exist! Just changed how the abstractions work

Now there is a BaseSynthesizer class, and response synthesizers extend that.

Also before the response synthesizer applied node postprocessors, but that was moved to the query engine
Was there something you needed help with? Happy to get something working
It is just I just upgraded it to the newest version, and I got ImportError: cannot import name 'ResponseSynthesizer' from 'llama_index'
you can replace it with this
from llama_index import get_response_synthesizer

synthesizer = get_response_synthesizer(response_mode="compact")
or if you were building your own synthesizer
from llama_index.response_synthesizers.base import BaseSynthesizer
Add a reply
Sign up and join the conversation on Discord