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

[BUG] Why does this error keep occurring? demo_linght and examples #253

Open
wxyuwojiusi opened this issue Nov 12, 2024 · 0 comments
Open

Comments

@wxyuwojiusi
Copy link

Traceback (most recent call last):
File "/Users/wangxiao/www/AI-Search/storm-main/examples/storm_examples/run_storm_wiki_gpt.py", line 148, in
main(parser.parse_args())
File "/Users/wangxiao/www/AI-Search/storm-main/examples/storm_examples/run_storm_wiki_gpt.py", line 103, in main
runner.run(
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/engine.py", line 395, in run
information_table = self.run_knowledge_curation_module(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/interface.py", line 499, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/engine.py", line 220, in run_knowledge_curation_module
self.storm_knowledge_curation_module.research(
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/knowledge_curation.py", line 372, in research
considered_personas = self._get_considered_personas(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/knowledge_curation.py", line 282, in _get_considered_personas
return self.persona_generator.generate_persona(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/persona_generator.py", line 151, in generate_persona
personas = self.create_writer_with_persona(topic=topic)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/primitives/program.py", line 23, in call
return self.forward(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/storm_wiki/modules/persona_generator.py", line 80, in forward
related_topics = self.find_related_topic(topic=topic).related_topics
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/primitives/program.py", line 23, in call
return self.forward(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/chain_of_thought.py", line 44, in forward
return self._predict(signature=signature, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/utils/callback.py", line 202, in wrapper
return fn(instance, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 154, in call
return self.forward(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 203, in forward
completions = old_generate(demos, signature, kwargs, config, self.lm, self.stage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dspy/predict/predict.py", line 229, in old_generate
x, C = dsp.generate(template, **config)(x, stage=stage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/primitives/predict.py", line 73, in do_generate
completions: list[dict[str, Any]] = generator(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/knowledge_storm/lm.py", line 77, in call
response = self.request(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/backoff/_sync.py", line 105, in retry
ret = target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 166, in request
return self.basic_request(prompt, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 138, in basic_request
response = chat_request(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxiao/www/AI-Search/storm-main/.venv/lib/python3.11/site-packages/dsp/modules/gpt3.py", line 292, in chat_request
return v1_cached_gpt3_turbo_request_v2_wrapped(**kwargs).model_dump()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'model_dump'

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