Skip to content

Commit

Permalink
add promptfoo docs update and prompt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akotyla committed Oct 22, 2024
1 parent 8c58083 commit 8d984e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/integrations/promptfoo.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ You can then edit the generated file to add your custom `promptfoo` configuratio
file is ready, you can run `promptfoo` with the following command:

```bash
promptfoo -c /path/to/generated/promptfoo-config.yaml eval
promptfoo eval -c /path/to/generated/promptfoo-config.yaml
```

**Important: To ensure compatibility, make sure Node.js version 20 is installed.**
2 changes: 1 addition & 1 deletion packages/ragbits-core/src/ragbits/core/prompt/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _render_template(cls, template: Template, input_data: Optional[InputT]) -> s
# because of mypy issue: https://github.com/python/mypy/issues/12622
context = {}
if isinstance(input_data, BaseModel):
context = input_data.model_dump()
context = input_data.model_dump(serialize_as_any=True)
return template.render(**context)

@classmethod
Expand Down

0 comments on commit 8d984e5

Please sign in to comment.