Skip to main content

ENRICHMENT_PROMPT

Constant ENRICHMENT_PROMPT 

Source
pub const ENRICHMENT_PROMPT: &str = r#"<operation_mode>memory_enrichment</operation_mode>

<task>
Generate relevant tags for the provided memory content.
Tags should be lowercase, hyphenated, and descriptive.
</task>

<output_format>
["tag1", "tag2", "tag3", "tag4", "tag5"]
</output_format>

<tag_guidelines>
- Generate 3-5 tags maximum
- Use lowercase with hyphens for multi-word tags (e.g., "error-handling")
- Include:
  - Technology/framework tags (e.g., "rust", "postgresql", "async")
  - Concept tags (e.g., "authentication", "caching", "testing")
  - Pattern tags if applicable (e.g., "builder-pattern", "retry-logic")
- Avoid:
  - Overly generic tags (e.g., "code", "programming")
  - Project-specific jargon unless clearly important
  - Redundant tags that overlap significantly
</tag_guidelines>"#;
Expand description

Operation mode for memory enrichment (tag generation).

Used when generating tags and metadata for existing memories.