AI WG ·
AI WG meetings · Jump to notesAgenda
GraphQL AI WG — December 2025
- Date & Time: December 11, 2025, 1:30 – 2:30 PM EST
- View the calendar, or subscribe (Google Calendar, ical file).
- Please Note: The date or time may change. Please check this agenda the week of the meeting to confirm. While we try to keep all calendars accurate, this agenda document is the source of truth.
- Video Conference Link: https://zoom.us/j/92302442188
- Password: aiwg
- Live Notes: Live Notes
Attendees
| Name | GitHub | Organization | Location |
|---|---|---|---|
| Kewei Qu (host) | @Keweiqu | Meta | Menlo Park, CA, USA |
| Roy Derks | @royderks | IBM | San Jose, CA, USA |
| Thore Koritzius | @ThoreKoritzius | Independent | Cologne, DE |
| Mark Larah | @magicmark | Yelp | Austin, TX, USA |
| Michael Staib | @michaelstaib | ChilliCream | Zurich, CH |
| Erik Wrede | @erikwrede | Self | Cologne, Germany |
| Hugh Nguyen | @HieuNguyen202 | Meta | Chicago, IL, USA |
| Dale Seo | @DaleSeo | Apollo | Toronto, ON, CA |
| Raymie Stata | @rstata | Airbnb | Boston, MA, US |
| Alexandre Dias | @alexdias Meta | London, UK | |
| Jeff Auriemma | @bignimbus | Apollo | Monroe, CT, USA |
| Stephen Spalding | @fotoetienne | Netflix | Chattanooga, TN, US |
| Pascal Senn | @pascalsenn | ChilliCrea | Zurich, CH |
Agenda
- Agree to Membership Agreement, Participation & Contribution Guidelines and Code of Conduct (1m, Host)
- Specification Membership Agreement
- Participation Guidelines
- Contribution Guide
- Code of Conduct
- Meetings are published to YouTube and we may use LLM/AI summary tools
- Introduction of attendees (5m, Host)
- Determine volunteers for note taking (1m, Host)
- Review agenda (2m, Host)
- Check for ready for review agenda items (5m, Host)
- Reminder: grants available for key initiatives (1m, Host)
- Similarity Search to navigate a schema (10m, Thore)
- @require_subschema to introduce gradual reveal of a large schema issue #54 (10m, Hugh)
- Update on benchmarks introduced in last meeting (5m, Alex)
Notes
GraphQL AI WG Meeting Notes - December 2025
Watch the replays: GraphQL AI WG Meetings on YouTube
Agenda: https://github.com/graphql/ai-wg/blob/main/agendas/2025/12-Dec/11-graphql-ai-wg-december-2025.md
Notes
- Reminder: GraphQL grants
- Thore: shares screen, search to navigate section of a schema
- Shows vector db
- Fetches most relevant type/field combos with scoring
- Essential question: can we improve?
- Shows recursive iteration over relationships for best matches
- Kewei: question about blowing up size of db, also do you return top one
- Thore: enums for instance, use a lot of context. Flattening helps
- Benefit of returning only fields needed for type
- Recursive part could be improved. Now just a top one
- Kewei: how does second iteration look?
- Thore: first one is based on embedding, then second based on the type
- Kewei: sometimes returns one, sometimes four, how?
- Thore: hardcoded, could be other approach
- Pascal: trying to discover tree to whatever you want down inside of a schema, have you tried to do it the other direction? Point based on user request, what parts of schema they want, deep inside?
- Thore: this was bottom-up, then bottom-up toward roots
- Kewei: your suggestion is to start at Query, Mutation, etc (root type) and go down?
- Pascal: more about pinpointing. If I’m looking for a user, look for email address, etc. Easier to find deeper into schema and go up to root field, multiple ways to get there. Input into LLM. Similar to Federation, for instance
- Michael: find shortest path, can catch it pretty fast
- Pascal: shortest path may not be good for AI though, might be Node, userByUsername: need multiple paths, multiple options to present. Makes it simple to build a query - a one-hit - do a semantic search, build tree, ask LLM what it wants
- Michael: lookups in composite schemas - similar to what Matt explained about identities at Meta (assuming this refers to Matt Mahoney)
- If we have this data in context, shortest way to this info is by using this lookup, different shaped problem. In federation it’s a problem of multiple microservices. To not use graph algos all the time, shortest path between system cached
- Pascal (in chat): federation is 100% calculable
- Thore: just embeddings. More efficient. LLM may write search query but that’s it
- Pascal: you run into big issues when you have Query and Mutation type, big enum fills context
- Do you index all json?
- Thore: index on type/field. Just a database
- Michael: a prime example of schema coordinates
- Pascal: huge value in having return type
- Kewei: also wanted to ask this
- Pascal (in chat): I really like this approach 👍
- Thore: (shows csv that maps prompts with metrics: ground_truth_count, retrieved, hits, etc.)
- Kewei: did I overfetch or underfetch?
- Alexandre: overlaps with my topic
- @require_subschema to introduce gradual reveal of a large schema
issue #54 (10m, Hugh)
- Hugh: (slides)
- Point of order: notes will only capture items that are not in the slides
- Thore: subschema: build this manually? Or autogenerated?
- Hugh: started w manually curating, gradually used AI agent internally to generate subschema
- Pascal: size of subschema could also be a problem
- Kewei: “learning” is a big one - how do you evolve subschema
- (some missing notes for a few minutes, see recording/transcript)
- Stephen: subschema is everything reachable from a particular root field
- Kewei: we prune types, also enum values and input object types
- Trim down to required, commonly used
- Dale: solved same problem w different approaches
- With apollo mcp server, first with search tool, semantic search given prompt, try to figure minimum schema amount to run query. That really helped. Also did minification system - shorten graphql keyword into one letter. Input to i, enum to e, etc. reduce token usage 40%
- https://www.apollographql.com/blog/smart-schema-discovery-how-apollo-mcp-server-maximizes-ai-context-efficiency
- Update on benchmarks introduced in last meeting (5m, Alex)
- Alex: synthetic schema, user query (what would a user ask for), only want 5 results, etc
- Different models, different results (Claude best)
- Pascal: about generating query string performance? Correct, valid query generation
- Alex: yes, 1:1 match with expected incl. Arguments
Oops, duplicative, sorry about that:
- Reminder:
- GraphQL grants for key initiatives - submit applications if you're interested
- Agenda:
- Thore Koritzius:
- Topic: How to find relevant schema elements for queries when you have a huge schema.
- Approach 1: Flattened approach
- Use an off-the-shelf embedding model.
- Index by type-field combinations.
- Benefit of flattening is to reduce context for types with a large number of fields (or enum values).
- Approach 2: Recursive Constraint (Improvement on Flattened Approach)
- Recursively constrain based on the previous best match.
- Example: Start with
Query->booking, use context frombooking:Bookingfield to search more, then use context from(Booking.)customer:Customerfield to search more. - This search happens entirely in the vector database, without using an LLM during the search.
- Pascal's Idea:
- Find a relevant field or fields, and then look for paths from the root to that field.
- Use AI to pick the best path, which helps build a query for the target field.
- Indexing Details:
- Indexing just at the type level was problematic because it's not precise enough for large types.
- They currently index the type-name, field-name, and a comment if available.
- The field's type might not need to be included directly because the "recursion" approach incorporates it.
- Measurement:
- Start with a smaller schema and synthetically generate "golden set" query-result pairs.
- "Blow up" the schema with noisy types and fields.
- Measure recall and precision based on finding that exact golden set.
- Hugh Nguyen:
- Use Case: Agents fetching data using GraphQL.
- LLM agent generates GraphQL queries based on user intent (e.g., "Get my manager's direct reports").
- Benefit: GraphQL can reduce what would take multiple tool calls (e.g., in MCP 2) into a single query.
- Bad Assumption: More schema $\implies$ better LLM? NO!
- Enterprise GraphQL schemas are too big for the LLM context window.
- Dynamic Subschema Loading:
- Divide the monolithic schema into small, focused subschemas.
- Start with a minimal "root" schema (common types + entry points).
- LLM identifies the domains it needs and loads those subschemas.
@require_subschemacan be put on fields as a hint for what subschema would be helpful.
- Challenges and Solutions:
- Challenge: LLMs often don't follow instructions and want to jump to an answer, leading to hallucinated types and fields.
- Solutions:
- Model training: Bake "subschema loading" into the model.
- Prefetch subschema based on user intent.
- Q&A on Subschemas:
- Q: Did you manually create the subschemas?
- A: Initially manual, but switched to having agents do it instead.
- Q: Don't the subschemas themselves get too big?
- A: They encourage teams to break up schemas into granular pieces. They also combine the subschema approach with others and use logs to better formulate subschemas.
- Q: Do the subschemas include all fields of a type?
- A: Yes, they prune fields and enum values.
- Q: Did you manually create the subschemas?
- Other Discussions:
- "Normal" introspection is very inefficient; discussed "semantic introspection" as a solution.
- Referenced a post on Apollo MCP server's two approaches: semantic search for minimum schema and a "minification" system: Smart schema discovery: How Apollo MCP server maximizes AI context efficiency.
- Use Case: Agents fetching data using GraphQL.
- Alexandre Dias:
- Topic: Measuring how good LLMs are with GraphQL.
- They have a few benchmark queries.
- They measure the generated query versus expected benchmark queries.
- Original measurement was naive and syntactic.
- Since then, new, more accurate ways to measure have been added, particularly "graders" to evaluate queries semantically.
- Latest results will be published soon.
Zoom summary
Meeting Summary for AI WG
NOTICE: This summary was auto-generated by Zoom's "AI". AI-generated content may be inaccurate or misleading. Always check for accuracy. If in doubt, please consult the meeting recording at https://youtube.com/@GraphQLFoundation/playlists
- Meeting start: 2025-12-11T18:28:06Z
- Meeting end: 2025-12-11T19:33:42Z
- Summary start: 2025-12-11T18:30:12Z
- Summary end: 2025-12-11T19:31:01Z
The GraphQL AI Working Group meeting began with introductions and discussions about recent events, including the GraphQL Day conference and participation guidelines. The group explored new approaches for efficient GraphQL query generation using embeddings and subschemas, with presentations on methods for retrieving relevant types and queries. The conversation ended with benchmarking results for different language models and discussions about potential next steps for improving query generation and performance.
Next Steps
- Alex: Reach out to Thore to collaborate on creating an open source version of the query graders and integrate them into Thore's benchmark.
- Alex: Publish updated benchmark results comparing LLMs (including Claude, GPT-5, etc.) on GraphQL query generation, including the new graders.
- Dale: Share the blog post about Apollo MCP server's token usage reduction/minification approach in the chat.
- Kewei: Internally try out Thore's field-level embedding approach at Meta and potentially share results in a future meeting.
- Kewei: Connect with Michael to explore publishing snippets from this meeting to YouTube, with participants' permission.
- Raymie: Add meeting notes to the Google Doc linked in the agenda markdown file.
- (Optional/Implied) Hugh/Kewei: Follow up in a couple of months to share comparative results between the subschema and introspection search approaches for schema context management.
- (Optional/Implied) Alex/Thore: Integrate Thore's semantic search into the benchmark to measure improvement over baseline LLM performance (if explicitly agreed; otherwise, remove if not directly stated as a commitment).
Summary
GraphQL AI Working Group Meeting
The GraphQL AI Working Group meeting began with introductions and a reminder about participation guidelines and code of conduct. Kewei, the host from Meta, explained that meetings would be livestreamed and recorded for YouTube, with potential use of LLM and AI for summarization. The group discussed the recent GraphQL Day conference, noting it was smaller than expected but had good talks, though recordings would not be distributed effectively. The conversation ended with a request for attendees to share their locations and organizations, though Roy was absent.
GraphQL Grants and Schema Search
The meeting began with introductions from participants, including Thor, Mark, Michael, Hugh, Dale, Raymie, Alex, Jeff, and Pascal, who discussed their affiliations and locations. Kewei outlined the agenda and reminded everyone about GraphQL grants for key initiatives, encouraging applications to the TSC committee. The first agenda item was similarity search to navigate schema, with Thor set to lead the discussion.
Vector Embeddings for Semantic Search
The team discussed a method for retrieving relevant types and queries using vector embeddings from OpenAI. Thore presented a flattened approach where type-field combinations are encoded as vectors for search, though questions were raised about potential performance issues due to increased database size. Pascal suggested an alternative approach of starting from the user query and recursively searching for relevant fields, potentially using multiple paths to find the desired information. Michael explained that in federation, they use lookups to efficiently resolve data across microservices, which is different from the current approach of using vector embeddings for semantic search.
Efficient GraphQL Query Generation
The meeting focused on two main topics: a new approach for efficient GraphQL query generation using embeddings and subschemas, and benchmarking the performance of different language models for generating GraphQL queries. Hugh presented a method to dynamically load subschemas to manage the context window size for LLMs, which addresses the scalability issue of large enterprise GraphQL schemas. Pascal raised concerns about the size of subschemas and suggested exploring a combination approach with semantic introspection. Alex shared results from benchmarking different LLMs, showing that Claude performs significantly better than GPT-4.1 and GPT-5 in generating valid GraphQL queries. The group discussed potential next steps, including integrating the grader into Thor's benchmark and exploring the use of RAG with state-of-the-art GPT models.