Skip to content

Commit

Permalink
Refs #133599 - Add configurable demo question field.
Browse files Browse the repository at this point in the history
  • Loading branch information
GhitaB committed Nov 23, 2021
1 parent 94eb1e4 commit 4f5d453
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SearchBlock/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const SearchBlockSchema = ({ formData = {} }) => ({
{
id: 'general',
title: 'General settings',
fields: ['headline', 'subheadline', 'enableNLP'],
fields: ['headline', 'subheadline', 'demoquestion', 'enableNLP'],
},
...(formData?.enableNLP
? [
Expand Down Expand Up @@ -53,6 +53,10 @@ export const SearchBlockSchema = ({ formData = {} }) => ({
title: 'Text below headline',
configPath: 'subheadline',
},
demoquestion: {
title: 'Demo question',
configPath: 'demoquestion',
},

use_qa_dp: {
title: 'Use DensePassageRetrieval for QA?',
Expand Down

0 comments on commit 4f5d453

Please sign in to comment.