Find answers from the community

Updated 9 months ago

GitHub - run-llama/sec-insights: A real ...

I'm trying to run https://github.com/run-llama/sec-insights locally but got an error

I was following the readme and last command make seed_db_local that should download the dataset fails.
it downloads files into temp folder.
Plain Text
Downloading SEC filings
Downloading filings to "/var/folders/nx/4fnfp6zd20d7y9zvtg_rs89m0000gn/T/tmpxcqrq4rb"
File Types: ['10-K']

next Copying downloaded SEC filings to S3
Plain Text
Seeding storage with DB documents:   0%|                                                                                                      | 0/15 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/Users/xxxxx/repo/github/examples/sec-insights/backend/app/chat/engine.py", line 154, in build_doc_id_to_index_map
    indices = load_indices_from_storage(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxxxx/anaconda3/envs/sec-insights/lib/python3.11/site-packages/llama_index/indices/loading.py", line 71, in load_indices_from_storage
    raise ValueError(f"Failed to load index with ID {index_id}")
ValueError: Failed to load index with ID ab1dad14-a061-4f25-a9b6-88d02d649a36


Has anybody managed to fix it?
p.s. full output in the thread
T
W
2 comments
Plain Text
Traceback (most recent call last):
  File "/Users/tsovak/repo/github/examples/sec-insights/backend/app/chat/engine.py", line 154, in build_doc_id_to_index_map
    indices = load_indices_from_storage(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/tsovak/anaconda3/envs/sec-insights/lib/python3.11/site-packages/llama_index/indices/loading.py", line 71, in load_indices_from_storage
    raise ValueError(f"Failed to load index with ID {index_id}")
ValueError: Failed to load index with ID ab1dad14-a061-4f25-a9b6-88d02d649a36

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tsovak/anaconda3/envs/sec-insights/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/tsovak/anaconda3/envs/sec-insights/lib/python3.11/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/tsovak/anaconda3/envs/sec-insights/lib/python3.11/socket.py", line 962, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
Add a reply
Sign up and join the conversation on Discord