@absolutejs/absolute 0.19.0-beta.603 → 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.
Files changed (39) hide show
  1. package/dist/ai/client/index.js +244 -10
  2. package/dist/ai/client/index.js.map +4 -4
  3. package/dist/ai/client/ui.js +248 -10
  4. package/dist/ai/client/ui.js.map +4 -4
  5. package/dist/ai/index.js +1003 -110
  6. package/dist/ai/index.js.map +8 -8
  7. package/dist/ai/rag/quality.js +27 -6
  8. package/dist/ai/rag/quality.js.map +3 -3
  9. package/dist/ai/rag/ui.js +248 -10
  10. package/dist/ai/rag/ui.js.map +4 -4
  11. package/dist/ai-client/angular/ai/index.js +243 -9
  12. package/dist/ai-client/react/ai/index.js +258 -10
  13. package/dist/ai-client/vue/ai/index.js +347 -101
  14. package/dist/angular/ai/index.js +244 -10
  15. package/dist/angular/ai/index.js.map +4 -4
  16. package/dist/react/ai/index.js +259 -11
  17. package/dist/react/ai/index.js.map +6 -6
  18. package/dist/src/ai/client/ui.d.ts +1 -1
  19. package/dist/src/ai/rag/index.d.ts +1 -1
  20. package/dist/src/ai/rag/presentation.d.ts +12 -1
  21. package/dist/src/ai/rag/ui.d.ts +1 -1
  22. package/dist/src/react/ai/useRAG.d.ts +5 -0
  23. package/dist/src/react/ai/useRAGChunkPreview.d.ts +4 -0
  24. package/dist/src/react/ai/useRAGSources.d.ts +1 -0
  25. package/dist/src/svelte/ai/createRAG.d.ts +5 -0
  26. package/dist/src/svelte/ai/createRAGChunkPreview.d.ts +4 -0
  27. package/dist/src/svelte/ai/createRAGSources.d.ts +1 -0
  28. package/dist/src/vue/ai/useRAG.d.ts +125 -0
  29. package/dist/src/vue/ai/useRAGChunkPreview.d.ts +54 -0
  30. package/dist/src/vue/ai/useRAGDocuments.d.ts +20 -0
  31. package/dist/src/vue/ai/useRAGIndexAdmin.d.ts +10 -0
  32. package/dist/src/vue/ai/useRAGSearch.d.ts +40 -0
  33. package/dist/src/vue/ai/useRAGSources.d.ts +1 -0
  34. package/dist/svelte/ai/index.js +305 -57
  35. package/dist/svelte/ai/index.js.map +6 -6
  36. package/dist/types/ai.d.ts +102 -1
  37. package/dist/vue/ai/index.js +311 -63
  38. package/dist/vue/ai/index.js.map +6 -6
  39. 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/grounding';
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, 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;
@@ -11,6 +11,17 @@ export declare const buildRAGSyncSourcePresentations: (sources?: RAGSyncSourceRe
11
11
  export declare const buildRAGReadinessPresentation: (readiness?: RAGExtractorReadiness) => RAGReadinessPresentation;
12
12
  export declare const buildRAGCorpusHealthPresentation: (health?: RAGCorpusHealth) => RAGCorpusHealthPresentation;
13
13
  export declare const buildRAGSyncOverviewPresentation: (sources?: RAGSyncSourceRecord[]) => RAGSyncOverviewPresentation;
14
+ export declare const buildRAGSourceLabels: ({ metadata, source, title }: {
15
+ metadata?: Record<string, unknown>;
16
+ source?: string;
17
+ title?: string;
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;
14
25
  export declare const buildRAGRetrievedState: (messages: AIMessage[]) => {
15
26
  citationReferenceMap: import("./types").RAGCitationReferenceMap;
16
27
  citations: import("./types").RAGCitation[];
@@ -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;
@@ -24,6 +27,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
24
27
  chunkCount?: number | undefined;
25
28
  createdAt?: number | undefined;
26
29
  updatedAt?: number | undefined;
30
+ labels?: {
31
+ contextLabel?: string | undefined;
32
+ locatorLabel?: string | undefined;
33
+ provenanceLabel?: string | undefined;
34
+ } | undefined;
27
35
  metadata?: Record<string, unknown> | undefined;
28
36
  };
29
37
  normalizedText: string;
@@ -34,6 +42,26 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
34
42
  source?: string | undefined;
35
43
  metadata?: Record<string, unknown> | undefined;
36
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;
60
+ labels?: {
61
+ contextLabel?: string | undefined;
62
+ locatorLabel?: string | undefined;
63
+ provenanceLabel?: string | undefined;
64
+ } | undefined;
37
65
  }[];
38
66
  } | null, import("../..").RAGDocumentChunkPreview | {
39
67
  document: {
@@ -47,6 +75,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
47
75
  chunkCount?: number | undefined;
48
76
  createdAt?: number | undefined;
49
77
  updatedAt?: number | undefined;
78
+ labels?: {
79
+ contextLabel?: string | undefined;
80
+ locatorLabel?: string | undefined;
81
+ provenanceLabel?: string | undefined;
82
+ } | undefined;
50
83
  metadata?: Record<string, unknown> | undefined;
51
84
  };
52
85
  normalizedText: string;
@@ -57,8 +90,29 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
57
90
  source?: string | undefined;
58
91
  metadata?: Record<string, unknown> | undefined;
59
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;
108
+ labels?: {
109
+ contextLabel?: string | undefined;
110
+ locatorLabel?: string | undefined;
111
+ provenanceLabel?: string | undefined;
112
+ } | undefined;
60
113
  }[];
61
114
  } | null>;
115
+ selectChunk: (id: string | null) => void;
62
116
  };
63
117
  citations: {
64
118
  citationReferenceMap: import("vue").ComputedRef<import("../..").RAGCitationReferenceMap>;
@@ -81,6 +135,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
81
135
  createdAt?: number | undefined;
82
136
  updatedAt?: number | undefined;
83
137
  metadata?: Record<string, unknown> | undefined;
138
+ labels?: {
139
+ contextLabel?: string | undefined;
140
+ locatorLabel?: string | undefined;
141
+ provenanceLabel?: string | undefined;
142
+ } | undefined;
84
143
  }[], import("../..").RAGIndexedDocument[] | {
85
144
  id: string;
86
145
  title: string;
@@ -94,6 +153,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
94
153
  createdAt?: number | undefined;
95
154
  updatedAt?: number | undefined;
96
155
  metadata?: Record<string, unknown> | undefined;
156
+ labels?: {
157
+ contextLabel?: string | undefined;
158
+ locatorLabel?: string | undefined;
159
+ provenanceLabel?: string | undefined;
160
+ } | undefined;
97
161
  }[]>;
98
162
  error: import("vue").Ref<string | null, string | null>;
99
163
  isLoading: import("vue").Ref<boolean, boolean>;
@@ -112,6 +176,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
112
176
  createdAt?: number | undefined;
113
177
  updatedAt?: number | undefined;
114
178
  metadata?: Record<string, unknown> | undefined;
179
+ labels?: {
180
+ contextLabel?: string | undefined;
181
+ locatorLabel?: string | undefined;
182
+ provenanceLabel?: string | undefined;
183
+ } | undefined;
115
184
  }[];
116
185
  lastSeedMsByMode?: Record<string, number> | undefined;
117
186
  } | null, import("../..").RAGDocumentsResponse | {
@@ -129,6 +198,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
129
198
  createdAt?: number | undefined;
130
199
  updatedAt?: number | undefined;
131
200
  metadata?: Record<string, unknown> | undefined;
201
+ labels?: {
202
+ contextLabel?: string | undefined;
203
+ locatorLabel?: string | undefined;
204
+ provenanceLabel?: string | undefined;
205
+ } | undefined;
132
206
  }[];
133
207
  lastSeedMsByMode?: Record<string, number> | undefined;
134
208
  } | null>;
@@ -895,6 +969,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
895
969
  createdAt?: number | undefined;
896
970
  updatedAt?: number | undefined;
897
971
  metadata?: Record<string, unknown> | undefined;
972
+ labels?: {
973
+ contextLabel?: string | undefined;
974
+ locatorLabel?: string | undefined;
975
+ provenanceLabel?: string | undefined;
976
+ } | undefined;
898
977
  } | undefined;
899
978
  } | null, import("../..").RAGMutationResponse | {
900
979
  ok: boolean;
@@ -922,6 +1001,11 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
922
1001
  createdAt?: number | undefined;
923
1002
  updatedAt?: number | undefined;
924
1003
  metadata?: Record<string, unknown> | undefined;
1004
+ labels?: {
1005
+ contextLabel?: string | undefined;
1006
+ locatorLabel?: string | undefined;
1007
+ provenanceLabel?: string | undefined;
1008
+ } | undefined;
925
1009
  } | undefined;
926
1010
  } | null>;
927
1011
  loadBackends: () => Promise<import("../..").RAGBackendsResponse>;
@@ -1263,6 +1347,26 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1263
1347
  title?: string | undefined;
1264
1348
  source?: string | undefined;
1265
1349
  metadata?: Record<string, unknown> | undefined;
1350
+ labels?: {
1351
+ contextLabel?: string | undefined;
1352
+ locatorLabel?: string | undefined;
1353
+ provenanceLabel?: string | undefined;
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;
1266
1370
  }[], import("../..").RAGSource[] | {
1267
1371
  chunkId: string;
1268
1372
  score: number;
@@ -1270,6 +1374,26 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1270
1374
  title?: string | undefined;
1271
1375
  source?: string | undefined;
1272
1376
  metadata?: Record<string, unknown> | undefined;
1377
+ labels?: {
1378
+ contextLabel?: string | undefined;
1379
+ locatorLabel?: string | undefined;
1380
+ provenanceLabel?: string | undefined;
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;
1273
1397
  }[]>;
1274
1398
  search: (input: {
1275
1399
  filter?: Record<string, unknown> | undefined;
@@ -1301,6 +1425,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1301
1425
  };
1302
1426
  sources: {
1303
1427
  citationReferenceMap: import("vue").ComputedRef<import("../..").RAGCitationReferenceMap>;
1428
+ chunkGraph: import("vue").ComputedRef<import("../..").RAGChunkGraph>;
1304
1429
  hasSources: import("vue").ComputedRef<boolean>;
1305
1430
  latestAssistantMessage: import("vue").ComputedRef<import("../..").AIMessage | undefined>;
1306
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;
@@ -18,6 +21,11 @@ export declare const useRAGChunkPreview: (path: string) => {
18
21
  chunkCount?: number | undefined;
19
22
  createdAt?: number | undefined;
20
23
  updatedAt?: number | undefined;
24
+ labels?: {
25
+ contextLabel?: string | undefined;
26
+ locatorLabel?: string | undefined;
27
+ provenanceLabel?: string | undefined;
28
+ } | undefined;
21
29
  metadata?: Record<string, unknown> | undefined;
22
30
  };
23
31
  normalizedText: string;
@@ -28,6 +36,26 @@ export declare const useRAGChunkPreview: (path: string) => {
28
36
  source?: string | undefined;
29
37
  metadata?: Record<string, unknown> | undefined;
30
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;
54
+ labels?: {
55
+ contextLabel?: string | undefined;
56
+ locatorLabel?: string | undefined;
57
+ provenanceLabel?: string | undefined;
58
+ } | undefined;
31
59
  }[];
32
60
  } | null, RAGDocumentChunkPreview | {
33
61
  document: {
@@ -41,6 +69,11 @@ export declare const useRAGChunkPreview: (path: string) => {
41
69
  chunkCount?: number | undefined;
42
70
  createdAt?: number | undefined;
43
71
  updatedAt?: number | undefined;
72
+ labels?: {
73
+ contextLabel?: string | undefined;
74
+ locatorLabel?: string | undefined;
75
+ provenanceLabel?: string | undefined;
76
+ } | undefined;
44
77
  metadata?: Record<string, unknown> | undefined;
45
78
  };
46
79
  normalizedText: string;
@@ -51,7 +84,28 @@ export declare const useRAGChunkPreview: (path: string) => {
51
84
  source?: string | undefined;
52
85
  metadata?: Record<string, unknown> | undefined;
53
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;
102
+ labels?: {
103
+ contextLabel?: string | undefined;
104
+ locatorLabel?: string | undefined;
105
+ provenanceLabel?: string | undefined;
106
+ } | undefined;
54
107
  }[];
55
108
  } | null>;
109
+ selectChunk: (id: string | null) => void;
56
110
  };
57
111
  export type UseRAGChunkPreviewResult = ReturnType<typeof useRAGChunkPreview>;
@@ -13,6 +13,11 @@ export declare const useRAGDocuments: (path: string) => {
13
13
  createdAt?: number | undefined;
14
14
  updatedAt?: number | undefined;
15
15
  metadata?: Record<string, unknown> | undefined;
16
+ labels?: {
17
+ contextLabel?: string | undefined;
18
+ locatorLabel?: string | undefined;
19
+ provenanceLabel?: string | undefined;
20
+ } | undefined;
16
21
  }[], RAGIndexedDocument[] | {
17
22
  id: string;
18
23
  title: string;
@@ -26,6 +31,11 @@ export declare const useRAGDocuments: (path: string) => {
26
31
  createdAt?: number | undefined;
27
32
  updatedAt?: number | undefined;
28
33
  metadata?: Record<string, unknown> | undefined;
34
+ labels?: {
35
+ contextLabel?: string | undefined;
36
+ locatorLabel?: string | undefined;
37
+ provenanceLabel?: string | undefined;
38
+ } | undefined;
29
39
  }[]>;
30
40
  error: import("vue").Ref<string | null, string | null>;
31
41
  isLoading: import("vue").Ref<boolean, boolean>;
@@ -44,6 +54,11 @@ export declare const useRAGDocuments: (path: string) => {
44
54
  createdAt?: number | undefined;
45
55
  updatedAt?: number | undefined;
46
56
  metadata?: Record<string, unknown> | undefined;
57
+ labels?: {
58
+ contextLabel?: string | undefined;
59
+ locatorLabel?: string | undefined;
60
+ provenanceLabel?: string | undefined;
61
+ } | undefined;
47
62
  }[];
48
63
  lastSeedMsByMode?: Record<string, number> | undefined;
49
64
  } | null, RAGDocumentsResponse | {
@@ -61,6 +76,11 @@ export declare const useRAGDocuments: (path: string) => {
61
76
  createdAt?: number | undefined;
62
77
  updatedAt?: number | undefined;
63
78
  metadata?: Record<string, unknown> | undefined;
79
+ labels?: {
80
+ contextLabel?: string | undefined;
81
+ locatorLabel?: string | undefined;
82
+ provenanceLabel?: string | undefined;
83
+ } | undefined;
64
84
  }[];
65
85
  lastSeedMsByMode?: Record<string, number> | undefined;
66
86
  } | null>;
@@ -171,6 +171,11 @@ export declare const useRAGIndexAdmin: (path: string) => {
171
171
  createdAt?: number | undefined;
172
172
  updatedAt?: number | undefined;
173
173
  metadata?: Record<string, unknown> | undefined;
174
+ labels?: {
175
+ contextLabel?: string | undefined;
176
+ locatorLabel?: string | undefined;
177
+ provenanceLabel?: string | undefined;
178
+ } | undefined;
174
179
  } | undefined;
175
180
  } | null, RAGMutationResponse | {
176
181
  ok: boolean;
@@ -198,6 +203,11 @@ export declare const useRAGIndexAdmin: (path: string) => {
198
203
  createdAt?: number | undefined;
199
204
  updatedAt?: number | undefined;
200
205
  metadata?: Record<string, unknown> | undefined;
206
+ labels?: {
207
+ contextLabel?: string | undefined;
208
+ locatorLabel?: string | undefined;
209
+ provenanceLabel?: string | undefined;
210
+ } | undefined;
201
211
  } | undefined;
202
212
  } | null>;
203
213
  loadBackends: () => Promise<RAGBackendsResponse>;
@@ -70,6 +70,26 @@ export declare const useRAGSearch: (path: string) => {
70
70
  title?: string | undefined;
71
71
  source?: string | undefined;
72
72
  metadata?: Record<string, unknown> | undefined;
73
+ labels?: {
74
+ contextLabel?: string | undefined;
75
+ locatorLabel?: string | undefined;
76
+ provenanceLabel?: string | undefined;
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;
73
93
  }[], RAGSource[] | {
74
94
  chunkId: string;
75
95
  score: number;
@@ -77,6 +97,26 @@ export declare const useRAGSearch: (path: string) => {
77
97
  title?: string | undefined;
78
98
  source?: string | undefined;
79
99
  metadata?: Record<string, unknown> | undefined;
100
+ labels?: {
101
+ contextLabel?: string | undefined;
102
+ locatorLabel?: string | undefined;
103
+ provenanceLabel?: string | undefined;
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;
80
120
  }[]>;
81
121
  search: (input: SearchRequest) => Promise<RAGSource[]>;
82
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[]>;