MiniSearch / client /modules /systemPrompt.ts
github-actions[bot]
Sync to HuggingFace Spaces
06cc844
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());
}