Verified Owner
Top Fields Constructors Methods
org.jabref.logic.ai.templates

public final Class AiTemplateRenderer

extends Object
Class Inheritance
Imports
java.io.StringWriter, java.util.List, org.jabref.model.ai.AiMetadata, org.jabref.model.ai.chatting.ChatMessage, org.jabref.model.ai.pipeline.RelevantInformation, org.jabref.model.entry.BibEntry, .CanonicalBibEntry, org.apache.velocity.VelocityContext, org.apache.velocity.app.VelocityEngine

Field Summary

Modifier and TypeField and Description
private static final org.apache.velocity.VelocityContext
private static final org.apache.velocity.app.VelocityEngine

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
render(String templateSource, String logName, org.apache.velocity.VelocityContext context)

public static String
renderChattingSystemMessage(String templateSource, List<BibEntry> entries)

public static String
renderChattingUserMessage(String templateSource, List<BibEntry> entries, String message, List<RelevantInformation> excerpts)

public static String
public static String
renderFollowUpQuestionsPrompt(String templateSource, String userMessage, String aiResponse, int count)

public static String
renderMarkdownChatExport(String templateSource, AiMetadata metadata, String bibtex, List<ChatMessage> messages)

public static String
public static String
public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BASE_CONTEXTback to summary
private static final org.apache.velocity.VelocityContext BASE_CONTEXT
VELOCITY_ENGINEback to summary
private static final org.apache.velocity.app.VelocityEngine VELOCITY_ENGINE

Constructor Detail

AiTemplateRendererback to summary
private AiTemplateRenderer()

Method Detail

renderback to summary
private static String render(String templateSource, String logName, org.apache.velocity.VelocityContext context)
renderChattingSystemMessageback to summary
public static String renderChattingSystemMessage(String templateSource, List<BibEntry> entries)
renderChattingUserMessageback to summary
public static String renderChattingUserMessage(String templateSource, List<BibEntry> entries, String message, List<RelevantInformation> excerpts)
renderCitationParsingSystemMessageback to summary
public static String renderCitationParsingSystemMessage(String templateSource)
renderFollowUpQuestionsPromptback to summary
public static String renderFollowUpQuestionsPrompt(String templateSource, String userMessage, String aiResponse, int count)
renderMarkdownChatExportback to summary
public static String renderMarkdownChatExport(String templateSource, AiMetadata metadata, String bibtex, List<ChatMessage> messages)
renderSummarizationChunkSystemMessageback to summary
public static String renderSummarizationChunkSystemMessage(String templateSource)
renderSummarizationCombineSystemMessageback to summary
public static String renderSummarizationCombineSystemMessage(String templateSource)
renderSummarizationFullDocumentSystemMessageback to summary
public static String renderSummarizationFullDocumentSystemMessage(String templateSource)