Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.ai.preferences

public final Class AiDefaultTemplates

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.nio.charset.StandardCharsets, org.slf4j.Logger, .LoggerFactory

A collection of default AI templates loaded from resource files.

This collection is made into a separate class (instead of putting into defaults at org.jabref.logic.preferences.JabRefCliPreferences), because they are too big. Templates are stored in src/main/resources/ai/templates/ and loaded at startup.

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
public static final String
public static final String
public static final String
private static final Logger
public static final String
public static final String
public static final String
public static final String
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
loadTemplate(String templateName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CHATTING_SYSTEM_MESSAGE_TEMPLATEback to summary
public static final String CHATTING_SYSTEM_MESSAGE_TEMPLATE
CHATTING_USER_MESSAGE_TEMPLATEback to summary
public static final String CHATTING_USER_MESSAGE_TEMPLATE
CITATION_PARSING_SYSTEM_MESSAGE_TEMPLATEback to summary
public static final String CITATION_PARSING_SYSTEM_MESSAGE_TEMPLATE
CITATION_PARSING_USER_MESSAGE_TEMPLATEback to summary
public static final String CITATION_PARSING_USER_MESSAGE_TEMPLATE
FOLLOW_UP_QUESTIONS_TEMPLATEback to summary
public static final String FOLLOW_UP_QUESTIONS_TEMPLATE
LOGGERback to summary
private static final Logger LOGGER
MARKDOWN_CHAT_EXPORT_TEMPLATEback to summary
public static final String MARKDOWN_CHAT_EXPORT_TEMPLATE
SUMMARIZATION_CHUNK_SYSTEM_MESSAGE_TEMPLATEback to summary
public static final String SUMMARIZATION_CHUNK_SYSTEM_MESSAGE_TEMPLATE
SUMMARIZATION_COMBINE_SYSTEM_MESSAGE_TEMPLATEback to summary
public static final String SUMMARIZATION_COMBINE_SYSTEM_MESSAGE_TEMPLATE
SUMMARIZATION_FULL_DOCUMENT_SYSTEM_MESSAGE_TEMPLATEback to summary
public static final String SUMMARIZATION_FULL_DOCUMENT_SYSTEM_MESSAGE_TEMPLATE
TEMPLATE_BASE_PATHback to summary
private static final String TEMPLATE_BASE_PATH

Constructor Detail

AiDefaultTemplatesback to summary
private AiDefaultTemplates()

Method Detail

loadTemplateback to summary
private static String loadTemplate(String templateName)