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

[bug] MESSAGE_CONTENTS semantic convention not supported in Arize #1143

Open
mshick opened this issue Dec 3, 2024 · 4 comments
Open

[bug] MESSAGE_CONTENTS semantic convention not supported in Arize #1143

mshick opened this issue Dec 3, 2024 · 4 comments
Labels
cannot reproduce language: js Related to JavaScript or Typescript integration

Comments

@mshick
Copy link

mshick commented Dec 3, 2024

Describe the bug
When sending spans to Arize via the openinference-vercel package, I noticed that message contents were not showing up in the span view nor in the attributes. They appear to be discarded. I traced the issue to the use of MESSAGE_CONTENTS here. I do not see message.contents available as a string or string list type in the Arize Semantic Conventions, so the use of the convention seems incorrect.

To Reproduce
Create an application using ai, @ai-sdk/openai, and @arizeai/openinference-vercel. Connect to an Arize (not Phoenix) service. Notice the lack of message contents when using the generateText method from ai.

Expected behavior
I would expect the message contents in the span provided by openinference-vercel to appear in Arize. Instead they appear to be discarded, perhaps because they are not known to the Arize semantic conventions?

Screenshots
Screenshot 2024-12-03 at 13 51 19
Screenshot 2024-12-03 at 13 51 26

Desktop (please complete the following information):
N/A

Additional context
We are currently running a custom fork of the package, where I concatenate and stringify the message.content array provided by ai and set it to the semantic convention llm.input_messages.N.message.content. These contents show up without issue in Arize.

@mshick mshick added bug Something isn't working triage Issues that require triage labels Dec 3, 2024
@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Dec 3, 2024
@dosubot dosubot bot added the language: js Related to JavaScript or Typescript integration label Dec 3, 2024
@mikeldking mikeldking removed the triage Issues that require triage label Dec 3, 2024
@mikeldking
Copy link
Contributor

Hey @mshick thanks for the issue! It probably is a instrumentation problem so will look into it. I mainly maintain phoenix however so please let me know if you would like support from the arize platform side as well!

@mikeldking
Copy link
Contributor

Correction @mshick - it's actually an ingestion issue for muti-part messages on the Arize side. I've flagged the arize support team and they will help you out! It's tracked internally but let me know if you have any further questions.

@mshick
Copy link
Author

mshick commented Dec 3, 2024

Nice, thank you for looking into it. Can your team let me know when you've got it resolved so I can update / test on my end?

@mikeldking
Copy link
Contributor

Hey @mshick I'm gonna tag a few engineers here just to track. @harrisonchu @nate-mar - the tracking issue is (https://github.com/Arize-ai/arize/issues/37154) (this is a private repo so only those that have access will be able to track).

I believe you wouldn't have this issue in Phoenix or even managed phoenix if you are willing to use that for now.

@mikeldking mikeldking added cannot reproduce and removed bug Something isn't working labels Dec 5, 2024
@mikeldking mikeldking removed this from phoenix Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot reproduce language: js Related to JavaScript or Typescript integration
Projects
None yet
Development

No branches or pull requests

2 participants