-
Notifications
You must be signed in to change notification settings - Fork 353
gen-ai: semantic conventions for memory operations #3250
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
base: main
Are you sure you want to change the base?
Changes from all commits
8e2d1d0
20281f4
08663bb
73b4a70
57a823f
f63afb3
24a92d4
cca1a50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Use this changelog template to create an entry for release notes. | ||
| # | ||
| # If your change doesn't affect end users you should instead start | ||
| # your pull request title with [chore] or use the "Skip Changelog" label. | ||
|
|
||
| # One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
| change_type: enhancement | ||
|
|
||
| # The name of the area of concern in the attributes-registry, (e.g. http, cloud, db) | ||
| component: gen-ai | ||
|
|
||
| # A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
| note: Add semantic conventions for GenAI memory operations. | ||
|
|
||
| # Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
| # The values here must be integers. | ||
| issues: [3250] | ||
|
|
||
| # (Optional) One or more lines of additional information to render under the primary note. | ||
| # These lines will be padded with 2 spaces and then inserted directly into the document. | ||
| # Use pipe (|) for multiline entries. | ||
| subtext: | | ||
| Adds `gen_ai.operation.name` values for memory operations and introduces `gen_ai.memory.*` attributes and spans for memory store lifecycle, search, upsert, and delete. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "$defs": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't think we have to act on it yet, but it's interesting that Could you please create an issue for it so we come back to it during stabilization process? |
||
| "MemoryRecord": { | ||
| "additionalProperties": true, | ||
| "description": "Represents a single memory record stored in or retrieved from a memory store.", | ||
| "properties": { | ||
| "content": { | ||
| "description": "The content of the memory record.", | ||
| "title": "Content", | ||
| "type": "string" | ||
| }, | ||
| "id": { | ||
| "description": "A unique identifier for the memory record.", | ||
| "title": "Id", | ||
| "type": "string" | ||
| }, | ||
| "score": { | ||
| "description": "The relevance score of the memory record (populated on search results).", | ||
| "title": "Score", | ||
| "type": "number" | ||
| }, | ||
| "metadata": { | ||
| "additionalProperties": true, | ||
| "description": "Provider-specific metadata associated with the memory record.", | ||
| "title": "Metadata", | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "title": "MemoryRecord", | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "description": "Represents the list of memory records stored in or retrieved from a memory store.", | ||
| "items": { | ||
| "$ref": "#/$defs/MemoryRecord" | ||
| }, | ||
| "title": "MemoryRecords", | ||
| "type": "array" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we define code representation of json model for each of the existing ones in the https://github.com/open-telemetry/semantic-conventions/blob/main/docs/gen-ai/non-normative/models.ipynb (so it's easier to review and, for users who are not familiar with json schema, to read and interpret conventions. could you please add one there? thanks!