Log in
Log into community
Find answers from the community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Inactive
Updated 4 months ago
0
Follow
Cohere
Cohere
Inactive
0
Follow
At a glance
S
Sayan
11 months ago
Β·
I have a question regarding Cohere Reranking based on the following -
https://docs.llamaindex.ai/en/stable/examples/node_postprocessor/CohereRerank.html
If Cohere is set as a node postprocessor as shown here, and there's a Cohere API outage (or say we have reached a rate limit or something like that), will this code still execute without any re-ranking, or will it crash?
L
S
4 comments
Share
Open in Discord
L
Logan M
11 months ago
Hmm, it would probably raise a traceback about some network error I'd guess
S
Sayan
11 months ago
Cool, I can probably handle that as an exception and recreate the chat engine without cohere as a postprocessor. Thanks!
S
Sayan
11 months ago
@Logan M at what stage would it actually call the Cohere API?
Is it the
as_query_engine()
/
as_chat_engine()
, or the
query()
/
chat()
that comes after it?
L
Logan M
11 months ago
During both.
Typically there is a a "retrieve" step, and reranking happens directly after that
Add a reply
Sign up and join the conversation on Discord
Join on Discord