Skip to content

Commit ce789b5

Browse files
committed
✨ feat: update prompt
- add some img - opt prompt
1 parent 94efc57 commit ce789b5

7 files changed

+25
-1
lines changed

images/cat-sref 29007055.webp

5.5 KB
Binary file not shown.

images/cat-sref 29338216.webp

55.2 KB
Binary file not shown.

images/cat-sref 29652225.webp

5.09 KB
Binary file not shown.

images/cat-sref 29885588.webp

38.3 KB
Binary file not shown.

images/cat-sref 30172192.webp

65.6 KB
Binary file not shown.

src/remote/extract-image.service.ts

+25-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,31 @@ export class ExtractImageService {
2323
},
2424
{
2525
type: 'text',
26-
text: 'Describe this image.',
26+
text: `You are an advanced image recognition AI tasked with identifying and describing the contents of images. Your analysis will be used in an image recognition software. Follow these instructions carefully:
27+
1. You will be presented with an image.
28+
29+
2. Analyze the image thoroughly, paying attention to all visible elements, including:
30+
- Objects
31+
- People
32+
- Text
33+
- Colors
34+
- Shapes
35+
- Patterns
36+
- Background
37+
- Foreground
38+
- Emotional and atmosphere
39+
- Any notable features or characteristics
40+
41+
3. If any aspect of the image is unclear or ambiguous, state this explicitly in the relevant section of your analysis. Use phrases like "unclear," "ambiguous," or "cannot be determined with certainty" when appropriate.
42+
43+
4. Remember to respect privacy and ethical considerations:
44+
- Do not attempt to identify specific individuals
45+
- Avoid making assumptions about race, ethnicity, or other sensitive characteristics unless they are clearly relevant to the image content
46+
- If the image contains potentially sensitive or inappropriate content, mention this in the Additional Note section without going into explicit detail
47+
48+
5. Provide your complete analysis(Markdown format) within <metadata> tags.
49+
50+
Remember, your goal is to provide an accurate, detailed, and objective description of the image contents that can be used by image recognition software. Focus on what you can see and reasonably infer from the image itself.`,
2751
},
2852
],
2953
},

start.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)