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 context tool in LangChain. First, get an Valyu API key and add it as an environment variable. Get $10 free credit by signing up here.
Class | Package | Serializable | JS support | Package latest |
---|---|---|---|---|
Valyu Search | langchain-valyu | ✅ | ❌ |
langchain-valyu
package.
VALYU_API_KEY
environment variable to your Valyu API key.
query
(required): A natural language search querysearch_type
(optional): Type of search, e.g., “all”max_num_results
(optional): Maximum number of results to returnsimilarity_threshold
(optional): Similarity threshold for resultsquery_rewrite
(optional): Whether to rewrite the querymax_price
(optional): Maximum price for the search