I'm upgrading my llama index version from 0.9.32 to 0.10.7, after that I found my python project has a runtime error:
from app.routers.qa import qa_router
../routers/qa.py:8: in <module>
from app.llama_index_server import index_server
../llama_index_server/index_server.py:4: in <module>
from llama_index.core.indices.postprocessor import SimilarityPostprocessor
../../env/lib/python3.9/site-packages/llama_index/core/indices/postprocessor.py:2: in <module>
from llama_index.core.postprocessor import (
E ImportError: cannot import name 'CohereRerank' from 'llama_index.core.postprocessor' (/Users/pengxiao/Documents/github/llama-index-fastapi/env/lib/python3.9/site-packages/llama_index/core/postprocessor/__init__.py)
collected 0 items / 1 error
here qa.py and index_server.py are my own python files, but the error comes from llama_index/core/indices/postprocessor.py. can anyone tell me what should I do? thanks in advance!