Artificial Intelligence, Machine Learning, Data Science, Python, Programming.
technical_term, common_term in mapping.items(): user_query = user_query.replace(common_term, technical_term) return user_query # Example usage user_query = "Show sales for vendor last year" translated_query = translate_query(user_query, mapping) # Now translated_query can be passed to the LLM for