default_prompt_template#
This is the default system prompt template used in the LightRAG.
Use Prompt class to manage it.
Constants
- LIGHTRAG_DEFAULT_PROMPT_ARGS = ['task_desc_str', 'output_format_str', 'tools_str', 'examples_str', 'chat_history_str', 'context_str', 'steps_str', 'input_str']#
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
- LIGHTRAG_DEFAULT_PROMPT_TRAINABLE_PARAMS = ['task_desc_str', 'examples_str']#
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
- SIMPLE_DEFAULT_LIGHTRAG_SYSTEM_PROMPT = '<SYS>{{task_desc_str}}</SYS>\nUser: {{input_str}}\nYou:'#
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
- DEFAULT_LIGHTRAG_SYSTEM_PROMPT = '<START_OF_SYSTEM_PROMPT>\n{# task desc #}\n{% if task_desc_str %}\n{{task_desc_str}}\n{% else %}\nYou are a helpful assistant.\n{% endif %}\n{#input format#}\n{% if input_format_str %}\n<INPUT_FORMAT>\n{{input_format_str}}\n</INPUT_FORMAT>\n{% endif %}\n{# output format #}\n{% if output_format_str %}\n<OUTPUT_FORMAT>\n{{output_format_str}}\n</OUTPUT_FORMAT>\n{% endif %}\n{# tools #}\n{% if tools_str %}\n<TOOLS>\n{{tools_str}}\n</TOOLS>\n{% endif %}\n{# example #}\n{% if examples_str %}\n<EXAMPLES>\n{{examples_str}}\n</EXAMPLES>\n{% endif %}\n{# chat history #}\n{% if chat_history_str %}\n<CHAT_HISTORY>\n{{chat_history_str}}\n</CHAT_HISTORY>\n{% endif %}\n{#contex#}\n{% if context_str %}\n<CONTEXT>\n{{context_str}}\n</CONTEXT>\n{% endif %}\n<END_OF_SYSTEM_PROMPT>\n<START_OF_USER_PROMPT>\n{% if input_str %}\n{{input_str}}\n{% endif %}\n<END_OF_USER_PROMPT>\n{# steps #}\n{% if steps_str %}\n<START_OF_ASSISTANT_STEPS>\n{{steps_str}}\n<END_OF_ASSISTANT_STEPS>\n{% endif %}\n'#
This is the default system prompt template used in the LightRAG.
Use Prompt class to manage it.
- DEFAULT_LIGHTRAG_SYSTEM_PROMPT = '<START_OF_SYSTEM_PROMPT>\n{# task desc #}\n{% if task_desc_str %}\n{{task_desc_str}}\n{% else %}\nYou are a helpful assistant.\n{% endif %}\n{#input format#}\n{% if input_format_str %}\n<INPUT_FORMAT>\n{{input_format_str}}\n</INPUT_FORMAT>\n{% endif %}\n{# output format #}\n{% if output_format_str %}\n<OUTPUT_FORMAT>\n{{output_format_str}}\n</OUTPUT_FORMAT>\n{% endif %}\n{# tools #}\n{% if tools_str %}\n<TOOLS>\n{{tools_str}}\n</TOOLS>\n{% endif %}\n{# example #}\n{% if examples_str %}\n<EXAMPLES>\n{{examples_str}}\n</EXAMPLES>\n{% endif %}\n{# chat history #}\n{% if chat_history_str %}\n<CHAT_HISTORY>\n{{chat_history_str}}\n</CHAT_HISTORY>\n{% endif %}\n{#contex#}\n{% if context_str %}\n<CONTEXT>\n{{context_str}}\n</CONTEXT>\n{% endif %}\n<END_OF_SYSTEM_PROMPT>\n<START_OF_USER_PROMPT>\n{% if input_str %}\n{{input_str}}\n{% endif %}\n<END_OF_USER_PROMPT>\n{# steps #}\n{% if steps_str %}\n<START_OF_ASSISTANT_STEPS>\n{{steps_str}}\n<END_OF_ASSISTANT_STEPS>\n{% endif %}\n'#
This is the default system prompt template used in the LightRAG.
Use Prompt class to manage it.