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

Writing Assistance APIs #991

Open
1 task done
domenic opened this issue Sep 10, 2024 · 1 comment
Open
1 task done

Writing Assistance APIs #991

domenic opened this issue Sep 10, 2024 · 1 comment
Assignees

Comments

@domenic
Copy link
Member

domenic commented Sep 10, 2024

こんにちは TAG-さん!

I'm requesting an early TAG design review of the writing assistance APIs.

Browsers and operating systems are increasingly expected to gain access to a language model. (Example, example, example.) Web applications can benefit from using language models for a variety of use cases.

We're proposing a group of APIs that use language models to give web developers high-level assistance with writing. Specifically:

  • The summarizer API produces summaries of input text;
  • The writer API writes new material, given a writing task prompt;
  • The rewriter API transforms and rephrases input text in the requested ways.

Because these APIs share underlying infrastructure and API shape, and have many cross-cutting concerns, we include them all in one explainer, to avoid repeating ourselves across three repositories. However, they are separate API proposals, and can be evaluated independently.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • The group where the incubation/design work on this is being done (or is intended to be done in the future): WICG
  • The group where standardization of this work is intended to be done ("unknown" if not known): not completely known, but we are discussing the APIs with the Web Machine Learning Working Group at TPAC, and it is possible a future version of their charter would welcome us.
  • Existing major pieces of multi-implementer review or discussion of this design: see above.
  • Major unresolved issues with or opposition to this design:
    • We are aware of previous TAG feedback (in Web Translation API #948) regarding API surface details, and have captured that in the explainer.
    • As with the translator/language detector APIs (Web Translation API #948), there is a tension between interoperability and exposing whether the model is on-device or cloud-based; we discuss this a bit more in the explainer.
    • As with the translator/language detector APIs (Web Translation API #948), there are several privacy concerns, discussed in the explainer. We believe there are reasonable mitigations possible there, but will need to do some experimentation to find the best ones.
  • This work is being funded by: Google

You should also know that...

This is not a generic prompt API.

@jyasskin
Copy link
Contributor

A public note (without TAG consensus) so that @domenic can start thinking in this direction too: We should think about how https://www.w3.org/reports/ai-web-impact/ and https://www.w3.org/TR/webmachinelearning-ethics/ should affect our opinions here. For example, https://www.w3.org/reports/ai-web-impact/#transparency-on-ai-mediated-services considers the use of Model Cards to help people evaluate the suitability of particular models for particular purposes. How should that information be exposed to the web developers considering use of this API, and to the end-users who have to evaluate the website's output?

@torgo torgo modified the milestones: 2024-09-16-week, 2024-10-07-week Oct 4, 2024
@plinss plinss removed this from the 2024-10-14-week milestone Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants