databricks-demos / dbdemos

Demos to implement your Databricks Lakehouse
Other
255 stars 80 forks source link

rag demo init resources error #118

Open thecloudgeek opened 2 months ago

thecloudgeek commented 2 months ago

I can't seem to figure out whats going on in the init our resources and catalog step here: https://notebooks.databricks.com/demos/llm-rag-chatbot/index.html#

I'm running databricks on GCP on the 14 day trial... unsure if that makes a difference?

I keep getting this error:

Exception: File `'../_resources/00-init'` not found.
File /databricks/python/lib/python3.11/site-packages/IPython/core/magics/execution.py:716, in ExecutionMagics.run(self, parameter_s, runner, file_finder)
    715     fpath = arg_lst[0]
--> 716     filename = file_finder(fpath)
    717 except IndexError as e:
File /databricks/python/lib/python3.11/site-packages/IPython/core/magics/execution.py:727, in ExecutionMagics.run(self, parameter_s, runner, file_finder)
    725     if os.name == 'nt' and re.match(r"^'.*'$",fpath):
    726         warn('For Windows, use double quotes to wrap a filename: %run "mypath\\myfile.py"')
--> 727     raise Exception(msg) from e
    728 except TypeError:
    729     if fpath in sys.meta_path:

I understand the file is not there but where is it supposed to come from? I can't tell in the demo steps

QuentinAmbard commented 2 months ago

hey, no this should definitely be here, check here for example: https://github.com/databricks-demos/dbdemos-notebooks/tree/main/product_demos/Data-Science/chatbot-rag-llm/_resources You don't have a _resources folder installed at the root path ?