@@ -28,17 +28,19 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
2828 { chunk ?. page_number ? (
2929 < >
3030 < div className = 'flex flex-row inline-block items-center' >
31- < DocumentTextIconOutline className = 'w-4 h-4 inline-block mr-2' />
32- < Typography
31+ < DocumentTextIconOutline className = 'w-4 h-4 inline-block mr-2' />
32+ < Typography
3333 variant = 'subheading-medium'
3434 className = 'text-ellipsis whitespace-nowrap max-w-[calc(100%-200px)] overflow-hidden'
3535 >
3636 { chunk ?. fileName }
3737 </ Typography >
3838 </ div >
39- { mode !== chatModeLables . global_vector && mode !== chatModeLables . entity_vector && mode !== chatModeLables . graph && (
40- < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
41- ) }
39+ { mode !== chatModeLables . global_vector &&
40+ mode !== chatModeLables . entity_vector &&
41+ mode !== chatModeLables . graph && (
42+ < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
43+ ) }
4244 </ >
4345 ) : chunk ?. url && chunk ?. start_time ? (
4446 < >
@@ -53,39 +55,47 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
5355 </ Typography >
5456 </ TextLink >
5557 </ div >
56- { mode !== chatModeLables . global_vector && mode !== chatModeLables . entity_vector && mode !== chatModeLables . graph && (
57- < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
58- ) }
58+ { mode !== chatModeLables . global_vector &&
59+ mode !== chatModeLables . entity_vector &&
60+ mode !== chatModeLables . graph && (
61+ < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
62+ ) }
5963 </ >
6064 ) : chunk ?. url && new URL ( chunk . url ) . host === 'wikipedia.org' ? (
6165 < >
6266 < div className = 'flex flex-row inline-block justiy-between items-center' >
6367 < img src = { wikipedialogo } width = { 20 } height = { 20 } className = 'mr-2' />
6468 < Typography variant = 'subheading-medium' > { chunk ?. fileName } </ Typography >
6569 </ div >
66- { mode !== chatModeLables . global_vector && mode !== chatModeLables . entity_vector && mode !== chatModeLables . graph && (
67- < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
68- ) }
70+ { mode !== chatModeLables . global_vector &&
71+ mode !== chatModeLables . entity_vector &&
72+ mode !== chatModeLables . graph && (
73+ < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
74+ ) }
6975 </ >
7076 ) : chunk ?. url && new URL ( chunk . url ) . host === 'storage.googleapis.com' ? (
7177 < >
7278 < div className = 'flex flex-row inline-block justiy-between items-center' >
7379 < img src = { gcslogo } width = { 20 } height = { 20 } className = 'mr-2' />
7480 < Typography variant = 'subheading-medium' > { chunk ?. fileName } </ Typography >
7581 </ div >
76- { mode !== chatModeLables . global_vector && mode !== chatModeLables . entity_vector && mode !== chatModeLables . graph && (
77- < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
78- ) }
82+ { mode !== chatModeLables . global_vector &&
83+ mode !== chatModeLables . entity_vector &&
84+ mode !== chatModeLables . graph && (
85+ < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
86+ ) }
7987 </ >
8088 ) : chunk ?. url && chunk ?. url . startsWith ( 's3://' ) ? (
8189 < >
8290 < div className = 'flex flex-row inline-block justiy-between items-center' >
8391 < img src = { s3logo } width = { 20 } height = { 20 } className = 'mr-2' />
8492 < Typography variant = 'subheading-medium' > { chunk ?. fileName } </ Typography >
8593 </ div >
86- { mode !== chatModeLables . global_vector && mode !== chatModeLables . entity_vector && mode !== chatModeLables . graph && (
87- < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
88- ) }
94+ { mode !== chatModeLables . global_vector &&
95+ mode !== chatModeLables . entity_vector &&
96+ mode !== chatModeLables . graph && (
97+ < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
98+ ) }
8999 </ >
90100 ) : chunk ?. url &&
91101 ! chunk ?. url . startsWith ( 's3://' ) &&
@@ -97,9 +107,11 @@ const ChunkInfo: FC<ChunkProps> = ({ loading, chunks, mode }) => {
97107 < Typography variant = 'body-medium' > { chunk ?. url } </ Typography >
98108 </ TextLink >
99109 </ div >
100- { mode !== chatModeLables . global_vector && mode !== chatModeLables . entity_vector && mode !== chatModeLables . graph && (
101- < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
102- ) }
110+ { mode !== chatModeLables . global_vector &&
111+ mode !== chatModeLables . entity_vector &&
112+ mode !== chatModeLables . graph && (
113+ < Typography variant = 'subheading-small' > Similarity Score: { chunk ?. score } </ Typography >
114+ ) }
103115 </ >
104116 ) : (
105117 < >
0 commit comments