Prateek Gupta
Prateek Gupta
error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] Traceback (most recent call last): File "", line 2, in File...
# Import Guard and Validator from guardrails.hub import RestrictToTopic from guardrails import Guard # Setup Guard guard = Guard().use( RestrictToTopic( valid_topics=["sports"], invalid_topics=["music"], disable_classifier=True, disable_llm=False, on_fail="exception" ) ) guard.validate(""" In Super...
response = rails.generate(messages=[{ "role": "user", "content": "What is the capital of France?" }]) print(response["content"]) WARNING: nemoguardrails.actions.action_dispatcher:Error while execution generate_user_intent: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}...