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

link should have attribute for ailang #9761

Closed
BLamy opened this issue Sep 20, 2023 · 3 comments
Closed

link should have attribute for ailang #9761

BLamy opened this issue Sep 20, 2023 · 3 comments

Comments

@BLamy
Copy link

BLamy commented Sep 20, 2023

Background

<link rel="alternate" attribute tells the user (search engines) that there is an other URL with the same content but in an other form (eg. language, mobile, ...).

For Example:
You can observe this attribute in practice within the "diff" format of a GitHub pull request page, whereby an alternative raw diff file is provided:

<link rel="alternate" type="text/x-diff" href="/facebook/react/pull/27387.diff">

Another example is reddit which uses rel="alternate" to signal different languages

<link rel="alternate" hreflang="en" href="https://www.reddit.com/" />
<link rel="alternate" hreflang="x-default" href="https://www.reddit.com/" />
<link rel="alternate" hreflang="de" href="https://www.reddit.com/de/" />
<link rel="alternate" hreflang="es" href="https://www.reddit.com/es/" />
<link rel="alternate" hreflang="fr" href="https://www.reddit.com/fr/" />
<link rel="alternate" hreflang="it" href="https://www.reddit.com/it/" />
<link rel="alternate" hreflang="pt" href="https://www.reddit.com/pt/" />

Proposal

Web authors are beginning to create embeddings for there websites. As things stand right now a webmaster would be able to publish their embeddings as an alternative format.

<link rel="alternate" type="application/vnd.sqlite3" href="/public/embeddings.sqlite" />

However, there is no way to define which model was used to make the embeddings. This is the purpose for ailang

<link rel="alternate" ailang="openai/text-embedding-ada-002" type="application/vnd.sqlite3" href="/public/embeddings.sqlite"  />

Now AI browsers will be able to better interact with the content on the web because they will have access to a vector database provided by the web author.

Further reading

https://fly.io/blog/skip-the-api/
https://www.leebutterman.com/2023/06/01/offline-realtime-embedding-search.html
https://en.wikipedia.org/wiki/Semantic_Web

@BLamy
Copy link
Author

BLamy commented Sep 20, 2023

Please help me come up with a better name than ailang. Or maybe make the argument for why hreflang is actually what I want.

@SRUJANA2199

This comment was marked as spam.

@keithamus
Copy link
Contributor

If you are linking to a document that has a specific purpose then it’s most likely that you want want to specify a new mime type for that purpose, for example `application/vnd.sqlite3+openai”.

Other than RSS/Atom and stylesheets, the HTML specification does not specify alternate link types, instead the IANA mime type database does. I don’t know if we would want to extend the specification to include alternate documents specifically for AI model embeds, in the same way that it hasn’t been extended for JSONLD. That work is handled by separate standards bodies.

Consequently I’ll close this issue as I think it’s the wrong forum. If you think that’s incorrect let me know and we can discuss it further. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants