databricks-demos / dbdemos

Demos to implement your Databricks Lakehouse
Other
287 stars 96 forks source link

llm-dolly-chatbot demo is broken at Chroma step #43

Open nickaustinlee opened 1 year ago

nickaustinlee commented 1 year ago

I'm simply running each cell in order for the demo notebooks that come with "llm-dolly-chatbot" and running into an Index error related to Chroma.

Cell 10 on Notebook 3 yields error: Index not found, please create an instance before querying

This is the code that generates the error:

def get_similar_docs(question, similar_doc_count):
  return db.similarity_search(question, k=similar_doc_count)

# Let's test it with blackberries:
for doc in get_similar_docs("how to grow blackberry?", 2):
  print(doc.page_content)

Please fix, thanks!

QuentinAmbard commented 1 year ago

hi @nickaustinlee Did you run the previous notebook to build the index ? This is where we build the index: image (02-data-preparation notebook)