Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/issue 183 non openai hallucination check #681

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

Pouyanpi
Copy link
Collaborator

Allow the use of non OpenAI llm models.

@Pouyanpi Pouyanpi requested a review from drazvan August 19, 2024 14:41
@Pouyanpi Pouyanpi self-assigned this Aug 19, 2024
@Pouyanpi
Copy link
Collaborator Author

@drazvan, is it Ok to delegate the check for "temperature" or "n" to the "LLMParams" like this?

Copy link
Collaborator

@drazvan drazvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pouyanpi: we should do a proactive check if the LLM supports the n parameter, similar to https://github.com/NVIDIA/NeMo-Guardrails/blob/develop/nemoguardrails/rails/llm/llmrails.py#L371. Otherwise, this will most likely raise an error.

@Pouyanpi
Copy link
Collaborator Author

@drazvan, I made the change, please have a look.

Copy link
Collaborator

@drazvan drazvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍.

@drazvan drazvan merged commit f04f546 into develop Aug 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants