You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After successful installation of all dependencies, we can start writing code.
26
26
27
-
First, import `os`, `Document`, `VectorstoreIndexCreator`, and `ApifyWrapper` into your source code:
27
+
First, import `os`, `VectorstoreIndexCreator`, `ApifyWrapper`, and `Document` into your source code:
28
28
29
29
```python
30
30
import os
31
31
32
-
from langchain.document_loaders.base import Document
33
32
from langchain.indexes import VectorstoreIndexCreator
34
-
from langchain.utilities import ApifyWrapper
33
+
from langchain_community.utilities import ApifyWrapper
34
+
from langchain_core.document_loaders.base import Document
35
35
```
36
36
37
37
Find your [Apify API token](https://console.apify.com/account/integrations) and [OpenAI API key](https://platform.openai.com/account/api-keys) and initialize these into environment variable:
0 commit comments