search and knowledge_graph services.
Below is a step by step example to search for content mentioning Amazon, but only
focussing on sources from the United States with the highest source quality and a
retention period higher than 1 year.
First, let’s import the required dependencies and prepare the client:
Import required dependencies and prepare the client
RANK_1 (highest quality), and a retention period greater
than 1 year. We can use the find_sources method to retrieve these sources:
Find the relevant sources based on the criteria
| operator.
Prepare the source filter for the query
&) the source filter
we just created:
Prepare the final filter for the query
Run the desired query
Output

