Valyu allows AI applications and agents to search the internet and proprietary data sources for relevant LLM ready information.This notebook goes over how to use Valyu deep search tool in LangChain. First, get an Valyu API key and add it as an environment variable. Get $10 free credit by signing up here.
langchain-valyu
package.
VALYU_API_KEY
environment variable to your Valyu API key.
ValyuContextRetriever
can be configured with several parameters:
k: int = 5
search_type: str = "all"
relevance_threshold: float = 0.5
max_price: float = 20.0
The maximum price (in USD) you are willing to spend per query. Defaults to 20.0.
start_date: Optional[str] = None
Start date for time filtering in YYYY-MM-DD format (optional).
end_date: Optional[str] = None
End date for time filtering in YYYY-MM-DD format (optional).
client: Optional[Valyu] = None
valyu_api_key: Optional[str] = None
VALYU_API_KEY
environment variable.