(Can be less if filters are provided).
filters – Filters to apply to the context dataset.
retrieve(query: str, **kwargs: Any) → List[Document][source]¶
Retrieve {size} contexts with your retriever for a given query
Parameters
query – Query to submit to the model
size – The max number of context results to retrieve. Defaults to 3.
(Can be less if filters are provided).
filters – Filters to apply to the context dataset.
validate_model_training_status() → None[source]¶