Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meet1919 opened this issue Oct 2, 2023 · 0 comments
Open

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

meet1919 opened this issue Oct 2, 2023 · 0 comments

Comments

@meet1919
Copy link

meet1919 commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant