pub fn extract_topics(prompt: &str) -> Vec<String>Expand description
Extracts topics from a prompt.
Topics are significant words that might map to memory tags or namespaces.
ยงPerformance
Uses linear deduplication via Vec::contains() instead of HashSet since
we limit to 5 topics. This avoids allocating a separate HashSet and cloning
strings for both collections.