@absolutejs/absolute 0.19.0-beta.604 → 0.19.0-beta.605
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/dist/ai/client/index.js +186 -6
- package/dist/ai/client/index.js.map +4 -4
- package/dist/ai/client/ui.js +190 -6
- package/dist/ai/client/ui.js.map +4 -4
- package/dist/ai/index.js +289 -36
- package/dist/ai/index.js.map +7 -7
- package/dist/ai/rag/quality.js +17 -6
- package/dist/ai/rag/quality.js.map +3 -3
- package/dist/ai/rag/ui.js +190 -6
- package/dist/ai/rag/ui.js.map +4 -4
- package/dist/ai-client/angular/ai/index.js +185 -5
- package/dist/ai-client/react/ai/index.js +200 -6
- package/dist/ai-client/vue/ai/index.js +289 -97
- package/dist/angular/ai/index.js +186 -6
- package/dist/angular/ai/index.js.map +4 -4
- package/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react/ai/index.js +201 -7
- package/dist/react/ai/index.js.map +6 -6
- package/dist/src/ai/client/ui.d.ts +1 -1
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/presentation.d.ts +7 -1
- package/dist/src/ai/rag/ui.d.ts +1 -1
- package/dist/src/react/ai/useRAG.d.ts +5 -0
- package/dist/src/react/ai/useRAGChunkPreview.d.ts +4 -0
- package/dist/src/react/ai/useRAGSources.d.ts +1 -0
- package/dist/src/svelte/ai/createRAG.d.ts +5 -0
- package/dist/src/svelte/ai/createRAGChunkPreview.d.ts +4 -0
- package/dist/src/svelte/ai/createRAGSources.d.ts +1 -0
- package/dist/src/vue/ai/useRAG.d.ts +65 -0
- package/dist/src/vue/ai/useRAGChunkPreview.d.ts +34 -0
- package/dist/src/vue/ai/useRAGSearch.d.ts +30 -0
- package/dist/src/vue/ai/useRAGSources.d.ts +1 -0
- package/dist/svelte/ai/index.js +247 -53
- package/dist/svelte/ai/index.js.map +6 -6
- package/dist/types/ai.d.ts +60 -0
- package/dist/vue/ai/index.js +253 -59
- package/dist/vue/ai/index.js.map +6 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { buildRAGAnswerWorkflowState, buildRAGSourceGroups, buildRAGSourceSummaries, buildRAGStreamProgress, getLatestAssistantMessage, resolveRAGStreamStage } from '../rag/workflowState';
|
|
2
2
|
export { buildRAGStreamProgress as getRAGStreamProgress } from '../rag/workflowState';
|
|
3
|
-
export { buildRAGCitationReferenceMap, buildRAGGroundedAnswer, buildRAGGroundingReferences } from '../rag/
|
|
3
|
+
export { buildRAGCitationReferenceMap, buildRAGChunkGraphNavigation, buildRAGChunkGraph, buildRAGChunkPreviewGraph, buildRAGChunkPreviewNavigation, buildRAGGroundedAnswer, buildRAGGroundingReferences } from '../rag/presentation';
|
|
4
4
|
export type { RAGStreamProgress, RAGStreamProgressState } from '../rag/workflowState';
|
|
5
5
|
export type { RAGAnswerWorkflowState } from '../../../types/ai';
|
|
@@ -10,7 +10,7 @@ export { createRAGGmailEmailSyncClient, createRAGGraphEmailSyncClient, createRAG
|
|
|
10
10
|
export { buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, buildRAGUpsertInputFromUploads, createBuiltinArchiveExpander, createEmailExtractor, createEPUBExtractor, createLegacyDocumentExtractor, createRAGPDFOCRExtractor, createRAGArchiveExpander, createRAGArchiveFileExtractor, createOfficeDocumentExtractor, createPDFFileExtractor, createRAGFileExtractor, createRAGImageOCRExtractor, createRAGMediaFileExtractor, createRAGMediaTranscriber, createRAGOCRProvider, createTextFileExtractor, loadRAGDocumentFromURL, loadRAGDocumentUpload, loadRAGDocumentsFromUploads, buildRAGUpsertInputFromURLs, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, loadRAGDocumentsFromURLs, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments } from './ingestion';
|
|
11
11
|
export { buildRAGContext } from './types';
|
|
12
12
|
export { buildRAGEvaluationLeaderboard, buildRAGEvaluationResponse, compareRAGRetrievalStrategies, compareRAGRerankers, buildRAGAnswerGroundingCaseDifficultyLeaderboard, buildRAGAnswerGroundingCaseDifficultyRunDiff, buildRAGAnswerGroundingEvaluationLeaderboard, buildRAGAnswerGroundingEvaluationResponse, buildRAGAnswerGroundingEvaluationRunDiff, buildRAGRetrievalComparisonDecisionSummary, buildRAGRetrievalReleaseVerdict, createRAGFileAnswerGroundingCaseDifficultyHistoryStore, createRAGFileAnswerGroundingEvaluationHistoryStore, createRAGFileEvaluationHistoryStore, createRAGFileRetrievalBaselineStore, createRAGFileRetrievalComparisonHistoryStore, createRAGFileRetrievalLaneHandoffDecisionStore, createRAGFileRetrievalLaneHandoffIncidentStore, createRAGFileRetrievalLaneHandoffIncidentHistoryStore, createRAGFileRetrievalIncidentRemediationDecisionStore, createRAGFileRetrievalIncidentRemediationExecutionHistoryStore, createRAGFileRetrievalLaneHandoffAutoCompletePolicyHistoryStore, createRAGFileRetrievalReleaseLanePolicyHistoryStore, createRAGFileRetrievalBaselineGatePolicyHistoryStore, createRAGFileRetrievalReleaseLaneEscalationPolicyHistoryStore, createRAGFileRetrievalReleaseDecisionStore, createRAGFileRetrievalReleaseIncidentStore, createRAGFileSearchTraceStore, createRAGFileSearchTracePruneHistoryStore, createRAGSQLiteSearchTraceStore, createRAGEvaluationSuite, evaluateRAGAnswerGrounding, evaluateRAGAnswerGroundingCase, evaluateRAGCollection, executeDryRunRAGEvaluation, loadRAGAnswerGroundingCaseDifficultyHistory, loadRAGAnswerGroundingEvaluationHistory, loadRAGEvaluationHistory, loadRAGRetrievalBaselines, loadRAGRetrievalComparisonHistory, loadRAGRetrievalLaneHandoffDecisions, loadRAGRetrievalLaneHandoffIncidents, loadRAGRetrievalLaneHandoffIncidentHistory, loadRAGRetrievalIncidentRemediationDecisions, loadRAGRetrievalIncidentRemediationExecutionHistory, loadRAGRetrievalLaneHandoffAutoCompletePolicyHistory, loadRAGRetrievalReleaseLanePolicyHistory, loadRAGRetrievalBaselineGatePolicyHistory, loadRAGRetrievalReleaseLaneEscalationPolicyHistory, loadRAGRetrievalReleaseDecisions, loadRAGRetrievalReleaseIncidents, loadRAGSearchTraceGroupHistory, loadRAGSearchTraceHistory, loadRAGSearchTracePruneHistory, previewRAGSearchTraceStorePrune, persistRAGRetrievalBaseline, persistRAGRetrievalComparisonRun, persistRAGRetrievalLaneHandoffDecision, persistRAGRetrievalLaneHandoffIncident, persistRAGRetrievalLaneHandoffIncidentHistory, persistRAGRetrievalIncidentRemediationDecision, persistRAGRetrievalIncidentRemediationExecutionHistory, persistRAGRetrievalLaneHandoffAutoCompletePolicyHistory, persistRAGRetrievalReleaseLanePolicyHistory, persistRAGRetrievalBaselineGatePolicyHistory, persistRAGRetrievalReleaseLaneEscalationPolicyHistory, persistRAGRetrievalReleaseDecision, persistRAGRetrievalReleaseIncident, persistRAGSearchTracePruneRun, pruneRAGSearchTraceStore, summarizeRAGSearchTraceStore, buildRAGRetrievalTraceHistoryTrend, persistRAGAnswerGroundingCaseDifficultyRun, persistRAGAnswerGroundingEvaluationRun, persistRAGEvaluationSuiteRun, persistRAGSearchTraceRecord, runRAGEvaluationSuite, summarizeRAGEvaluationCase, summarizeRAGRerankerComparison, compareRAGRetrievalTraceSummaries, summarizeRAGRetrievalTraces, buildRAGEvaluationRunDiff, buildRAGSearchTraceDiff, buildRAGSearchTraceRecord } from './quality';
|
|
13
|
-
export { buildRAGAdminActionPresentation, buildRAGAdminActionPresentations, buildRAGAdminJobPresentation, buildRAGAdminJobPresentations, buildRAGAnswerGroundingCaseSnapshotPresentations, buildRAGAnswerGroundingHistoryPresentation, buildRAGAnswerGroundingHistoryRows, buildRAGCitations, buildRAGCitationReferenceMap, buildRAGComparisonTraceDiffRows, buildRAGComparisonTraceSummaryRows, buildRAGCorpusHealthPresentation, buildRAGEvaluationCaseTracePresentations, buildRAGEvaluationHistoryPresentation, buildRAGEvaluationHistoryRows, buildRAGGroundedAnswer, buildRAGGroundingOverviewPresentation, buildRAGGroundingProviderCaseComparisonPresentations, buildRAGGroundingProviderOverviewPresentation, buildRAGGroundingProviderPresentations, buildRAGGroundingReferences, buildRAGQualityOverviewPresentation, buildRAGReadinessPresentation, buildRAGRerankerComparisonOverviewPresentation, buildRAGRerankerComparisonPresentations, buildRAGRerankerOverviewPresentation, buildRAGRetrievalComparisonOverviewPresentation, buildRAGRetrievalComparisonPresentations, buildRAGRetrievalOverviewPresentation, buildRAGRetrievalTracePresentation, buildRAGSourceGroups, buildRAGSourceSummaries, buildRAGSyncOverviewPresentation, buildRAGSyncSourcePresentation, buildRAGSyncSourcePresentations } from './ui';
|
|
13
|
+
export { buildRAGAdminActionPresentation, buildRAGAdminActionPresentations, buildRAGAdminJobPresentation, buildRAGAdminJobPresentations, buildRAGAnswerGroundingCaseSnapshotPresentations, buildRAGAnswerGroundingHistoryPresentation, buildRAGAnswerGroundingHistoryRows, buildRAGCitations, buildRAGCitationReferenceMap, buildRAGChunkGraphNavigation, buildRAGChunkPreviewGraph, buildRAGChunkPreviewNavigation, buildRAGChunkGraph, buildRAGComparisonTraceDiffRows, buildRAGComparisonTraceSummaryRows, buildRAGCorpusHealthPresentation, buildRAGEvaluationCaseTracePresentations, buildRAGEvaluationHistoryPresentation, buildRAGEvaluationHistoryRows, buildRAGGroundedAnswer, buildRAGGroundingOverviewPresentation, buildRAGGroundingProviderCaseComparisonPresentations, buildRAGGroundingProviderOverviewPresentation, buildRAGGroundingProviderPresentations, buildRAGGroundingReferences, buildRAGQualityOverviewPresentation, buildRAGReadinessPresentation, buildRAGRerankerComparisonOverviewPresentation, buildRAGRerankerComparisonPresentations, buildRAGRerankerOverviewPresentation, buildRAGRetrievalComparisonOverviewPresentation, buildRAGRetrievalComparisonPresentations, buildRAGRetrievalOverviewPresentation, buildRAGRetrievalTracePresentation, buildRAGSourceGroups, buildRAGSourceSummaries, buildRAGSyncOverviewPresentation, buildRAGSyncSourcePresentation, buildRAGSyncSourcePresentations } from './ui';
|
|
14
14
|
export { createRAGBunS3SyncClient, createRAGDirectorySyncSource, createRAGEmailSyncSource, createRAGFileSyncStateStore, createRAGStaticEmailSyncClient, createRAGStorageSyncSource, createRAGSyncManager, createRAGSyncScheduler, createRAGUrlSyncSource } from './sync';
|
|
15
15
|
export { createRAGCollection, ingestDocuments, ingestRAGDocuments, searchDocuments } from './collection';
|
|
16
16
|
export { createInMemoryRAGStore } from './adapters/inMemory';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGAdminActionPresentation, RAGAdminActionRecord, RAGAdminJobPresentation, RAGAdminJobRecord, AIMessage, RAGAnswerGroundingCaseSnapshotPresentation, RAGAnswerGroundingEvaluationHistory, RAGAnswerGroundingEvaluationResponse, RAGCorpusHealth, RAGCorpusHealthPresentation, RAGExtractorReadiness, RAGReadinessPresentation, RAGGroundingOverviewPresentation, RAGGroundingProviderCaseComparisonPresentation, RAGGroundingProviderOverviewPresentation, RAGGroundingProviderPresentation, RAGComparisonOverviewPresentation, RAGComparisonPresentation, RAGLabelValueRow, RAGRerankerComparisonEntry, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalTrace, RAGQualityOverviewPresentation, RAGEvaluationCaseTracePresentation, RAGEvaluationHistory, RAGAnswerGroundingHistoryPresentation, RAGEvaluationHistoryPresentation, RAGRerankerComparison, RAGAnswerWorkflowState, RAGRetrievalTracePresentation, RAGSource, RAGSourceLabels, RAGSourceGroup, RAGSourceSummary, RAGStreamStage, RAGSyncOverviewPresentation, RAGSyncSourcePresentation, RAGSyncSourceRecord } from '../../../types/ai';
|
|
1
|
+
import type { RAGAdminActionPresentation, RAGAdminActionRecord, RAGAdminJobPresentation, RAGAdminJobRecord, AIMessage, RAGAnswerGroundingCaseSnapshotPresentation, RAGAnswerGroundingEvaluationHistory, RAGAnswerGroundingEvaluationResponse, RAGCorpusHealth, RAGCorpusHealthPresentation, RAGExtractorReadiness, RAGReadinessPresentation, RAGGroundingOverviewPresentation, RAGGroundingProviderCaseComparisonPresentation, RAGGroundingProviderOverviewPresentation, RAGGroundingProviderPresentation, RAGComparisonOverviewPresentation, RAGComparisonPresentation, RAGChunkGraph, RAGChunkGraphNavigation, RAGChunkStructure, RAGDocumentChunkPreview, RAGLabelValueRow, RAGRerankerComparisonEntry, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalTrace, RAGQualityOverviewPresentation, RAGEvaluationCaseTracePresentation, RAGEvaluationHistory, RAGAnswerGroundingHistoryPresentation, RAGEvaluationHistoryPresentation, RAGRerankerComparison, RAGAnswerWorkflowState, RAGRetrievalTracePresentation, RAGSource, RAGSourceLabels, RAGSourceGroup, RAGSourceSummary, RAGStreamStage, RAGSyncOverviewPresentation, RAGSyncSourcePresentation, RAGSyncSourceRecord } from '../../../types/ai';
|
|
2
2
|
import { buildRAGCitationReferenceMap, buildRAGCitations, buildRAGGroundedAnswer, buildRAGGroundingReferences } from './grounding';
|
|
3
3
|
export { buildRAGCitationReferenceMap, buildRAGCitations, buildRAGGroundedAnswer, buildRAGGroundingReferences };
|
|
4
4
|
export declare const buildRAGRetrievalTracePresentation: (trace?: RAGRetrievalTrace) => RAGRetrievalTracePresentation;
|
|
@@ -16,6 +16,12 @@ export declare const buildRAGSourceLabels: ({ metadata, source, title }: {
|
|
|
16
16
|
source?: string;
|
|
17
17
|
title?: string;
|
|
18
18
|
}) => RAGSourceLabels | undefined;
|
|
19
|
+
export declare const buildRAGChunkStructure: (metadata?: Record<string, unknown>) => RAGChunkStructure | undefined;
|
|
20
|
+
type GraphChunkInput = Pick<RAGSource, 'chunkId' | 'metadata' | 'source' | 'title' | 'labels' | 'structure'> & Partial<Pick<RAGSource, 'score'>>;
|
|
21
|
+
export declare const buildRAGChunkGraph: (chunks: GraphChunkInput[]) => RAGChunkGraph;
|
|
22
|
+
export declare const buildRAGChunkPreviewGraph: (preview: Pick<RAGDocumentChunkPreview, "chunks" | "document">) => RAGChunkGraph;
|
|
23
|
+
export declare const buildRAGChunkPreviewNavigation: (preview: Pick<RAGDocumentChunkPreview, "chunks" | "document">, activeChunkId?: string) => RAGChunkGraphNavigation;
|
|
24
|
+
export declare const buildRAGChunkGraphNavigation: (graph: RAGChunkGraph, activeChunkId?: string) => RAGChunkGraphNavigation;
|
|
19
25
|
export declare const buildRAGRetrievedState: (messages: AIMessage[]) => {
|
|
20
26
|
citationReferenceMap: import("./types").RAGCitationReferenceMap;
|
|
21
27
|
citations: import("./types").RAGCitation[];
|
package/dist/src/ai/rag/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { buildRAGAdminActionPresentation, buildRAGAdminActionPresentations, buildRAGAdminJobPresentation, buildRAGAdminJobPresentations, buildRAGCitations, buildRAGCitationReferenceMap, buildRAGCorpusHealthPresentation, buildRAGGroundedAnswer, buildRAGGroundingReferences, buildRAGReadinessPresentation, buildRAGRetrievalTracePresentation, buildRAGSyncOverviewPresentation, buildRAGSyncSourcePresentation, buildRAGSyncSourcePresentations } from './presentation';
|
|
1
|
+
export { buildRAGAdminActionPresentation, buildRAGAdminActionPresentations, buildRAGAdminJobPresentation, buildRAGAdminJobPresentations, buildRAGCitations, buildRAGCitationReferenceMap, buildRAGChunkGraphNavigation, buildRAGChunkPreviewGraph, buildRAGChunkPreviewNavigation, buildRAGChunkGraph, buildRAGCorpusHealthPresentation, buildRAGGroundedAnswer, buildRAGGroundingReferences, buildRAGReadinessPresentation, buildRAGRetrievalTracePresentation, buildRAGSyncOverviewPresentation, buildRAGSyncSourcePresentation, buildRAGSyncSourcePresentations } from './presentation';
|
|
2
2
|
export { buildRAGAnswerWorkflowState, buildRAGRetrievedState, buildRAGSourceGroups, buildRAGSourceSummaries, buildRAGStreamProgress, getLatestAssistantMessage, getLatestRAGSources, resolveRAGStreamStage } from './workflowState';
|
|
3
3
|
export { buildRAGAnswerGroundingCaseSnapshotPresentations, buildRAGAnswerGroundingHistoryPresentation, buildRAGAnswerGroundingHistoryRows, buildRAGComparisonTraceDiffRows, buildRAGComparisonTraceSummaryRows, buildRAGQualityOverviewPresentation, buildRAGGroundingOverviewPresentation, buildRAGGroundingProviderCaseComparisonPresentations, buildRAGGroundingProviderOverviewPresentation, buildRAGGroundingProviderPresentations, buildRAGRetrievalComparisonOverviewPresentation, buildRAGRetrievalOverviewPresentation, buildRAGRetrievalComparisonPresentations, buildRAGRerankerComparisonOverviewPresentation, buildRAGRerankerOverviewPresentation, buildRAGRerankerComparisonPresentations, buildRAGEvaluationCaseTracePresentations, buildRAGEvaluationHistoryPresentation, buildRAGEvaluationHistoryRows } from './presentation';
|
|
4
4
|
export type { RAGStreamProgress, RAGStreamProgressState } from './workflowState';
|
|
@@ -6,13 +6,17 @@ export type UseRAGOptions = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
8
8
|
chunkPreview: {
|
|
9
|
+
activeChunkId: string | null;
|
|
10
|
+
chunkGraph: import("../..").RAGChunkGraph | null;
|
|
9
11
|
clear: () => void;
|
|
10
12
|
error: string | null;
|
|
11
13
|
inspect: (id: string) => Promise<{
|
|
12
14
|
ok: true;
|
|
13
15
|
} & import("../..").RAGDocumentChunkPreview>;
|
|
14
16
|
isLoading: boolean;
|
|
17
|
+
navigation: import("../..").RAGChunkGraphNavigation | null;
|
|
15
18
|
preview: import("../..").RAGDocumentChunkPreview | null;
|
|
19
|
+
selectChunk: (id: string | null) => void;
|
|
16
20
|
};
|
|
17
21
|
citations: {
|
|
18
22
|
citationReferenceMap: import("../..").RAGCitationReferenceMap;
|
|
@@ -186,6 +190,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
186
190
|
};
|
|
187
191
|
sources: {
|
|
188
192
|
citationReferenceMap: import("../..").RAGCitationReferenceMap;
|
|
193
|
+
chunkGraph: import("../..").RAGChunkGraph;
|
|
189
194
|
hasSources: boolean;
|
|
190
195
|
latestAssistantMessage: import("../..").AIMessage | undefined;
|
|
191
196
|
sourceGroups: import("../..").RAGSourceGroup[];
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { RAGDocumentChunkPreview } from '../../../types/ai';
|
|
2
2
|
export declare const useRAGChunkPreview: (path: string) => {
|
|
3
|
+
activeChunkId: string | null;
|
|
4
|
+
chunkGraph: import("../..").RAGChunkGraph | null;
|
|
3
5
|
clear: () => void;
|
|
4
6
|
error: string | null;
|
|
5
7
|
inspect: (id: string) => Promise<{
|
|
6
8
|
ok: true;
|
|
7
9
|
} & RAGDocumentChunkPreview>;
|
|
8
10
|
isLoading: boolean;
|
|
11
|
+
navigation: import("../..").RAGChunkGraphNavigation | null;
|
|
9
12
|
preview: RAGDocumentChunkPreview | null;
|
|
13
|
+
selectChunk: (id: string | null) => void;
|
|
10
14
|
};
|
|
11
15
|
export type UseRAGChunkPreviewResult = ReturnType<typeof useRAGChunkPreview>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AIMessage } from '../../../types/ai';
|
|
2
2
|
export declare const useRAGSources: (messages: AIMessage[]) => {
|
|
3
3
|
citationReferenceMap: import("../..").RAGCitationReferenceMap;
|
|
4
|
+
chunkGraph: import("../..").RAGChunkGraph;
|
|
4
5
|
hasSources: boolean;
|
|
5
6
|
latestAssistantMessage: AIMessage | undefined;
|
|
6
7
|
sourceGroups: import("../..").RAGSourceGroup[];
|
|
@@ -6,13 +6,17 @@ export type CreateRAGOptions = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
8
8
|
chunkPreview: {
|
|
9
|
+
activeChunkId: import("svelte/store").Writable<string | null>;
|
|
9
10
|
clear: () => void;
|
|
11
|
+
chunkGraph: import("svelte/store").Readable<import("../..").RAGChunkGraph | null>;
|
|
10
12
|
error: import("svelte/store").Writable<string | null>;
|
|
11
13
|
inspect: (id: string) => Promise<{
|
|
12
14
|
ok: true;
|
|
13
15
|
} & import("../..").RAGDocumentChunkPreview>;
|
|
14
16
|
isLoading: import("svelte/store").Writable<boolean>;
|
|
17
|
+
navigation: import("svelte/store").Readable<import("../..").RAGChunkGraphNavigation | null>;
|
|
15
18
|
preview: import("svelte/store").Writable<import("../..").RAGDocumentChunkPreview | null>;
|
|
19
|
+
selectChunk: (id: string | null) => void;
|
|
16
20
|
};
|
|
17
21
|
citations: {
|
|
18
22
|
citationReferenceMap: import("svelte/store").Readable<import("../..").RAGCitationReferenceMap>;
|
|
@@ -187,6 +191,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
187
191
|
};
|
|
188
192
|
sources: {
|
|
189
193
|
citationReferenceMap: import("svelte/store").Readable<import("../..").RAGCitationReferenceMap>;
|
|
194
|
+
chunkGraph: import("svelte/store").Readable<import("../..").RAGChunkGraph>;
|
|
190
195
|
hasSources: import("svelte/store").Readable<boolean>;
|
|
191
196
|
latestAssistantMessage: import("svelte/store").Readable<import("../..").AIMessage | undefined>;
|
|
192
197
|
sourceGroups: import("svelte/store").Readable<import("../..").RAGSourceGroup[]>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import type { RAGDocumentChunkPreview } from '../../../types/ai';
|
|
2
2
|
export declare const createRAGChunkPreview: (path: string) => {
|
|
3
|
+
activeChunkId: import("svelte/store").Writable<string | null>;
|
|
3
4
|
clear: () => void;
|
|
5
|
+
chunkGraph: import("svelte/store").Readable<import("../..").RAGChunkGraph | null>;
|
|
4
6
|
error: import("svelte/store").Writable<string | null>;
|
|
5
7
|
inspect: (id: string) => Promise<{
|
|
6
8
|
ok: true;
|
|
7
9
|
} & RAGDocumentChunkPreview>;
|
|
8
10
|
isLoading: import("svelte/store").Writable<boolean>;
|
|
11
|
+
navigation: import("svelte/store").Readable<import("../..").RAGChunkGraphNavigation | null>;
|
|
9
12
|
preview: import("svelte/store").Writable<RAGDocumentChunkPreview | null>;
|
|
13
|
+
selectChunk: (id: string | null) => void;
|
|
10
14
|
};
|
|
11
15
|
export type CreateRAGChunkPreviewResult = ReturnType<typeof createRAGChunkPreview>;
|
|
@@ -2,6 +2,7 @@ import { type Readable } from 'svelte/store';
|
|
|
2
2
|
import type { AIMessage } from '../../../types/ai';
|
|
3
3
|
export declare const createRAGSources: (messages: Readable<AIMessage[]>) => {
|
|
4
4
|
citationReferenceMap: Readable<import("../..").RAGCitationReferenceMap>;
|
|
5
|
+
chunkGraph: Readable<import("../..").RAGChunkGraph>;
|
|
5
6
|
hasSources: Readable<boolean>;
|
|
6
7
|
latestAssistantMessage: Readable<AIMessage | undefined>;
|
|
7
8
|
sourceGroups: Readable<import("../..").RAGSourceGroup[]>;
|
|
@@ -6,12 +6,15 @@ export type UseRAGOptions = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
8
8
|
chunkPreview: {
|
|
9
|
+
activeChunkId: import("vue").Ref<string | null, string | null>;
|
|
9
10
|
clear: () => void;
|
|
11
|
+
chunkGraph: import("vue").ComputedRef<import("../..").RAGChunkGraph | null>;
|
|
10
12
|
error: import("vue").Ref<string | null, string | null>;
|
|
11
13
|
inspect: (id: string) => Promise<{
|
|
12
14
|
ok: true;
|
|
13
15
|
} & import("../..").RAGDocumentChunkPreview>;
|
|
14
16
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
navigation: import("vue").ComputedRef<import("../..").RAGChunkGraphNavigation | null>;
|
|
15
18
|
preview: import("vue").Ref<{
|
|
16
19
|
document: {
|
|
17
20
|
source: string;
|
|
@@ -39,6 +42,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
39
42
|
source?: string | undefined;
|
|
40
43
|
metadata?: Record<string, unknown> | undefined;
|
|
41
44
|
embedding?: number[] | undefined;
|
|
45
|
+
structure?: {
|
|
46
|
+
section?: {
|
|
47
|
+
title?: string | undefined;
|
|
48
|
+
path?: string[] | undefined;
|
|
49
|
+
depth?: number | undefined;
|
|
50
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
sequence?: {
|
|
53
|
+
sectionChunkId?: string | undefined;
|
|
54
|
+
sectionChunkIndex?: number | undefined;
|
|
55
|
+
sectionChunkCount?: number | undefined;
|
|
56
|
+
previousChunkId?: string | undefined;
|
|
57
|
+
nextChunkId?: string | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
} | undefined;
|
|
42
60
|
labels?: {
|
|
43
61
|
contextLabel?: string | undefined;
|
|
44
62
|
locatorLabel?: string | undefined;
|
|
@@ -72,6 +90,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
72
90
|
source?: string | undefined;
|
|
73
91
|
metadata?: Record<string, unknown> | undefined;
|
|
74
92
|
embedding?: number[] | undefined;
|
|
93
|
+
structure?: {
|
|
94
|
+
section?: {
|
|
95
|
+
title?: string | undefined;
|
|
96
|
+
path?: string[] | undefined;
|
|
97
|
+
depth?: number | undefined;
|
|
98
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
99
|
+
} | undefined;
|
|
100
|
+
sequence?: {
|
|
101
|
+
sectionChunkId?: string | undefined;
|
|
102
|
+
sectionChunkIndex?: number | undefined;
|
|
103
|
+
sectionChunkCount?: number | undefined;
|
|
104
|
+
previousChunkId?: string | undefined;
|
|
105
|
+
nextChunkId?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
} | undefined;
|
|
75
108
|
labels?: {
|
|
76
109
|
contextLabel?: string | undefined;
|
|
77
110
|
locatorLabel?: string | undefined;
|
|
@@ -79,6 +112,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
79
112
|
} | undefined;
|
|
80
113
|
}[];
|
|
81
114
|
} | null>;
|
|
115
|
+
selectChunk: (id: string | null) => void;
|
|
82
116
|
};
|
|
83
117
|
citations: {
|
|
84
118
|
citationReferenceMap: import("vue").ComputedRef<import("../..").RAGCitationReferenceMap>;
|
|
@@ -1318,6 +1352,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
1318
1352
|
locatorLabel?: string | undefined;
|
|
1319
1353
|
provenanceLabel?: string | undefined;
|
|
1320
1354
|
} | undefined;
|
|
1355
|
+
structure?: {
|
|
1356
|
+
section?: {
|
|
1357
|
+
title?: string | undefined;
|
|
1358
|
+
path?: string[] | undefined;
|
|
1359
|
+
depth?: number | undefined;
|
|
1360
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
1361
|
+
} | undefined;
|
|
1362
|
+
sequence?: {
|
|
1363
|
+
sectionChunkId?: string | undefined;
|
|
1364
|
+
sectionChunkIndex?: number | undefined;
|
|
1365
|
+
sectionChunkCount?: number | undefined;
|
|
1366
|
+
previousChunkId?: string | undefined;
|
|
1367
|
+
nextChunkId?: string | undefined;
|
|
1368
|
+
} | undefined;
|
|
1369
|
+
} | undefined;
|
|
1321
1370
|
}[], import("../..").RAGSource[] | {
|
|
1322
1371
|
chunkId: string;
|
|
1323
1372
|
score: number;
|
|
@@ -1330,6 +1379,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
1330
1379
|
locatorLabel?: string | undefined;
|
|
1331
1380
|
provenanceLabel?: string | undefined;
|
|
1332
1381
|
} | undefined;
|
|
1382
|
+
structure?: {
|
|
1383
|
+
section?: {
|
|
1384
|
+
title?: string | undefined;
|
|
1385
|
+
path?: string[] | undefined;
|
|
1386
|
+
depth?: number | undefined;
|
|
1387
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
1388
|
+
} | undefined;
|
|
1389
|
+
sequence?: {
|
|
1390
|
+
sectionChunkId?: string | undefined;
|
|
1391
|
+
sectionChunkIndex?: number | undefined;
|
|
1392
|
+
sectionChunkCount?: number | undefined;
|
|
1393
|
+
previousChunkId?: string | undefined;
|
|
1394
|
+
nextChunkId?: string | undefined;
|
|
1395
|
+
} | undefined;
|
|
1396
|
+
} | undefined;
|
|
1333
1397
|
}[]>;
|
|
1334
1398
|
search: (input: {
|
|
1335
1399
|
filter?: Record<string, unknown> | undefined;
|
|
@@ -1361,6 +1425,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
1361
1425
|
};
|
|
1362
1426
|
sources: {
|
|
1363
1427
|
citationReferenceMap: import("vue").ComputedRef<import("../..").RAGCitationReferenceMap>;
|
|
1428
|
+
chunkGraph: import("vue").ComputedRef<import("../..").RAGChunkGraph>;
|
|
1364
1429
|
hasSources: import("vue").ComputedRef<boolean>;
|
|
1365
1430
|
latestAssistantMessage: import("vue").ComputedRef<import("../..").AIMessage | undefined>;
|
|
1366
1431
|
sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { RAGDocumentChunkPreview } from '../../../types/ai';
|
|
2
2
|
export declare const useRAGChunkPreview: (path: string) => {
|
|
3
|
+
activeChunkId: import("vue").Ref<string | null, string | null>;
|
|
3
4
|
clear: () => void;
|
|
5
|
+
chunkGraph: import("vue").ComputedRef<import("../..").RAGChunkGraph | null>;
|
|
4
6
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
7
|
inspect: (id: string) => Promise<{
|
|
6
8
|
ok: true;
|
|
7
9
|
} & RAGDocumentChunkPreview>;
|
|
8
10
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
11
|
+
navigation: import("vue").ComputedRef<import("../..").RAGChunkGraphNavigation | null>;
|
|
9
12
|
preview: import("vue").Ref<{
|
|
10
13
|
document: {
|
|
11
14
|
source: string;
|
|
@@ -33,6 +36,21 @@ export declare const useRAGChunkPreview: (path: string) => {
|
|
|
33
36
|
source?: string | undefined;
|
|
34
37
|
metadata?: Record<string, unknown> | undefined;
|
|
35
38
|
embedding?: number[] | undefined;
|
|
39
|
+
structure?: {
|
|
40
|
+
section?: {
|
|
41
|
+
title?: string | undefined;
|
|
42
|
+
path?: string[] | undefined;
|
|
43
|
+
depth?: number | undefined;
|
|
44
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
sequence?: {
|
|
47
|
+
sectionChunkId?: string | undefined;
|
|
48
|
+
sectionChunkIndex?: number | undefined;
|
|
49
|
+
sectionChunkCount?: number | undefined;
|
|
50
|
+
previousChunkId?: string | undefined;
|
|
51
|
+
nextChunkId?: string | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
} | undefined;
|
|
36
54
|
labels?: {
|
|
37
55
|
contextLabel?: string | undefined;
|
|
38
56
|
locatorLabel?: string | undefined;
|
|
@@ -66,6 +84,21 @@ export declare const useRAGChunkPreview: (path: string) => {
|
|
|
66
84
|
source?: string | undefined;
|
|
67
85
|
metadata?: Record<string, unknown> | undefined;
|
|
68
86
|
embedding?: number[] | undefined;
|
|
87
|
+
structure?: {
|
|
88
|
+
section?: {
|
|
89
|
+
title?: string | undefined;
|
|
90
|
+
path?: string[] | undefined;
|
|
91
|
+
depth?: number | undefined;
|
|
92
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
sequence?: {
|
|
95
|
+
sectionChunkId?: string | undefined;
|
|
96
|
+
sectionChunkIndex?: number | undefined;
|
|
97
|
+
sectionChunkCount?: number | undefined;
|
|
98
|
+
previousChunkId?: string | undefined;
|
|
99
|
+
nextChunkId?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
} | undefined;
|
|
69
102
|
labels?: {
|
|
70
103
|
contextLabel?: string | undefined;
|
|
71
104
|
locatorLabel?: string | undefined;
|
|
@@ -73,5 +106,6 @@ export declare const useRAGChunkPreview: (path: string) => {
|
|
|
73
106
|
} | undefined;
|
|
74
107
|
}[];
|
|
75
108
|
} | null>;
|
|
109
|
+
selectChunk: (id: string | null) => void;
|
|
76
110
|
};
|
|
77
111
|
export type UseRAGChunkPreviewResult = ReturnType<typeof useRAGChunkPreview>;
|
|
@@ -75,6 +75,21 @@ export declare const useRAGSearch: (path: string) => {
|
|
|
75
75
|
locatorLabel?: string | undefined;
|
|
76
76
|
provenanceLabel?: string | undefined;
|
|
77
77
|
} | undefined;
|
|
78
|
+
structure?: {
|
|
79
|
+
section?: {
|
|
80
|
+
title?: string | undefined;
|
|
81
|
+
path?: string[] | undefined;
|
|
82
|
+
depth?: number | undefined;
|
|
83
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
sequence?: {
|
|
86
|
+
sectionChunkId?: string | undefined;
|
|
87
|
+
sectionChunkIndex?: number | undefined;
|
|
88
|
+
sectionChunkCount?: number | undefined;
|
|
89
|
+
previousChunkId?: string | undefined;
|
|
90
|
+
nextChunkId?: string | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
} | undefined;
|
|
78
93
|
}[], RAGSource[] | {
|
|
79
94
|
chunkId: string;
|
|
80
95
|
score: number;
|
|
@@ -87,6 +102,21 @@ export declare const useRAGSearch: (path: string) => {
|
|
|
87
102
|
locatorLabel?: string | undefined;
|
|
88
103
|
provenanceLabel?: string | undefined;
|
|
89
104
|
} | undefined;
|
|
105
|
+
structure?: {
|
|
106
|
+
section?: {
|
|
107
|
+
title?: string | undefined;
|
|
108
|
+
path?: string[] | undefined;
|
|
109
|
+
depth?: number | undefined;
|
|
110
|
+
kind?: "markdown_heading" | "html_heading" | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
sequence?: {
|
|
113
|
+
sectionChunkId?: string | undefined;
|
|
114
|
+
sectionChunkIndex?: number | undefined;
|
|
115
|
+
sectionChunkCount?: number | undefined;
|
|
116
|
+
previousChunkId?: string | undefined;
|
|
117
|
+
nextChunkId?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
} | undefined;
|
|
90
120
|
}[]>;
|
|
91
121
|
search: (input: SearchRequest) => Promise<RAGSource[]>;
|
|
92
122
|
searchWithTrace: (input: SearchRequest) => Promise<RAGDetailedSearchResponse>;
|
|
@@ -2,6 +2,7 @@ import { type Ref } from 'vue';
|
|
|
2
2
|
import type { AIMessage } from '../../../types/ai';
|
|
3
3
|
export declare const useRAGSources: (messages: Ref<AIMessage[]>) => {
|
|
4
4
|
citationReferenceMap: import("vue").ComputedRef<import("../..").RAGCitationReferenceMap>;
|
|
5
|
+
chunkGraph: import("vue").ComputedRef<import("../..").RAGChunkGraph>;
|
|
5
6
|
hasSources: import("vue").ComputedRef<boolean>;
|
|
6
7
|
latestAssistantMessage: import("vue").ComputedRef<AIMessage | undefined>;
|
|
7
8
|
sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
|