Skip to content

Commit be08428

Browse files
authored
Update llama_index imports (#849)
Going through the tutorial I found that llama_index was restructured recently (in the last month?) so these imports had to be changed to work correctly
1 parent e6ec894 commit be08428

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/howtos/applications/compare_embeddings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ refer to [langchain-tutorial](../integrations/langchain.ipynb) see how to evalua
8181
```{code-block} python
8282
8383
import nest_asyncio
84-
from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext,OpenAIEmbedding
85-
from langchain.embeddings import HuggingFaceEmbeddings
84+
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader, ServiceContext
85+
from langchain.embeddings import HuggingFaceEmbeddings, OpenAIEmbeddings
8686
import pandas as pd
8787
8888
nest_asyncio.apply()
@@ -158,4 +158,4 @@ result_df.head()
158158

159159
<p align="left">
160160
<img src="../../_static/imgs/compare-emb-results.png" alt="results" width="800" height="600" />
161-
</p>
161+
</p>

0 commit comments

Comments
 (0)