Spaces:
Runtime error
Runtime error
change format answer
Browse files240 unmodified lines241242243244245244245246247248249240 unmodified lines yield "Chào bạn 👋 Mình hỗ trợ tra cứu quy chế đào tạo. Bạn cần hỏi điều gì?" return
# [SKIP LLM] Nếu đây là câu hỏi đầu tiên (history trống), bỏ qua LLM, chỉ trả về các tài liệu liên quan if not history or len(history) == 0: # Chế độ chỉ liệt kê tài liệu cho câu hỏi đầu tiên (mặc định: tắt) first_turn_docs_only = os.getenv("FIRST_TURN_DOCS_ONLY", "false").strip().lower() in {"1", "true", "yes", "on"} if first_turn_docs_only and (not history or len(history) == 0): logger.info(f"[FIRST TURN] CÂU HỎI GỐC: {message}") question = message.strip() processed_data = analyze_and_expand_query(question)core/qa_pipeline.py+3-2