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

conversation_log.json not created #31

Open
jacb9 opened this issue Apr 25, 2024 · 9 comments
Open

conversation_log.json not created #31

jacb9 opened this issue Apr 25, 2024 · 9 comments

Comments

@jacb9
Copy link

jacb9 commented Apr 25, 2024

Troubleshooting suggestions? thanks.

Traceback (most recent call last):
File "C:\Users...\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py", line 111, in
main(parser.parse_args())
File "C:\Users...\Desktop\storm-main\storm-main\scripts\run_storm_wiki_gpt.py", line 68, in main
runner.run(
File "C:\Users...\Desktop\storm-main\storm-main\src\storm_wiki\engine.py", line 286, in run
information_table = StormInformationTable.from_conversation_log_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\Desktop\storm-main\storm-main\src\storm_wiki\modules\storm_dataclass.py", line 145, in from_conversation_log_file
conversation_log_data = FileIOHelper.load_json(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\Desktop\storm-main\storm-main\src\utils.py", line 302, in load_json
with open(file_name, 'r', encoding=encoding) as fr:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './results/gpt\newtest\conversation_log.json'

@Yucheng-Jiang
Copy link
Collaborator

Yucheng-Jiang commented Apr 25, 2024

Hi, would you mind share the command you’re trying to run?

@jacb9
Copy link
Author

jacb9 commented Apr 25, 2024

C:\Users...\Desktop\storm-main\storm-main>python scripts\run_storm_wiki_gpt.py
Topic: newtest

The results directory "newtest" is created, but empty.

@Yucheng-Jiang
Copy link
Collaborator

It's expected behavior. You have to manually set command line arguments to define which stages of the pipeline you're planning to run. We declare these arguments here.

If you're going to run all stages of the pipeline, these arguments are needed --do-research --do-generate-outline --do-generate-article. You may want to add --do-polish-article if you hope to add summary / lead section of the article, and --remove-duplicate if hope to remove duplicate contents across different sections (this may lead to higher costs and much longer running time).

@jacb9
Copy link
Author

jacb9 commented Apr 25, 2024

Thank you. I thought the run_storm prompt set the default as true. Appears to be running now. Looking forward to exploring storm's capabilities.

@jacb9
Copy link
Author

jacb9 commented Apr 25, 2024 via email

@Octobot222
Copy link

Octobot222 commented Apr 25, 2024 via email

@Yucheng-Jiang
Copy link
Collaborator

@jacb9 We haven't ran into this problem before. Here's some related posts I find.

  1. **Exception: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))** happens 2 out of 5 times RallyTools/RallyRestToolkitForPython#179
  2. https://stackoverflow.com/questions/50771343/python3-requests-connectionreseterror10054-when-opening-a-picture

I suspect it has something to do with your proxy configuration.

This line is raising the error

  File "{root}\storm-main\storm-main\src\storm_wiki\modules\storm_dataclass.py", line 154, in prepare_table_for_retrieval
    self.encoder = SentenceTransformer('paraphrase-MiniLM-L6-v2')

A quick workaround is to download this model to local filesystem and import the model locally.

@jacb9
Copy link
Author

jacb9 commented Apr 25, 2024 via email

@Yucheng-Jiang
Copy link
Collaborator

@jacb9 sentence transformer paraphrase-MiniLM-L6-v2 from hugging face.

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

3 participants