Skip to main content

should_retrieve

Method
This is a method of the RetrievalConfig class in the retrieval_config module.
Determine if retrieval should be performed for a query.

Signature

def should_retrieve(query: str, force: bool, skip: bool) -> bool

Parameters

query
str
required
The user query
force
bool
default:"False"
Force retrieval regardless of policy
skip
bool
default:"False"
Skip retrieval regardless of policy

Returns

Returns
bool
True if retrieval should be performed