@absolutejs/absolute 0.19.0-beta.604 → 0.19.0-beta.606

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 (45) hide show
  1. package/dist/ai/client/index.js +238 -6
  2. package/dist/ai/client/index.js.map +4 -4
  3. package/dist/ai/client/ui.js +242 -6
  4. package/dist/ai/client/ui.js.map +4 -4
  5. package/dist/ai/index.js +381 -38
  6. package/dist/ai/index.js.map +7 -7
  7. package/dist/ai/rag/quality.js +17 -6
  8. package/dist/ai/rag/quality.js.map +3 -3
  9. package/dist/ai/rag/ui.js +242 -6
  10. package/dist/ai/rag/ui.js.map +4 -4
  11. package/dist/ai-client/angular/ai/index.js +237 -5
  12. package/dist/ai-client/react/ai/index.js +281 -12
  13. package/dist/ai-client/vue/ai/index.js +364 -97
  14. package/dist/angular/ai/index.js +238 -6
  15. package/dist/angular/ai/index.js.map +4 -4
  16. package/dist/angular/index.js +2 -2
  17. package/dist/angular/index.js.map +1 -1
  18. package/dist/angular/server.js +2 -2
  19. package/dist/angular/server.js.map +1 -1
  20. package/dist/build.js +2 -2
  21. package/dist/build.js.map +1 -1
  22. package/dist/index.js +2 -2
  23. package/dist/index.js.map +1 -1
  24. package/dist/react/ai/index.js +282 -13
  25. package/dist/react/ai/index.js.map +6 -6
  26. package/dist/src/ai/client/ui.d.ts +1 -1
  27. package/dist/src/ai/rag/index.d.ts +1 -1
  28. package/dist/src/ai/rag/presentation.d.ts +7 -1
  29. package/dist/src/ai/rag/ui.d.ts +1 -1
  30. package/dist/src/react/ai/useRAG.d.ts +9 -0
  31. package/dist/src/react/ai/useRAGChunkPreview.d.ts +7 -0
  32. package/dist/src/react/ai/useRAGSources.d.ts +2 -0
  33. package/dist/src/svelte/ai/createRAG.d.ts +9 -0
  34. package/dist/src/svelte/ai/createRAGChunkPreview.d.ts +7 -0
  35. package/dist/src/svelte/ai/createRAGSources.d.ts +2 -0
  36. package/dist/src/vue/ai/useRAG.d.ts +69 -0
  37. package/dist/src/vue/ai/useRAGChunkPreview.d.ts +37 -0
  38. package/dist/src/vue/ai/useRAGSearch.d.ts +30 -0
  39. package/dist/src/vue/ai/useRAGSources.d.ts +2 -0
  40. package/dist/svelte/ai/index.js +334 -53
  41. package/dist/svelte/ai/index.js.map +6 -6
  42. package/dist/types/ai.d.ts +66 -0
  43. package/dist/vue/ai/index.js +328 -59
  44. package/dist/vue/ai/index.js.map +6 -6
  45. 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, 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[];
@@ -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,20 @@ 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
+ selectChildSection: (sectionId: string) => void;
20
+ selectChunk: (id: string | null) => void;
21
+ selectParentSection: () => void;
22
+ selectSiblingSection: (sectionId: string) => void;
16
23
  };
17
24
  citations: {
18
25
  citationReferenceMap: import("../..").RAGCitationReferenceMap;
@@ -186,8 +193,10 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
186
193
  };
187
194
  sources: {
188
195
  citationReferenceMap: import("../..").RAGCitationReferenceMap;
196
+ chunkGraph: import("../..").RAGChunkGraph;
189
197
  hasSources: boolean;
190
198
  latestAssistantMessage: import("../..").AIMessage | undefined;
199
+ navigationForChunk: (chunkId?: string | null) => import("../..").RAGChunkGraphNavigation;
191
200
  sourceGroups: import("../..").RAGSourceGroup[];
192
201
  sources: import("../..").RAGSource[];
193
202
  sourceSummaries: import("../..").RAGSourceSummary[];
@@ -1,11 +1,18 @@
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
+ selectChildSection: (sectionId: string) => void;
14
+ selectChunk: (id: string | null) => void;
15
+ selectParentSection: () => void;
16
+ selectSiblingSection: (sectionId: string) => void;
10
17
  };
11
18
  export type UseRAGChunkPreviewResult = ReturnType<typeof useRAGChunkPreview>;
@@ -1,8 +1,10 @@
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;
7
+ navigationForChunk: (chunkId?: string | null) => import("../..").RAGChunkGraphNavigation;
6
8
  sourceGroups: import("../..").RAGSourceGroup[];
7
9
  sources: import("../..").RAGSource[];
8
10
  sourceSummaries: import("../..").RAGSourceSummary[];
@@ -6,13 +6,20 @@ 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
+ selectChildSection: (sectionId: string) => void;
20
+ selectChunk: (id: string | null) => void;
21
+ selectParentSection: () => void;
22
+ selectSiblingSection: (sectionId: string) => void;
16
23
  };
17
24
  citations: {
18
25
  citationReferenceMap: import("svelte/store").Readable<import("../..").RAGCitationReferenceMap>;
@@ -187,8 +194,10 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
187
194
  };
188
195
  sources: {
189
196
  citationReferenceMap: import("svelte/store").Readable<import("../..").RAGCitationReferenceMap>;
197
+ chunkGraph: import("svelte/store").Readable<import("../..").RAGChunkGraph>;
190
198
  hasSources: import("svelte/store").Readable<boolean>;
191
199
  latestAssistantMessage: import("svelte/store").Readable<import("../..").AIMessage | undefined>;
200
+ navigationForChunk: (chunkId?: string | null) => import("../..").RAGChunkGraphNavigation;
192
201
  sourceGroups: import("svelte/store").Readable<import("../..").RAGSourceGroup[]>;
193
202
  sources: import("svelte/store").Readable<import("../..").RAGSource[]>;
194
203
  sourceSummaries: import("svelte/store").Readable<import("../..").RAGSourceSummary[]>;
@@ -1,11 +1,18 @@
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
+ selectChildSection: (sectionId: string) => void;
14
+ selectChunk: (id: string | null) => void;
15
+ selectParentSection: () => void;
16
+ selectSiblingSection: (sectionId: string) => void;
10
17
  };
11
18
  export type CreateRAGChunkPreviewResult = ReturnType<typeof createRAGChunkPreview>;
@@ -2,8 +2,10 @@ 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>;
8
+ navigationForChunk: (chunkId?: string | null) => import("../..").RAGChunkGraphNavigation;
7
9
  sourceGroups: Readable<import("../..").RAGSourceGroup[]>;
8
10
  sources: Readable<import("../..").RAGSource[]>;
9
11
  sourceSummaries: Readable<import("../..").RAGSourceSummary[]>;
@@ -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,10 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
79
112
  } | undefined;
80
113
  }[];
81
114
  } | null>;
115
+ selectChildSection: (sectionId: string) => void;
116
+ selectChunk: (id: string | null) => void;
117
+ selectParentSection: () => void;
118
+ selectSiblingSection: (sectionId: string) => void;
82
119
  };
83
120
  citations: {
84
121
  citationReferenceMap: import("vue").ComputedRef<import("../..").RAGCitationReferenceMap>;
@@ -1318,6 +1355,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1318
1355
  locatorLabel?: string | undefined;
1319
1356
  provenanceLabel?: string | undefined;
1320
1357
  } | undefined;
1358
+ structure?: {
1359
+ section?: {
1360
+ title?: string | undefined;
1361
+ path?: string[] | undefined;
1362
+ depth?: number | undefined;
1363
+ kind?: "markdown_heading" | "html_heading" | undefined;
1364
+ } | undefined;
1365
+ sequence?: {
1366
+ sectionChunkId?: string | undefined;
1367
+ sectionChunkIndex?: number | undefined;
1368
+ sectionChunkCount?: number | undefined;
1369
+ previousChunkId?: string | undefined;
1370
+ nextChunkId?: string | undefined;
1371
+ } | undefined;
1372
+ } | undefined;
1321
1373
  }[], import("../..").RAGSource[] | {
1322
1374
  chunkId: string;
1323
1375
  score: number;
@@ -1330,6 +1382,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1330
1382
  locatorLabel?: string | undefined;
1331
1383
  provenanceLabel?: string | undefined;
1332
1384
  } | undefined;
1385
+ structure?: {
1386
+ section?: {
1387
+ title?: string | undefined;
1388
+ path?: string[] | undefined;
1389
+ depth?: number | undefined;
1390
+ kind?: "markdown_heading" | "html_heading" | undefined;
1391
+ } | undefined;
1392
+ sequence?: {
1393
+ sectionChunkId?: string | undefined;
1394
+ sectionChunkIndex?: number | undefined;
1395
+ sectionChunkCount?: number | undefined;
1396
+ previousChunkId?: string | undefined;
1397
+ nextChunkId?: string | undefined;
1398
+ } | undefined;
1399
+ } | undefined;
1333
1400
  }[]>;
1334
1401
  search: (input: {
1335
1402
  filter?: Record<string, unknown> | undefined;
@@ -1361,8 +1428,10 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1361
1428
  };
1362
1429
  sources: {
1363
1430
  citationReferenceMap: import("vue").ComputedRef<import("../..").RAGCitationReferenceMap>;
1431
+ chunkGraph: import("vue").ComputedRef<import("../..").RAGChunkGraph>;
1364
1432
  hasSources: import("vue").ComputedRef<boolean>;
1365
1433
  latestAssistantMessage: import("vue").ComputedRef<import("../..").AIMessage | undefined>;
1434
+ navigationForChunk: (chunkId?: string | null) => import("../..").RAGChunkGraphNavigation;
1366
1435
  sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
1367
1436
  sources: import("vue").ComputedRef<import("../..").RAGSource[]>;
1368
1437
  sourceSummaries: import("vue").ComputedRef<import("../..").RAGSourceSummary[]>;
@@ -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,9 @@ export declare const useRAGChunkPreview: (path: string) => {
73
106
  } | undefined;
74
107
  }[];
75
108
  } | null>;
109
+ selectChildSection: (sectionId: string) => void;
110
+ selectChunk: (id: string | null) => void;
111
+ selectParentSection: () => void;
112
+ selectSiblingSection: (sectionId: string) => void;
76
113
  };
77
114
  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,8 +2,10 @@ 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>;
8
+ navigationForChunk: (chunkId?: string | null) => import("../..").RAGChunkGraphNavigation;
7
9
  sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
8
10
  sources: import("vue").ComputedRef<import("../..").RAGSource[]>;
9
11
  sourceSummaries: import("vue").ComputedRef<import("../..").RAGSourceSummary[]>;