where are the prompts used for tasks at?
- User
where are the prompts used for tasks at?
Assistant
Looking at the provided code, the prompt templates for tasks are defined in the config setup within
main.py. Specifically, these prompts are configured as part of the app state configuration:pythonapp.state.config.TITLE_GENERATION_PROMPT_TEMPLATE = TITLE_GENERATION_PROMPT_TEMPLATE app.state.config.TAGS_GENERATION_PROMPT_TEMPLATE = TAGS_GENERATION_PROMPT_TEMPLATE app.state.config.TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE = TOOLS_FUNCTION_CALLING_PROMPT_TEMPLATE app.state.config.QUERY_GENERATION_PROMPT_TEMPLATE = QUERY_GENERATION_PROMPT_TEMPLATE app.state.config.AUTOCOMPLETE_GENERATION_PROMPT_TEMPLATE = AUTOCOMPLETE_GENERATION_PROMPT_TEMPLATEThese prompts appear to be imported from a config file, though the actual config file containing the prompt templates is not shown in the provided repository files. The prompts are used for various task generations including:
- Title generation
- Tags generation
- Tools function calling
- Query generation
- Autocomplete generation
There's also a database schema for prompts defined in
prompts.pythat allows storing and managing prompts, but this appears to be for user-defined prompts rather than the system task prompts.To find the actual content of these prompt templates, you would need to look at the config file where these constants (like
TITLE_GENERATION_PROMPT_TEMPLATE) are defined, which isn't included in the provided context.- User
where are the prompt templates at then?
Assistant
From the provided repository files, I cannot see the actual prompt templates as the config file containing them is not included in the context.
To find these templates, you would likely need to look in either:
- A config.py file in the backend directory
- An environment configuration file
- Or possibly in a separate configuration module
However, since these files are not provided in the context, I cannot tell you the exact location or content of these templates.
If you want to find these in the actual repository, you would need to:
- Look for files with names like
config.py,constants.py, or similar configuration files in the backend directory - Check for environment variable files (
.envor similar) - Or search through the repository for the constant names like
TITLE_GENERATION_PROMPT_TEMPLATE
Would you like me to help you construct a search query to find these templates in the full repository?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.