repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | title: '💾 Dropbox' |
| #3 | --- |
| #4 | |
| #5 | To load folders or files from your Dropbox account, configure the `data_type` parameter as `dropbox` and specify the path to the desired file or folder, starting from the root directory of your Dropbox account. |
| #6 | |
| #7 | For Dropbox access, an **access token** is required. Obtain this token by visiting [Dropbox Developer Apps](https://www.dropbox.com/developers/apps). There, create a new app and generate an access token for it. |
| #8 | |
| #9 | Ensure your app has the following settings activated: |
| #10 | |
| #11 | - In the Permissions section, enable `files.content.read` and `files.metadata.read`. |
| #12 | |
| #13 | ## Usage |
| #14 | |
| #15 | Install the `dropbox` pypi package: |
| #16 | |
| #17 | ```bash |
| #18 | pip install dropbox |
| #19 | ``` |
| #20 | |
| #21 | Following is an example of how to use the dropbox loader: |
| #22 | |
| #23 | ```python |
| #24 | import os |
| #25 | from embedchain import App |
| #26 | |
| #27 | os.environ["DROPBOX_ACCESS_TOKEN"] = "sl.xxx" |
| #28 | os.environ["OPENAI_API_KEY"] = "sk-xxx" |
| #29 | |
| #30 | app = App() |
| #31 | |
| #32 | # any path from the root of your dropbox account, you can leave it "" for the root folder |
| #33 | app.add("/test", data_type="dropbox") |
| #34 | |
| #35 | print(app.query("Which two celebrities are mentioned here?")) |
| #36 | # The two celebrities mentioned in the given context are Elon Musk and Jeff Bezos. |
| #37 | ``` |
| #38 |