Skip to content

Commit

Permalink
feat: kb type models add kbtags (NLU-864)
Browse files Browse the repository at this point in the history
  • Loading branch information
abuyak-vf committed Sep 27, 2023
1 parent 3ce6585 commit 149b7ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/base-types/src/models/project/knowledgeBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ export enum KnowledgeBaseDocumentStatus {
INITIALIZED = 'INITIALIZED',
}

export interface KBTag {
tagID: string;
label: string;
}

export interface KnowledgeBaseDocument {
data: KnowledgeBasePDF | KnowledgeBaseText | KnowledgeBaseURL | KnowledgeBaseDocx;
status: {
Expand All @@ -51,6 +56,7 @@ export interface KnowledgeBaseDocument {
documentID: string;
s3ObjectRef: string;
version?: number;
tags?: Record<string, KBTag>;
}

export enum ChunkStrategyType {
Expand All @@ -75,4 +81,5 @@ export interface KnowledgeBaseSettings {
export interface KnowledgeBase {
settings?: KnowledgeBaseSettings;
documents: Record<string, KnowledgeBaseDocument>;
tags?: Record<string, KBTag>;
}

0 comments on commit 149b7ef

Please sign in to comment.