Skip to content

Commit

Permalink
Display prompt information with data extraction
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund committed Sep 24, 2023
1 parent d13a762 commit 347c3f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/models/data-extraction.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export interface DataExtractionQuestionModel {
export interface DataExtractionResultModel extends DataExtractionQuestionModel {
expectedResponse: string;
watsonxResponse: string;
prompt: string;
}
2 changes: 2 additions & 0 deletions src/services/data-extraction/data-extraction.graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const DATA_EXTRACTION_QUESTIONS = gql`
inScope
expectedResponse
watsonxResponse
prompt
}
}
`
Expand All @@ -59,6 +60,7 @@ const DATA_EXTRACTION_QUESTION = gql`
inScope
expectedResponse
watsonxResponse
prompt
}
}
`
Expand Down
1 change: 1 addition & 0 deletions src/services/schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type DataExtractionResult {
expectedResponse: String!
id: ID!
inScope: Boolean!
prompt: String!
question: String!
watsonxResponse: String!
}
Expand Down
1 change: 1 addition & 0 deletions src/views/DataExtraction/DataExtraction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ const DataExtractionResults = () => {

const headerData: DataTableHeader[] = [
{header: 'Question', key: 'question'},
{header: 'Prompt', key: 'prompt'},
{header: 'WatsonX Response', key: 'watsonxResponse'}
]

Expand Down

0 comments on commit 347c3f3

Please sign in to comment.