chore(docs): update valyu examples for valyu-langchain v0.3.4 package #33047
+180
−25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates all Valyu integration examples to use the new valyu-langchain package (v0.3.4) structure and API. This includes updating parameter names, adding new tool classes, and fixing broken notebook cell structure. The changes ensure compatibility with the latest package that requires valyu >= 2.0.0 for the updated search API.
Issue: N/A
Dependencies: No new dependencies added. The changes update existing examples to work with valyu-langchain v0.3.4.
Changes Made:
Parameter Updates:
Updated similarity_threshold → relevance_threshold across all examples
Removed deprecated query_rewrite parameter
Added new is_tool_call=True parameter for agent optimization
Updated default max_price values to reflect new package defaults
New Tool Classes:
Added documentation and examples for ValyuContentsTool for web content extraction
Added documentation and examples for ValyuContentsRetriever for URL-based content retrieval
Updated integration tables to include all 4 available classes