run-llama / llama_index

LlamaIndex is a data framework for your LLM applications
https://docs.llamaindex.ai
MIT License
36.74k stars 5.27k forks source link

[Bug]: cannot import name 'DataBricks' from 'llama_index.llms.databricks #16867

Closed hoangpnhat closed 1 week ago

hoangpnhat commented 1 week ago

Bug Description

from llama_index.llms.databricks import DataBricks ImportError: ImportError: cannot import name 'DataBricks' from 'llama_index.llms.databricks'

Version

0.11.17

Steps to Reproduce

from llama_index.llms.databricks import DataBricks

Relevant Logs/Tracbacks

from llama_index.llms.databricks import DataBricks
ImportError: cannot import name 'DataBricks' from 'llama_index.llms.databricks'
dosubot[bot] commented 1 week ago

The correct import statement for Databricks functionality in LlamaIndex version 0.11.17 is:

from llama_index.llms.databricks.base import Databricks

Make sure to use the correct class name Databricks (with a lowercase 'b') and import it from the base module within llama_index.llms.databricks [1].

To continue talking to Dosu, mention @dosu.

logan-markewich commented 1 week ago

@hoangpnhat you have a typo, as dosu mentioned

from llama_index.llms.databrics import Databricks

https://colab.research.google.com/drive/1mxWWgcnrHueDUAA5_eEDSDWAzO4S_oHf?usp=sharing