File tree Expand file tree Collapse file tree
routes/page/knowledge-base Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,6 +132,15 @@ const vectorPayloadDataType = {
132132} ;
133133export const VectorPayloadDataType = Object . freeze ( vectorPayloadDataType ) ;
134134
135+ const vectorIndexSchemaType = {
136+ Text : "text" ,
137+ Integer : "integer" ,
138+ Float : "float" ,
139+ Boolean : "bool" ,
140+ Datetime : "datetime"
141+ } ;
142+ export const VectorIndexSchemaType = Object . freeze ( vectorIndexSchemaType ) ;
143+
135144const vectorDataSource = {
136145 Api : 'api' ,
137146 User : 'user' ,
Original file line number Diff line number Diff line change 126126}
127127
128128.knowledge-table-header {
129- justify-content : space-between ;
130-
131129 .knowledge-header-text {
132130 margin-bottom : 0px !important ;
133131 padding : 0.47rem 0.75rem ;
134132 }
135133
136134 .collection-dropdown-container {
137- width : 20% ;
138135 display : flex ;
139136 gap : 5px ;
140137 justify-content : flex-end ;
456453 justify-content : space-between ;
457454 }
458455 }
456+ }
457+
458+ .vector-index-container {
459+ .index-layout-container {
460+ display : grid ;
461+ gap : 1rem ;
462+ grid-template-columns : 1fr auto 1fr ;
463+ grid-template-areas : " existing arrows delete" ;
464+ align-items : start ;
465+ }
466+
467+ .index-block :first-child {
468+ grid-area : existing;
469+ }
470+
471+ .index-block :last-child {
472+ grid-area : delete;
473+ }
474+
475+ .arrow-container {
476+ grid-area : arrows;
477+ display : flex ;
478+ justify-content : center ;
479+ align-items : center ;
480+ height : 500px ; /* Match the fixed height of the cards */
481+ }
482+
483+ .arrow-buttons {
484+ display : flex ;
485+ flex-direction : column ;
486+ gap : 0.75rem ;
487+ }
488+
489+ .index-block-card {
490+ height : 500px ;
491+ display : flex ;
492+ flex-direction : column ;
493+
494+ .card-body-scrollable {
495+ flex : 1 ;
496+ overflow-y : auto ;
497+ max-height : none ;
498+ padding : 5px ;
499+ }
500+
501+ .field-row {
502+ display : flex ;
503+ gap : 1rem ;
504+ }
505+
506+ .field-item {
507+ flex : 1 ;
508+ }
509+ }
510+
511+ .arrow-horizontal {
512+ display : inline ;
513+ }
514+
515+ .arrow-vertical {
516+ display : none ;
517+ }
518+
519+ @media (max-width : 991.98px ) {
520+ .index-layout-container {
521+ grid-template-columns : 1fr ;
522+ grid-template-areas :
523+ " existing"
524+ " arrows"
525+ " delete" ;
526+ }
527+
528+ .arrow-container {
529+ height : auto ;
530+ min-height : 60px ;
531+ padding : 1rem 0 ;
532+ }
533+
534+ .arrow-buttons {
535+ flex-direction : row ;
536+ justify-content : center ;
537+ }
538+
539+ .arrow-horizontal {
540+ display : none ;
541+ }
542+
543+ .arrow-vertical {
544+ display : inline ;
545+ }
546+
547+ .field-row {
548+ flex-direction : column ;
549+ gap : 0 ;
550+ }
551+ }
459552}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export async function deleteAgent(agentId) {
7777 */
7878export async function refreshAgents ( ) {
7979 const url = endpoints . agentRefreshUrl ;
80- const response = await axios . post ( url ) ;
80+ const response = await axios . post ( url , { } ) ;
8181 return response . data ;
8282}
8383
You can’t perform that action at this time.
0 commit comments