Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Adding SDLReader to library
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhofmann committed Aug 14, 2023
1 parent ee6dd1e commit b132777
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions llama_hub/file/sdl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ To use this loader, pass in the filename for the SDL file.
This tool has a more extensive example usage documented in a Jupyter notebook [here](https://github.com/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/shopify.ipynb) and [here](https://github.com/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/shopify.ipynb)

```python
from llama_index import download_loader

SDLReader = download_loader("SDLReader")
from llama_hub.file.sdl.base import SDLReader

loader = SDLReader()
documents = loader.load_data('./data/shopify.graphql')
Expand Down
5 changes: 5 additions & 0 deletions llama_hub/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
"author": "ephe-meral",
"keywords": ["spreadsheet"]
},
"SDLReader": {
"id": "file/sdl",
"author": "ajhofmann",
"keywords": ["graphql", "schema"]
},
"SimpleWebPageReader": {
"id": "web/simple_web",
"author": "thejessezhang"
Expand Down

0 comments on commit b132777

Please sign in to comment.