Spaces:
Runtime error
Runtime error
| import sys | |
| import os | |
| sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| try: | |
| from app.services.industry_ai import IndustryAI | |
| industry_ai = IndustryAI() | |
| # Test complex query | |
| query = "I have also flu as well" | |
| industry = "Healthcare" | |
| print(f"Testing Query: '{query}'") | |
| response, confidence, needs_contact = industry_ai.get_industry_dataset_response(query, industry) | |
| print(f"Response: {response[:100]}...") | |
| print(f"Confidence: {confidence}") | |
| if confidence > 0.6: | |
| print("✅ SUCCESS: Matched 'flu' despite filler words.") | |
| else: | |
| print("❌ FAILURE: Still failed to match.") | |
| except Exception as e: | |
| import traceback | |
| traceback.print_exc() | |