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

Copy ChatMessage meta fields in ChatPromptBuilder #1011

Closed
vblagoje opened this issue Aug 20, 2024 · 0 comments · Fixed by deepset-ai/haystack#8317
Closed

Copy ChatMessage meta fields in ChatPromptBuilder #1011

vblagoje opened this issue Aug 20, 2024 · 0 comments · Fixed by deepset-ai/haystack#8317
Assignees
Labels
bug Something isn't working P1

Comments

@vblagoje
Copy link
Member

Describe the bug
We don't copy meta fields when we render ChatMessage with template

To Reproduce

  1. Create a ChatMessage
  2. Set its content to some jinja template
  3. Set meta field of that message to some value
  4. Pass the message through ChatPromptBuilder
  5. Witness how message got rendered but its meta field is lost

Describe your environment (please complete the following information):

  • OS: OSX
  • Haystack version: 2.4
  • Integration version:

Note

Discovered when experimenting with AnthropicChatGenerator in #1006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1
Projects
None yet
2 participants