Skip to content

Commit

Permalink
enh(tables query): pass full assistant instructions to app (#4069)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Fontanier <[email protected]>
  • Loading branch information
fontanierh and Henry Fontanier authored Feb 29, 2024
1 parent 5faeb2f commit b831ee1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions front/lib/api/assistant/actions/tables_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ function getTablesQueryAppSpecification() {
{
name: "question",
description:
"The plain language question to answer based on the user request and conversation context. The question should include all the context required to be understood without reference to the conversation. If the user has multiple unanswered questions, make sure to include all of them.",
type: "string" as const,
},
{
name: "guidelines",
description:
"Some additional guidelines that could help generate the right query. This could come from the assistant's instructions or from the conversation history. If the user asked to correct a previous attempt at the same query in a specific way, this information must be included. Return an empty string when not applicable.",
"The plain language question to answer based on the user request and conversation context. The question should include all the context required to be understood without reference to the conversation. If the user has multiple unanswered questions, make sure to include all of them. If the user asked to correct a previous attempt at the same query in a specific way, this information must be included.",
type: "string" as const,
},
],
Expand Down Expand Up @@ -216,7 +210,12 @@ export async function* runTablesQuery({
auth,
"assistant-v2-query-tables",
config,
[{ question: input.question, guidelines: input.guidelines }]
[
{
question: input.question,
instructions: configuration.generation?.prompt,
},
]
);

if (res.isErr()) {
Expand Down
2 changes: 1 addition & 1 deletion types/src/front/lib/actions/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const DustProdActionRegistry = createActionRegistry({
workspaceId: PRODUCTION_DUST_APPS_WORKSPACE_ID,
appId: "b4f205e453",
appHash:
"fee382573c535c4d21d79c3d315b444eda6d6282f44127a2f6a3fb8b544d9f6d",
"cfdf2414c6f61c1a54c8c0527ab6caf2108b32e21da3af7220eaab4ea55f7af8",
},
config: {
MODEL: {
Expand Down

0 comments on commit b831ee1

Please sign in to comment.