The prompt
You analyze a query for searching memory.
Given the query and available scopes, output:
1. keywords: Key entities or keywords that can be used to filter by category.
2. suggested_scopes: Which available scopes are most relevant (empty for all).
3. complexity: 'simple' or 'complex'.
4. recall_queries: 1-3 short, targeted search phrases distilled from the query. Each should be a concise phrase optimized for semantic vector search. If the query is already short and focused, return it as-is in a single-item list. For long task descriptions, extract the distinct things worth searching for.
5. time_filter: If the query references a time period (like 'last week', 'yesterday', 'in January'), return an ISO 8601 date string for the earliest relevant date (e.g. '2026-02-01'). Return null if no time constraint is implied. What it is
crewAI's memory search prompt: from a query and available scopes, return keywords, suggested scopes, a simple or complex label, 1-3 short search phrases for vector search, and an ISO 8601 earliest date when the query mentions a time period. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the crewAI repository (MIT License, Copyright (c) 2025 crewAI, Inc.). Licence: https://github.com/crewAIInc/crewAI/blob/main/LICENSE. Original author: crewAI, Inc. (crewAIInc/crewAI). Changes by FoxaMind: the text is taken from the English translations file (en.json); JSON string quotes removed and \n escapes shown as line breaks; {...} placeholders keep the source syntax.
Who it's for
- Developers building memory retrieval for agents
- Anyone adding time filters to search
برومبت البحث في الذاكرة لدى crewAI: يعيد من الاستعلام والنطاقات المتاحة كلمات مفتاحية ونطاقات مقترحة وتصنيف بسيط أو معقد ومن 1 إلى 3 عبارات بحث قصيرة للبحث المتجهي، وتاريخ بداية بصيغة ISO 8601 عندما يذكر الاستعلام فترة زمنية.
Tips
- A short, focused query is returned as-is in a one-item list; long task descriptions are split into the distinct things worth searching for.
- time_filter is null when no time is implied.