UserRole

The value that Answer Server uses in the conversation history session_data for lines that represent the user questions. This parameter applies only when Type is set to RAG.

By default, when you access session data in your RAG script, Answer Server returns the conversation history with the user input tagged as User and the automated responses marked as Assistant. To use a different value for the user name, set UserRole to the name to use.

Answer Server uses these values in the call to the LLM with the topic template, when you set TopicTemplatePath. It does not use them in the final question answering call to the LLM.

Type: String
Default: User
Required: No
Configuration Section: MySystem
Example: UserRole=Customer
See Also: AssistantRole