Skip to content

GraphQL Schema RAG #69

Answered by Gand4lf
xmlking asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Sumanth, we've obviously discussed this privately but thought I'd reply here now for the rest of the community.

This looks like a good use case. You can embed the types/inputs in your schema and store the properties as edges that point to the other types/inputs that they represent.

You can then perform similarity searches against the vectors and then traverse the graph to retrieve all the type dependencies.

You then feed this context to the LLM and it has an exact overview of all the types and inputs necessary to answer your particular question.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gand4lf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants