NVIDIA / NeMo-Guardrails

NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Other
4.22k stars 402 forks source link

feat(llmrails): Add serialization support for LLMRails #627

Closed Pouyanpi closed 3 months ago

Pouyanpi commented 4 months ago

The changes include the addition of __getstate__ and __setstate__ and methods to the LLMRails class. These methods are used for pickling and unpickling of the class instance, allowing it to be serialized and deserialized.

It might resolve #614

DixitAdh commented 3 months ago

@Pouyanpi do you know when will this fix will be available in released version?

Pouyanpi commented 3 months ago

@DixitAdh, It may be included in the 0.10.0 release, which is expected within one or two weeks. However, this hasn’t been decided yet. I’ll keep you updated.

ishaan-mehta commented 2 months ago

Hi @Pouyanpi — any updates on the new release? The fix here is critical for me to be able to use NeMo Guardrails with promptflow on Databricks, and it would be great if I could install from PyPI instead of develop.

Pouyanpi commented 2 months ago

Hi @Pouyanpi — any updates on the new release? The fix here is critical for me to be able to use NeMo Guardrails with promptflow on Databricks, and it would be great if I could install from PyPI instead of develop.

Hi @ishaan-mehta, the new release will be published early next week, probably on Monday. Hope it unblocks you by then

ishaan-mehta commented 2 months ago

Hi @Pouyanpi, thanks! Is the release still on track to be published today/tomorrow?

Pouyanpi commented 2 months ago

Hi @Pouyanpi, thanks! Is the release still on track to be published today/tomorrow?

Hi @ishaan-mehta, sorry for getting back to you late. v0.10.0 was released last Friday, you can give it a try.