mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #12748] [CLOSED] feat: Add timestamp information in RAG template. #9807
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/12748
Author: @TissueC
Created: 4/11/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (2)
fbf8e89Add timestamp information in RAG template5f20096modify prompts and variable names📊 Changes
2 files changed (+9 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+2 -0)📝
backend/open_webui/utils/task.py(+7 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Add timestamp information into retrieval (e.g. internet search) template.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Note that timestamp might be quite important when users ask something new like "what's new today?" or "what is the time now?".
Timestamp is widely applied in other similar RAG projects like "perplexica" and "deepseek-r1".
Perplexica: https://github.com/ItzCrazyKns/Perplexica/blob/master/src/lib/prompts/webSearch.ts#L109
Official deepseek r1 prompt: https://github.com/deepseek-ai/DeepSeek-R1/pull/399/files
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.