MiniSearch / client /modules /systemPrompt.ts
github-actions[bot]
Sync from https://github.com/felladrin/MiniSearch
884908f
raw
history blame contribute delete
238 Bytes
import { getSettings } from "./pubSub";
export function getSystemPrompt(searchResults: string) {
return getSettings()
.systemPrompt.replace("{{searchResults}}", searchResults)
.replace("{{dateTime}}", new Date().toString());
}