Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Documentation]: Shopify graphql parsing in example doesn't work #17515

Open
djl0 opened this issue Jan 14, 2025 · 1 comment
Open

[Documentation]: Shopify graphql parsing in example doesn't work #17515

djl0 opened this issue Jan 14, 2025 · 1 comment
Labels
triage Issue needs to be triaged/prioritized

Comments

@djl0
Copy link

djl0 commented Jan 14, 2025

Documentation Issue Description

@nerdai I've been going through your shopify example. Wondering if this is still supposed to work, and does it work for you? I know many of the references changed their location, but for example I can't find anything related to SDL reader. Also, the reading of the graphql schema into graphql-core's parser wasn't working in the way described, however given those aren't llama-index built, I figured I'd ask you the more general question first.

I do have the general graphql tool working, but it seems like the implementation in the shopify example is better as it reads the schema before creating query.

Thanks for any help!

Documentation Link

https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-shopify/examples/shopify.ipynb

@djl0 djl0 added the triage Issue needs to be triaged/prioritized label Jan 14, 2025
Copy link

dosubot bot commented Jan 14, 2025

Hey @djl0! 👋 I'm here to assist you with any bugs, questions, or contributions while you wait for a human maintainer. Let's tackle this together!

The Shopify example in the LlamaIndex repository uses the SDLReader in conjunction with the OnDemandLoaderTool to process the GraphQL schema. The SDLReader is responsible for reading and processing the SDL (Schema Definition Language) file, while the OnDemandLoaderTool facilitates on-demand loading and processing of the GraphQL schema [1].

If you're encountering issues with the SDLReader or GraphQL schema parsing, it might be due to changes in the references or the way these components are integrated. Unfortunately, I couldn't find specific information on recent changes or issues related to the SDLReader in the Shopify example. However, the example is designed to handle the Shopify GraphQL schema by parsing it to extract QueryRoot objects, which are then used to inform the Agent about available queries [1].

If the general GraphQL tool is working for you, but the Shopify example is not, it might be worth comparing the implementations to identify any discrepancies or updates that might have been missed. Additionally, ensure that all dependencies are up to date as specified in the pyproject.toml files for the Shopify example [2][3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs to be triaged/prioritized
Projects
None yet
Development

No branches or pull requests

1 participant