ZCA_AI_LLM_RESPONSE_STORE

ZCA_AI_LLM_RESPONSE_STORE : This table stores the responses generated by a LLM (Large Language Model). The table is designed to store unique responses for each combination of object id, object type, prompt code, and language

Details

  • Schema: FUSION

  • Object owner: ZCA

  • Object type: TABLE

  • Tablespace: Default

Primary Key

Name Columns

ZCA_AI_LLM_RESPONSE_STORE_PK

ID

Columns

Name Datatype Length Precision Not-null Comments
ID NUMBER 18 Yes Auto generated primary key of the table
KEY VARCHAR2 255 Yes A unique key generated by hashing the combination of Object, ObjectType, PromptCode, and Lang
OBJECT_ID VARCHAR2 20 Yes The ID of the object for which the response was generated. Eg, OptyId
OBJECT_TYPE VARCHAR2 100 Yes The type of object for which the response was generated. Eg, Opportunity
PROMPT_CODE VARCHAR2 255 Yes The code of the prompt used to generate the response.
LANG VARCHAR2 10 Yes The language code in which the response was generated
GENERATED_CONTENT CLOB The response corresponding to key generated by LLM
VARIABLE_INPUT_HASH VARCHAR2 255 A hash of the variable input values used to generate the response.
PROMPT_HASH VARCHAR2 255 A hash of the prompt used to generate the response
ACCESS_GROUP_HASH VARCHAR2 255 A hash of the access group associated with the response.
EXPIRY_DATE TIMESTAMP Timestamp when the response is considered stale, calculated by adding the TTL (Time To Live) to the CreationDate.
CREATED_BY VARCHAR2 64 Yes Who column: indicates the user who created the row.
CREATION_DATE TIMESTAMP Yes Who column: indicates the date and time of the creation of the row.
LAST_UPDATED_BY VARCHAR2 64 Yes Who column: indicates the user who last updated the row.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
OBJECT_VERSION_NUMBER NUMBER 9 Yes Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.

Indexes

Index Uniqueness Tablespace Columns
ZCA_AI_LLM_RESPONSE_STORE_U1 Unique Default ID
ZCA_AI_LLM_RESPONSE_STORE_U2 Unique Default OBJECT_ID, OBJECT_TYPE, PROMPT_CODE, LANG
ZCA_AI_LLM_RESPONSE_STORE_U3 Unique Default KEY