Send `gen_ai.embeddings.input` with appropriate format
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 64/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- python
研究方向
首先找出 Python SDK 發出 gen_ai.embeddings.input 的位置,並閱讀周圍的嵌入 instrumentation。將發出的值和型別與 issue 及其連結的 GenAI RFC 中的四種格式進行比較。為 text、texts、tokens 和 token_batches 新增或更新針對性測試;每種輸入形式都以相符的型別送出時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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]],
}
- 主要語言
- Python
- 星號
- 2.2k
- 分支
- 682
- 平均合併
- 1 天 7 小時
- 30 天內合併 PR
- 244
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getsentry/sentry-python 的其他 Issue
-
Improvement Python Spans
難度 2/5 1-3 小時 新手友好度 68/100
getsentry/sentry-python#7994 · 1 則留言 ·
維護者通常 1 天內回覆
-
Improvement Python Spans
難度 2/5 1-3 小時 新手友好度 65/100
getsentry/sentry-python#7992 · 1 則留言 ·
維護者通常 1 天內回覆
-
Improvement Python Spans
難度 2/5 1-3 小時 新手友好度 62/100
getsentry/sentry-python#7990 · 1 則留言 ·
維護者通常 1 天內回覆
-
Improvement Python
難度 2/5 1-3 小時 新手友好度 63/100
getsentry/sentry-python#7989 · 1 則留言 ·
維護者通常 1 天內回覆
-
Improvement Python Spans
難度 2/5 1-3 小時 新手友好度 65/100
getsentry/sentry-python#7977 · 1 則留言 ·
維護者通常 1 天內回覆
查看 getsentry/sentry-python 的全部 Issue
相似的 Issue
-
python triage
難度 2/5 1-3 小時 新手友好度 82/100
microsoft/semantic-kernel#14590 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
pinterest/pymemcache#662 ·
維護者通常 1 天內回覆
-
難度 2/5 半天 新手友好度 62/100
gnocchixyz/gnocchi#1527 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 64/100
tenstorrent/tt-model-manager#181 ·
維護者通常 1 天內回覆