gotrip-fx-transaction-form 1.0.300-dev → 1.0.301-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IRagDocument } from '../../types/rag';
|
|
2
|
+
type Props = Pick<IRagDocument, 'status' | 'progressStage' | 'progressCurrent' | 'progressTotal'>;
|
|
3
|
+
export declare const RagIngestProgress: ({ status, progressStage, progressCurrent, progressTotal, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export {};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { ERagDocumentStatus, ERagEmbeddingStatus } from '../../types/rag';
|
|
1
|
+
import { ERagDocumentStatus, ERagEmbeddingStatus, ERagSourceType } from '../../types/rag';
|
|
2
2
|
export declare const RagDocumentStatusBadge: ({ status }: {
|
|
3
3
|
status: ERagDocumentStatus;
|
|
4
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const RagEmbeddingStatusBadge: ({ status }: {
|
|
6
6
|
status: ERagEmbeddingStatus;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* File format of a source document.
|
|
10
|
+
*/
|
|
11
|
+
export declare const RagSourceTypeBadge: ({ sourceType }: {
|
|
12
|
+
sourceType: ERagSourceType;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/types/types/rag.d.ts
CHANGED
|
@@ -7,9 +7,16 @@ export declare enum ERagDocumentStatus {
|
|
|
7
7
|
}
|
|
8
8
|
export declare enum ERagSourceType {
|
|
9
9
|
DOCX = "docx",
|
|
10
|
+
DOC = "doc",
|
|
10
11
|
PDF = "pdf",
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
XLSX = "xlsx",
|
|
13
|
+
XLS = "xls"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ERagIngestStage {
|
|
16
|
+
DOWNLOADING = "downloading",
|
|
17
|
+
PARSING = "parsing",
|
|
18
|
+
CHUNKING = "chunking",
|
|
19
|
+
EMBEDDING = "embedding"
|
|
13
20
|
}
|
|
14
21
|
export declare enum ERagEmbeddingStatus {
|
|
15
22
|
PENDING = "pending",
|
|
@@ -34,6 +41,9 @@ export interface IRagDocument {
|
|
|
34
41
|
status: ERagDocumentStatus;
|
|
35
42
|
errorMessage: string | null;
|
|
36
43
|
chunkCount: number;
|
|
44
|
+
progressStage: ERagIngestStage | null;
|
|
45
|
+
progressCurrent: number;
|
|
46
|
+
progressTotal: number;
|
|
37
47
|
createdAt: string;
|
|
38
48
|
updatedAt: string;
|
|
39
49
|
}
|