Open hemanth opened 4 months ago
Hey @hemanth!! I think it might be good to have a single proposal for the various related LLM things. It might also be best to start with a focus on the use cases you're setting out to solve, rather than specific API shapes.
Hello @yoavweiss I briefly touched upon the use-cases, update them with more.
The window.ai.rag
would essentially implement a generic RAG (Retrieval-Augmented Generation) function that takes an input and retrieves a set of relevant or supporting documents based on a given source.
single proposal for the various related LLM things
I would love too, you suggest we combine all of #160 #159 #158 into a single proposal?
IMHO, .ai
namespace is better in navigator
than window
. According to the TAG review, the Web Translation API should not be part of the .ai
namespace (https://github.com/w3ctag/design-reviews/issues/948#issuecomment-2274380634), so it could still be changed to navigator
. How about that?
Name spaces should be function-led rather than technology-used-to-deliver-the-function-led.
The use of a .ai
namespace is intentional, reflecting the API's focus on AI technology.
This explicit naming clarifies its purpose and capabilities, distinguishing it from traditional services in a multi-functional environment. Additionally, the .ai
namespace is gaining recognition as the standard for AI-related technologies, enhancing clarity for end users.
Would you be suggesting the use of window.navigator.ai
?
I would appreciate your insights on any potential side effects of utilizing the .ai
namespace on window
.
The
window.ai.rag
API enables web applications to perform Retrieval-Augmented Generation (RAG) directly in the browser. RAG combines the power of large language models with the ability to retrieve and incorporate relevant information from a knowledge base.This API is particularly useful for:
By implementing RAG in the browser, applications can:
More use-cases:
API: