Optimal parameters for searching Census.gov data

Hi, I need some help with optimizing Tavily search parameters for getting data out of Census.gov. I followed Langchain Retriever example for using Tavily, TavilySearchAPIRetriever | :parrot::link: LangChain

The data I am trying to retrieve is like: US population each year from 2021 to 2030. The issue is that Census has these data in several places on their website. It works well if I break down the data range to smaller sizes, say, 2021-2025 and 2026-2030. But I wonder if you could help me fine tuning the below parameters.

retriever = TavilySearchAPIRetriever(

max_results=10,

search_depth="advanced",

#include_answer=True,

include_raw_content=True,

include_domains =["census.gov"],

)

Or I should use other Tavily tools like Tavily Extract?

Hi there,

If you could share the exact queries you’re using, either here or by emailing us at support@tavily.com, we’ll be happy to help you fine-tune your parameters for retrieving data from Census.gov.

May

Thanks, May. I’ll email my code and desired outcome to support@tavily.com. I appreciate your response. -David