Configuring Explorer
Explorer supports a chat-like experience with an AI agent. The best way to control how the agent behaves in that chat is through personas.
Here are the types of personas
- Restrictive personas only let the agent use specific objects to answer questions. They’re intended for users with narrow use cases, or anyone who wants a high degree of certainty that the agent is looking in the right places to answer their question.
- Guided personas give the agent significant context about a particular subject area. The agent is allowed to use additional objects if needed, but it’s instructed to let the user know when it does. They’re intended for users with the business knowledge to gut check the agent’s responses and redirect when needed.
- Open personas give the agent general information on how to conduct an analysis but don’t restrict it to particular objects. Ideally, they’re used by a technical user who can validate the agent’s code and process. An astute business user who’s comfortable gut checking the agent’s response and redirecting where needed can use one too, but a technical user should validate the output before it’s used for significant business decisions.
Here’s an overview of the Canon Personas
Compass comes with a set of Canon Personas to address common use cases, plus a couple of templates to help you create custom personas in your environment. Here’s the full list:
- Analyst Assistant for Non-Technical Users: intended for non-technical client users. The agent has instructions on how to interact with the user in plain, non-technical language and direct their analysis efforts. Our recommendation is that non-technical users use this persona with caution, since it has the highest risk of going astray without the user having enough technical knowledge to notice.
- Analyst Assistant for Technical Users: intended for technical users. The agent has instructions on how to handle either very specific requests (query this table for these columns, join to this other table, and promote the results) or a general analytics request, with the context that it’s working with a user who understands the data model and can validate its work.
- Analytics Portal: supports users left-clicking from within a report in Analytics Portal or on a specific value in Case Review.
- App Builder: assists technical users in doing the prep work to create an app.
- Compass Object Builder: assists technical users in creating custom Compass Objects.
- Guided Persona Template: should not be used as is. It’s a template that lets you create a custom persona for your client for a specific use case. To use it, copy and paste it into a new persona, then replace the text in brackets with what you need for your use case. It directs the agent to use specific objects / measures but allows it to go outside those objects if needed, alerting the user that it has done so.
- Restrictive Persona Template: just like the Guided Persona Template, but the agent is only allowed to use the objects / measures specified. It’s intended as the safest approach to Explorer but has narrow utility.
- Orientation: the default persona for any user who doesn’t have any personas set up. It can answer questions about how to use Compass and Ursa Studio, the data available (including existing diagnostics, presentations, apps, etc., with links to where they exist), and how Ursa defines various concepts. It can also guide the user through very broad questions (for example, “tell me about Compass”) with suggested topics for additional learning.
- Ursa Data Guide: answers questions about the Ursa data model, the data available, Ursa concept definitions, and more.
Here’s how to edit an existing persona
- Compass ships with the pre-built personas listed above, and the Ursa team updates them regularly. You can use them as they are, or create customized versions to fit your use case.
- To edit an existing persona, go to the Personas tab within Explorer.
- Click the name of the persona you want to edit, then click the Edit Persona button in the top right.
- The screen that opens has several sections:
- The Name of the persona
- A description of the persona and how it’s used
- The system prompt, which contains the instructions for the persona
- The Tools available to the persona
- Make your edits and click Save Persona at the bottom of the screen. Heads up: these changes take effect immediately for all users when they create a new Explorer session with that persona.
Here’s how to choose persona tools
- There are a number of tools available to a persona. It’s best to equip each persona with only the tools it needs to do its job.
- Here are some tips for choosing tools:
- Query database is enabled by default for all personas and can’t be disabled.
- Get object metadata and Get measure metadata let the agent gather information about Ursa tables and views. You’ll want these enabled for nearly every persona. There will be very few instances (if any at all) where you wouldn’t want a persona to have this ability.
- Promote finding lets the agent preserve the results of its queries so a user can download them or add them to a presentation. This tool should generally be enabled for every persona.
- Search Data Model and Full Search Data Model are similar, with some important differences. Search Data Model looks for data objects and measures by keyword, while Full Search Data Model does a deep search across all definitions, comments, and layers. A persona doesn’t need both. If you’re creating a focused persona and directing it to the specific objects you want it to use, Search Data Model will be enough. If you want the agent to be able to do a deep search of the data model, enable Full Search Data Model. Just keep in mind that it takes longer to run, so only turn it on when you expect to need it.
- Search Articles and Read Article should be enabled together, since the first lets the agent find the article that it then reads with the second. Enable these tools when you want the agent to have access to the library of Ursa and value-based care specific content, including articles about a specific customer organization.
- Search Assets and Describe Asset should also be enabled together, since the first lets the agent find the asset that it then describes. Enable these tools when you want the agent to be able to search the content of Compass, including diagnostics, presentations, and apps. This is helpful when a user asks if someone else has already done an analysis on a particular topic, or when you want to redirect a user who asks for a new analysis to something that has already been built or performed.
- Set Disposition is never needed for an Explorer persona. (It’s meant for use in diagnostics, where it lets the agent set a value from the result of a query that can then be used in later sessions within the same diagnostic.)
- Prompt User lets the agent communicate with the user. It’s enabled by default and can’t be disabled.
Here’s how to create a new persona
- If you need a new persona, the easiest approach is to start from an existing one. Here’s how:
- Open the persona that’s closest to the one you want to create. Note: there are two persona templates, Guided Persona Template and Restrictive Persona Template, that are meant for this purpose, but you can use other existing personas too.
- Click Edit Persona at the top right, then click Markdown in the top right of the next screen.
- Select all of the content in the markdown window and copy it.
- Click Cancel and return to the main Personas screen.
- Click the New Persona button in the top right, then click the Markdown button at the top right.
- Replace the content in the window by pasting in the content from the other persona.
- Edit the content however you’d like. Note: if you’re using one of the template personas, the content you should replace is indicated by brackets.
- Click Create Persona.
- Prefer to build a persona from scratch? Here’s how:
- Click the New Persona button in the top right of the Explorer Personas screen.
- Fill out each section of the form as you see fit (Name, Description, System Prompt).
- Your System Prompt should cover the type of task the agent will be doing, the audience if relevant, and the workflow it should follow (for example, execute queries and promote findings based on the initial request vs. formulate a plan and request approval from the user before executing).
- Check the section above on choosing persona tools for guidance on picking the right ones.
- Click Create Persona.
- Note: with either approach, your new persona will be visible to all users on their Personas screen. To make it a choice in an Explorer session, they’ll need to click the star beside it to add it as an Explorer persona.