Skip to content
TheChatArchiveThe Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)Hugging Face OpenAssistant Conversations (oasst2)

Can you compare GraphQL with REST API?

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    Can you compare GraphQL with REST API?

  2. Assistant

    GraphQL and REST are both protocols a client can use to request information from a server.

    The advantages of GraphQL:

    • Requires fewer requests than REST, reducing latency
    • Saves bandwidth by allowing the client to request only the information it is interested in
    • Easier for rapid prototyping, because there is no need to specify all possible requests in advance

    The advantages of REST:

    • More efficient when the types of requests are known
    • Better suited for caching
    • More widely used than GraphQL
    • Simpler to implement

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.