From e5c16980cdedbcb3bf052290f7c07709d805481f Mon Sep 17 00:00:00 2001 From: susan Date: Fri, 26 Apr 2024 11:25:55 -0400 Subject: [PATCH] Add stage 0 draft --- rfcs/text/0000-llm-security-fields.md | 139 ++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 rfcs/text/0000-llm-security-fields.md diff --git a/rfcs/text/0000-llm-security-fields.md b/rfcs/text/0000-llm-security-fields.md new file mode 100644 index 0000000000..20f5a46649 --- /dev/null +++ b/rfcs/text/0000-llm-security-fields.md @@ -0,0 +1,139 @@ +# 0000: Name of RFC + + +- Stage: **0 (strawperson)** +- Date: **TBD** + + + + + +This RFC proposes LLM fields, with the increase of Generative AI and LLM logging. This will benefit our customers and users, allowing them to monitor and protect their LLM/Generative AI deployments. + + + + + +## Fields + + + +The `llm` fields proposed are: [WIP] + +Field | Type | Description /Usage +-- | -- | -- +llm.request.content | text | The full text of the user's request to the LLM. +llm.request.token_count | integer | Number of tokens in the user's request. +llm.response.content | text | The full text of the LLM's response. +llm.response.token_count | integer | Number of tokens in the LLM's response. +llm.user.id | keyword | Unique identifier for the user. +llm.user.rn | keyword | Unique resource name for the user. +llm.request.id | keyword | Unique identifier for the LLM request. +llm.response.id | keyword | Unique identifier for the LLM response. +llm.response.error_code | keyword | Error code returned in the LLM response. +llm.response.stop_reason | keyword | Reason the LLM response stopped. +llm.request.timestamp | date | Timestamp when the request was made. +llm.response.timestamp | date | Timestamp when the response was received. +llm.model.name | keyword | Name of the LLM model used to generate the response. +llm.model.version | keyword | Version of the LLM model used to generate the response. +llm.model.id | keyword | Unique identifier for the LLM model. +llm.model.role | keyword | Role of the LLM model in the interaction. +llm.model.type | keyword | Type of LLM model. +llm.model.description | keyword | Description of the LLM model. +llm.model.instructions | text | Custom instructions for the LLM model. +llm.model.parameters | keyword | Parameters used to confirm the LLM model. + + + +## Usage + + + +## Source data + + + + + + + +## Scope of impact + + + +## Concerns + + + + + + + +## People + +The following are the people that consulted on the contents of this RFC. + +* @Mikaayenson | author +* @susan-shu-c | author +* @ + + + + +## References + + + +### RFC Pull Requests + + + +* Stage 0: https://github.com/elastic/ecs/pull/NNN + +