Hi everybody, I'm learning with this notebook. but give me the same error in colab and jupyter-lab. Any help?
The original doc:
https://docs.llamaindex.ai/en/latest/examples/query_engine/sec_tables/tesla_10q_table.htmlthe problematic cell:
import os
import pickle
if not os.path.exists("2021_nodes.pkl"):
raw_nodes_2021 = node_parser.get_nodes_from_documents(docs_2021)
pickle.dump(raw_nodes_2021, open("2021_nodes.pkl", "wb"))
else:
raw_nodes_2021 = pickle.load(open("2021_nodes.pkl", "rb"))
Also, I must to add the cell: !pip install unstructured before:
from pydantic import BaseModel
from unstructured.partition.html import partition_html
import pandas as pd
pd.set_option("display.max_rows", None)
pd.set_option("display.max_columns", None)
pd.set_option("display.width", None)
pd.set_option("display.max_colwidth", None)
Otherwise it don't work.
Question: Which system are you using with your notebooks so your system work perfectly? I'm in windows 10 for jupyter lab. But I guess it must be no problem in colab. But persist.
Thank you in advance!!!