NeMo-Guardrails icon indicating copy to clipboard operation
NeMo-Guardrails copied to clipboard

Sagemaker endpoint not integrated

Open maheshk1022 opened this issue 1 year ago • 1 comments

While using nemo guardrail it supports sagemaker endpoint in provider list but when try to do inference then it generating complete garbage responce.

This is the code snippet I am using.

config = RailsConfig.from_content( colang_content=colang_content, yaml_content=yaml_content) rails = LLMRails(config=config,llm = sagemaker_endpoint)

await rails.generate_async(messages = [{"role": "user", "content": "How do I cook spaghetti?"}])

Also I have tried different prompt twiking but it did not works well.

maheshk1022 avatar May 01 '24 09:05 maheshk1022

Hi @maheshk1022, thanks for sharing it with us. Would it be possible for you to share more info, like what config you are using, so that we can reproduce it? Thanks!

Pouyanpi avatar Jun 06 '24 14:06 Pouyanpi