mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Make generate better image prompt chat actor add composition details
This commit is contained in:
@@ -128,8 +128,8 @@ User's Notes:
|
|||||||
## --
|
## --
|
||||||
|
|
||||||
image_generation_improve_prompt_base = """
|
image_generation_improve_prompt_base = """
|
||||||
You are a talented creator with the ability to describe images to compose in vivid, fine detail.
|
You are a talented media artist with the ability to describe images to compose in professional, fine detail.
|
||||||
Use the provided context and user prompt to generate a more detailed prompt to create an image:
|
Generate a vivid description of the image to be rendered using the provided context and user prompt below:
|
||||||
|
|
||||||
Today's Date: {current_date}
|
Today's Date: {current_date}
|
||||||
User's Location: {location}
|
User's Location: {location}
|
||||||
@@ -145,10 +145,10 @@ Conversation Log:
|
|||||||
|
|
||||||
User Prompt: "{query}"
|
User Prompt: "{query}"
|
||||||
|
|
||||||
Now generate an improved prompt describing the image to generate in vivid, fine detail.
|
Now generate an professional description of the image to generate in vivid, fine detail.
|
||||||
- Use today's date, user's location, user's notes and online references to weave in any context that will improve the image generation.
|
- Use today's date, user's location, user's notes and online references to weave in any context that will improve the image generation.
|
||||||
- Retain any important information and follow any instructions in the conversation log or user prompt.
|
- Retain any important information and follow any instructions in the conversation log or user prompt.
|
||||||
- Add specific, fine position details to compose the image.
|
- Add specific, fine position details. Mention painting style, camera parameters to compose the image.
|
||||||
- Ensure your improved prompt is in prose format."""
|
- Ensure your improved prompt is in prose format."""
|
||||||
|
|
||||||
image_generation_improve_prompt_dalle = PromptTemplate.from_template(
|
image_generation_improve_prompt_dalle = PromptTemplate.from_template(
|
||||||
|
|||||||
Reference in New Issue
Block a user