Cant make it work when using other Search function. #6

Open
opened 2026-02-16 00:15:01 -05:00 by yindo · 0 comments
Owner

Originally created by @meet1919 on GitHub (Oct 2, 2023).

Cant get rid of the GOOGLE_API_ID and GOOGLE_CSE_ID even though I am using GoogleSerperAPIWrapper(). I added random values for these both and still I am not able to make it work.

Error:

Traceback (most recent call last):
  File "c:\python\web_explorer_sample.py", line 25, in <module>
    web_retriever = WebResearchRetriever.from_llm(
  File "C:\python\env\lib\site-packages\langchain\retrievers\web_research.py", line 128, in from_llm
    return cls(
  File "C:\python\env\lib\site-packages\langchain\load\serializable.py", line 90, in __init__
    super().__init__(**kwargs)
  File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 7 validation errors for WebResearchRetriever
search -> aiosession
  extra fields not permitted (type=value_error.extra)
search -> gl
  extra fields not permitted (type=value_error.extra)
search -> hl
  extra fields not permitted (type=value_error.extra)
search -> result_key_for_type
  extra fields not permitted (type=value_error.extra)
search -> serper_api_key
  extra fields not permitted (type=value_error.extra)
search -> tbs
  extra fields not permitted (type=value_error.extra)
search -> type
  extra fields not permitted (type=value_error.extra)
Originally created by @meet1919 on GitHub (Oct 2, 2023). Cant get rid of the `GOOGLE_API_ID` and `GOOGLE_CSE_ID` even though I am using GoogleSerperAPIWrapper(). I added random values for these both and still I am not able to make it work. Error: ``` Traceback (most recent call last): File "c:\python\web_explorer_sample.py", line 25, in <module> web_retriever = WebResearchRetriever.from_llm( File "C:\python\env\lib\site-packages\langchain\retrievers\web_research.py", line 128, in from_llm return cls( File "C:\python\env\lib\site-packages\langchain\load\serializable.py", line 90, in __init__ super().__init__(**kwargs) File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 7 validation errors for WebResearchRetriever search -> aiosession extra fields not permitted (type=value_error.extra) search -> gl extra fields not permitted (type=value_error.extra) search -> hl extra fields not permitted (type=value_error.extra) search -> result_key_for_type extra fields not permitted (type=value_error.extra) search -> serper_api_key extra fields not permitted (type=value_error.extra) search -> tbs extra fields not permitted (type=value_error.extra) search -> type extra fields not permitted (type=value_error.extra) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/web-explorer#6