@@ -29,6 +29,7 @@ import { Relationship } from '@neo4j-nvl/base';
2929import { getChatMetrics } from '../../services/GetRagasMetric' ;
3030import MetricsTab from './MetricsTab' ;
3131import { Stack } from '@mui/material' ;
32+ import { capitalizeWithUnderscore } from '../../utils/Utils' ;
3233
3334const ChatInfoModal : React . FC < chatInfoMessage > = ( {
3435 sources,
@@ -263,14 +264,28 @@ const ChatInfoModal: React.FC<chatInfoMessage> = ({
263264 < Stack spacing = { 2 } >
264265 < Stack spacing = { 2 } >
265266 { ! supportedLLmsForRagas . includes ( metricmodel ) && (
266- < Banner type = 'warning' > LLM Model Not Supported ,Please Choose Different Model</ Banner >
267+ < Banner
268+ type = 'warning'
269+ title = 'LLM Model Not Supported ,Please Choose Different Model'
270+ description = {
271+ < Typography variant = 'body-medium' >
272+ Currently ragas evaluation works on{ ' ' }
273+ { supportedLLmsForRagas . map ( ( s , idx ) => (
274+ < span className = 'font-bold' >
275+ { capitalizeWithUnderscore ( s ) + ( idx != supportedLLmsForRagas . length - 1 ? ',' : '' ) }
276+ </ span >
277+ ) ) }
278+ .
279+ </ Typography >
280+ }
281+ > </ Banner >
267282 ) }
268283 < Box >
269284 < Typography variant = 'body-large' >
270285 We use several key metrics to assess the quality of our chat responses. Click the button below to view
271- detailed scores for this interaction. These scores help us continuously improve the accuracy and
272- helpfulness of our chatbots.This usually takes about < span className = 'font-bold' > 20 </ span > seconds.
273- You'll see detailed scores shortly.
286+ detailed scores for this interaction using < span className = 'font-bold' > ragas framework </ span > . These
287+ scores help us continuously improve the accuracy and helpfulness of our chatbots.This usually takes
288+ about < span className = 'font-bold' > 20 seconds </ span > . You'll see detailed scores shortly.
274289 </ Typography >
275290 </ Box >
276291 < Stack >
0 commit comments