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

FR: Grounding options #60

Open
hemanth opened this issue Nov 27, 2024 · 1 comment
Open

FR: Grounding options #60

hemanth opened this issue Nov 27, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hemanth
Copy link
Contributor

hemanth commented Nov 27, 2024

Today if we have a query that needs latest info that the model might not have

const session = await ai.languageModel.create();
console.log(await session.prompt("NASDAQ: GOOG price today?"));

We would see something like:

I do not have access to real-time information, including live stock prices like the one for GOOG (Alphabet Inc.). To find the current price, I recommend checking a reliable financial website like:

* **Google Finance:** [www.google.com/finance/quote/GOOG:NASDAQ](www.google.com/finance/quote/GOOG:NASDAQ)
* **Yahoo Finance:** [finance.yahoo.com/quote/GOOG](finance.yahoo.com/quote/GOOG)
* **Bloomberg:** [www.bloomberg.com/quote/GOOG:NAS](www.bloomberg.com/quote/GOOG:NAS)
* **MarketWatch:** [www.marketwatch.com/investing/stock/goog](www.marketwatch.com/investing/stock/goog)

These websites will provide you with the most up-to-date and accurate price for GOOG.

If we were to have grounding option that could fetch results from google it would be useful?

const session = await ai.languageModel.create();
console.log(await session.prompt("NASDAQ: GOOG price today?", grounding=true));

Should result in something like: Alphabet Inc Class C: 170.62 USD

@tomayac
Copy link
Contributor

tomayac commented Nov 27, 2024

It could well be backed by Google in Chrome's implementation, but grounding in the context of the explainer repo should probably more generally refer to something like connecting model output to verifiable sources of information, like search engines.

@domenic domenic added the enhancement New feature or request label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants