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

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

Source

View on GitHub

praisonaiagents/rag/retrieval_config.py at line 286