diff --git a/salt/elasticsearch/templates/component/so/assistant-mappings.json b/salt/elasticsearch/templates/component/so/assistant-mappings.json index f6f552465..89a907165 100644 --- a/salt/elasticsearch/templates/component/so/assistant-mappings.json +++ b/salt/elasticsearch/templates/component/so/assistant-mappings.json @@ -23,7 +23,7 @@ "type": "object", "enabled": false }, - "conversation_id": { + "sessionId": { "ignore_above": 1024, "type": "keyword" }, @@ -37,6 +37,54 @@ "userId": { "ignore_above": 1024, "type": "keyword" + }, + "message": { + "properties": { + "id": { + "ignore_above": 1024, + "type": "keyword" + }, + "type": { + "ignore_above": 1024, + "type": "keyword" + }, + "role": { + "ignore_above": 1024, + "type": "keyword" + }, + "model": { + "ignore_above": 1024, + "type": "keyword" + }, + "contentStr": { + "type": "text" + }, + "contentBlocks": { + "type": "nested", + "enabled": false + }, + "stopReason": { + "ignore_above": 1024, + "type": "keyword" + }, + "stopSequence": { + "ignore_above": 1024, + "type": "keyword" + }, + "usage": { + "properties": { + "input_tokens": { + "type": "long" + }, + "output_tokens": { + "type": "long" + }, + "credits": { + "type": "long" + } + } + } + } } } }