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

embedder_model AttributeError in /examples/openai/deep_scraper_openai.py #545

Open
ajt opened this issue Aug 13, 2024 · 1 comment
Open

Comments

@ajt
Copy link

ajt commented Aug 13, 2024

Describe the bug
When running the OpenAI Deep Scraper example located at examples/openai/deep_scraper_openai.py, I get the error:

Traceback (most recent call last):
  File "/Users/ajt/Projects/scrapegraph_playground/openai/deep_scraper_openai.py", line 37, in <module>
    deep_scraper_graph = DeepScraperGraph(
                         ^^^^^^^^^^^^^^^^^
  File "/Users/ajt/.virtualenvs/scrapegraph-ai/lib/python3.12/site-packages/scrapegraphai/graphs/deep_scraper_graph.py", line 62, in __init__
    super().__init__(prompt, config, source, schema)
  File "/Users/ajt/.virtualenvs/scrapegraph-ai/lib/python3.12/site-packages/scrapegraphai/graphs/abstract_graph.py", line 70, in __init__
    self.graph = self._create_graph()
                 ^^^^^^^^^^^^^^^^^^^^
  File "/Users/ajt/.virtualenvs/scrapegraph-ai/lib/python3.12/site-packages/scrapegraphai/graphs/deep_scraper_graph.py", line 160, in _create_graph
    base_graph = self._create_repeated_graph()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ajt/.virtualenvs/scrapegraph-ai/lib/python3.12/site-packages/scrapegraphai/graphs/deep_scraper_graph.py", line 90, in _create_repeated_graph
    "embedder_model": self.embedder_model
                      ^^^^^^^^^^^^^^^^^^^
AttributeError: 'DeepScraperGraph' object has no attribute 'embedder_model'

To Reproduce
Steps to reproduce the behavior:
Fresh install on macOS.
Execute the script

Expected behavior
Expecting the script to execute without errors.

Desktop (please complete the following information):

  • OS: MacOS 13.6.7
  • Browser chrome

Additional context
I am sure that the embedder_model just needs to be set, but I am unsure how to do it.

@ekinsenler
Copy link
Contributor

You can refer to #544 . DeepScraperGraph is currently not working as intended.

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

2 participants