Send `gen_ai.embeddings.input` with appropriate format
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 64/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- backend-api-design
Research direction
Start by locating where the Python SDK emits gen_ai.embeddings.input and read the embedding instrumentation around it. Compare the emitted value and type with the four formats in the issue and the linked GenAI RFC. Add or update focused tests for text, texts, tokens, and token_batches; done means each input shape is sent with its matching type.
Written by the indexing model from the issue text.
Description
As per the GenAI RFC:
The attribute is a union discriminated by the type property. The type property is one of "text", "texts", "tokens", or "token_batches".
If the type is "text", then the value is a simple string, as in
{
"type": "text",
"value": "Hello, world!",
}
If the type is "texts", the value is a string array, as in
{
"type": "texts",
"value": ["First text", "Second text", "Third text"],
}
If the type is "tokens", then the value is an array of integers, as in
{
"type": "tokens",
"value": [5, 8, 13, 21, 34],
}
Finally, if the type is "token_batches", then the value is a 2-dimensional array of integers, as in
{
"type": "token_batches",
"value": [[5, 8, 13, 21, 34], [8, 13, 21, 34, 55]],
}
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 692
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 236
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-python
-
Improvement Python Spans
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-python#7994 · 1 comment ·
Maintainers usually reply within 1 day
-
`cohere`: Set request parametersPossibly taken @mohanprasath-dev claimed this today. OpenImprovement Python Spans Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
getsentry/sentry-python#7992 · 2 comments ·
Maintainers usually reply within 1 day
-
Improvement Python Spans
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
getsentry/sentry-python#7990 · 1 comment ·
Maintainers usually reply within 1 day
-
Improvement Python
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
getsentry/sentry-python#7989 · 1 comment ·
Maintainers usually reply within 1 day
-
Improvement Python Spans
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
getsentry/sentry-python#7977 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/sentry-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cathrynlavery/diagram-design#441 ·
Maintainers usually reply within 2 days
-
[Cleanup] Include the public header in work_split.cppPossibly taken @blozano-tt claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
tenstorrent/tt-metal#60850 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
backend::sglang bug language::python observability
Difficulty 2/5 Half a day Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
OpenShot/openshot-qt#6202 ·
Maintainers usually reply within 1 day