Fix Assistant vs Persona (#2185)

This commit is contained in:
Yuhong Sun
2024-08-20 14:43:15 -07:00
committed by GitHub
parent 8de04acb7f
commit 42f0fea9f8
2 changed files with 11 additions and 10 deletions

View File

@ -13,8 +13,8 @@ from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic. # revision identifiers, used by Alembic.
revision = "da4c21c69164" revision = "da4c21c69164"
down_revision = "c5b692fa265c" down_revision = "c5b692fa265c"
branch_labels = None branch_labels: None = None
depends_on = None depends_on: None = None
def upgrade() -> None: def upgrade() -> None:

View File

@ -295,14 +295,14 @@ export const SlackBotCreationForm = ({
[Optional] Data Sources and Prompts [Optional] Data Sources and Prompts
</SectionHeader> </SectionHeader>
<Text> <Text>
Use either a Persona <b>or</b> Document Sets to control how Use either an Assistant <b>or</b> Document Sets to control
DanswerBot answers. how DanswerBot answers.
</Text> </Text>
<Text> <Text>
<ul className="list-disc mt-2 ml-4"> <ul className="list-disc mt-2 ml-4">
<li> <li>
You should use a Persona if you also want to customize You should use an Assistant if you also want to
the prompt and retrieval settings. customize the prompt and retrieval settings.
</li> </li>
<li> <li>
You should use Document Sets if you just want to control You should use Document Sets if you just want to control
@ -313,8 +313,9 @@ export const SlackBotCreationForm = ({
<Text className="mt-2"> <Text className="mt-2">
<b>NOTE:</b> whichever tab you are when you submit the form <b>NOTE:</b> whichever tab you are when you submit the form
will be the one that is used. For example, if you are on the will be the one that is used. For example, if you are on the
&quot;Personas&quot; tab, then the Persona will be used, &quot;Assistants&quot; tab, then the Assistant and its
even if you have Document Sets selected. attached knowledge will be used, even if you have Document
Sets selected.
</Text> </Text>
</div> </div>
@ -324,7 +325,7 @@ export const SlackBotCreationForm = ({
> >
<TabList className="mt-3 mb-4"> <TabList className="mt-3 mb-4">
<Tab icon={BookmarkIcon}>Document Sets</Tab> <Tab icon={BookmarkIcon}>Document Sets</Tab>
<Tab icon={RobotIcon}>Personas</Tab> <Tab icon={RobotIcon}>Assistants</Tab>
</TabList> </TabList>
<TabPanels> <TabPanels>
<TabPanel> <TabPanel>
@ -385,7 +386,7 @@ export const SlackBotCreationForm = ({
<SelectorFormField <SelectorFormField
name="persona_id" name="persona_id"
subtext={` subtext={`
The persona to use when responding to queries. The Default persona acts The assistant to use when responding to queries. The "Knowledge" assistant acts
as a question-answering assistant and has access to all documents indexed by non-private connectors. as a question-answering assistant and has access to all documents indexed by non-private connectors.
`} `}
options={personas.map((persona) => { options={personas.map((persona) => {