miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
5.06k stars 1.18k forks source link

feat: Add current date and time to prompt for researcher #149

Closed andrewginns closed 2 months ago

andrewginns commented 2 months ago

Overview

This pull request introduces a new feature to the researcher function in the researcher.tsx file. The feature adds the current date and time to the system prompt that is passed to the Language Model (LLM). The date and time are fetched programmatically and change based on the system time.

Ensures that any web searches related to time sensitive topics have the correct current datetime e.g.

image

Changes Introduced

researcher Function: The researcher function in the researcher.tsx file has been updated to include the current date and time in the system prompt:

Usage

No additional steps are required to use this feature. The date and time will be automatically included in the system prompt each time the researcher function is called.

Testing

The updated researcher function has been tested locally to ensure that the current date and time are correctly included in the system prompt and that they change based on the system time.

vercel[bot] commented 2 months ago

@andrewginns is attempting to deploy a commit to the morphic Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
morphic ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2024 1:07am