@absolutejs/rag 0.0.26 → 0.0.28
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/adapter-kit/index.js +122 -6
- package/dist/adapter-kit/index.js.map +14 -14
- package/dist/angular/index.js.map +6 -6
- package/dist/client/index.js.map +6 -6
- package/dist/client/ui.js.map +4 -4
- package/dist/index.js +124 -6
- package/dist/index.js.map +29 -29
- package/dist/presentation/ui.js.map +6 -6
- package/dist/quality/quality.js.map +4 -4
- package/dist/react/index.js.map +14 -14
- package/dist/src/adapter-kit/index.d.ts +1 -1
- package/dist/src/adapters/inMemory.d.ts +1 -1
- package/dist/src/adapters/sync.d.ts +1 -1
- package/dist/src/angular/ai-rag-stream.service.d.ts +9 -9
- package/dist/src/angular/ai-rag-workflow.service.d.ts +10 -10
- package/dist/src/angular/rag-client.service.d.ts +68 -68
- package/dist/src/chat/chat.d.ts +1 -1
- package/dist/src/client/createRAGAnswerWorkflow.d.ts +10 -9
- package/dist/src/client/ragClient.d.ts +41 -40
- package/dist/src/client/ui.d.ts +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/ingestion/ingestion.d.ts +1 -1
- package/dist/src/internal/accessControl.d.ts +1 -1
- package/dist/src/internal/jobState.d.ts +1 -1
- package/dist/src/presentation/htmxCitationFragments.d.ts +1 -1
- package/dist/src/presentation/htmxConfig.d.ts +1 -1
- package/dist/src/presentation/htmxRenderers.d.ts +2 -1
- package/dist/src/presentation/htmxWorkflowRenderers.d.ts +1 -1
- package/dist/src/presentation/presentation.d.ts +5 -4
- package/dist/src/providers/contactProviders.d.ts +1 -1
- package/dist/src/providers/emailProviders.d.ts +1 -1
- package/dist/src/providers/embeddingProviders.d.ts +1 -1
- package/dist/src/providers/extractorProviders.d.ts +1 -1
- package/dist/src/providers/rerankerProviders.d.ts +1 -1
- package/dist/src/providers/socialProviders.d.ts +1 -1
- package/dist/src/quality/quality.d.ts +2 -1
- package/dist/src/react/useRAG.d.ts +117 -117
- package/dist/src/react/useRAGChunkPreview.d.ts +5 -5
- package/dist/src/react/useRAGCitations.d.ts +4 -4
- package/dist/src/react/useRAGDocuments.d.ts +1 -1
- package/dist/src/react/useRAGEvaluate.d.ts +4 -4
- package/dist/src/react/useRAGGrounding.d.ts +3 -3
- package/dist/src/react/useRAGIndexAdmin.d.ts +5 -5
- package/dist/src/react/useRAGIngest.d.ts +1 -1
- package/dist/src/react/useRAGOps.d.ts +1 -1
- package/dist/src/react/useRAGSearch.d.ts +2 -1
- package/dist/src/react/useRAGSources.d.ts +6 -6
- package/dist/src/react/useRAGStatus.d.ts +2 -2
- package/dist/src/react/useRAGStream.d.ts +11 -11
- package/dist/src/react/useRAGWorkflow.d.ts +12 -12
- package/dist/src/retrieval/collection.d.ts +3 -1
- package/dist/src/retrieval/context.d.ts +1 -1
- package/dist/src/retrieval/embedding.d.ts +1 -1
- package/dist/src/retrieval/grounding.d.ts +2 -1
- package/dist/src/retrieval/lexical.d.ts +2 -1
- package/dist/src/retrieval/queryTransforms.d.ts +1 -1
- package/dist/src/retrieval/reranking.d.ts +1 -1
- package/dist/src/retrieval/retrievalStrategies.d.ts +1 -1
- package/dist/src/svelte/createRAG.d.ts +109 -109
- package/dist/src/svelte/createRAGChunkPreview.d.ts +5 -5
- package/dist/src/svelte/createRAGCitations.d.ts +4 -4
- package/dist/src/svelte/createRAGDocuments.d.ts +1 -1
- package/dist/src/svelte/createRAGEvaluate.d.ts +4 -4
- package/dist/src/svelte/createRAGGrounding.d.ts +3 -3
- package/dist/src/svelte/createRAGIndexAdmin.d.ts +5 -5
- package/dist/src/svelte/createRAGIngest.d.ts +1 -1
- package/dist/src/svelte/createRAGOps.d.ts +1 -1
- package/dist/src/svelte/createRAGSearch.d.ts +2 -1
- package/dist/src/svelte/createRAGSources.d.ts +6 -6
- package/dist/src/svelte/createRAGStatus.d.ts +2 -2
- package/dist/src/svelte/createRAGStream.d.ts +8 -8
- package/dist/src/svelte/createRAGWorkflow.d.ts +9 -9
- package/dist/src/sync/sync.d.ts +2 -2
- package/dist/src/vue/useRAG.d.ts +257 -257
- package/dist/src/vue/useRAGChunkPreview.d.ts +25 -25
- package/dist/src/vue/useRAGCitations.d.ts +4 -4
- package/dist/src/vue/useRAGDocuments.d.ts +9 -9
- package/dist/src/vue/useRAGEvaluate.d.ts +50 -50
- package/dist/src/vue/useRAGGrounding.d.ts +3 -3
- package/dist/src/vue/useRAGIndexAdmin.d.ts +35 -35
- package/dist/src/vue/useRAGIngest.d.ts +1 -1
- package/dist/src/vue/useRAGOps.d.ts +9 -9
- package/dist/src/vue/useRAGSearch.d.ts +30 -29
- package/dist/src/vue/useRAGSources.d.ts +6 -6
- package/dist/src/vue/useRAGStatus.d.ts +2 -2
- package/dist/src/vue/useRAGStream.d.ts +10 -10
- package/dist/src/vue/useRAGWorkflow.d.ts +11 -11
- package/dist/svelte/index.js.map +13 -13
- package/dist/types/adapters.d.ts +1 -1
- package/dist/types/client.d.ts +2 -1
- package/dist/types/core.d.ts +1 -1
- package/dist/types/engine.d.ts +4407 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/presentation.d.ts +2 -1
- package/dist/types/retrieval.d.ts +1 -1
- package/dist/vue/index.js.map +13 -13
- package/package.json +6 -2
|
@@ -5,4 +5,4 @@ export { rankRAGLexicalMatches } from "../retrieval/lexical";
|
|
|
5
5
|
export { createRAGCollection } from "../retrieval/collection";
|
|
6
6
|
export { ragChat, ragChat as ragPlugin } from "../chat/chat";
|
|
7
7
|
export { RAG_NATIVE_QUERY_CANDIDATE_LIMIT, RAG_VECTOR_DIMENSIONS_DEFAULT, } from "../constants";
|
|
8
|
-
export type { RAGBackendCapabilities, RAGCollection, RAGEmbeddingInput, RAGLexicalQueryInput, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGSQLiteNativeDiagnostics, RAGUpsertInput, RAGVectorCountInput, RAGVectorDeleteInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, } from "
|
|
8
|
+
export type { RAGBackendCapabilities, RAGCollection, RAGEmbeddingInput, RAGLexicalQueryInput, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGSQLiteNativeDiagnostics, RAGUpsertInput, RAGVectorCountInput, RAGVectorDeleteInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, } from "../../types/engine";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRAGVector, normalizeVector, querySimilarity } from "./utils";
|
|
2
|
-
import type { RAGVectorStore } from "
|
|
2
|
+
import type { RAGVectorStore } from "../../types/engine";
|
|
3
3
|
import type { InMemoryRAGStoreOptions } from "../../types/adapters";
|
|
4
4
|
export declare const createInMemoryRAGStore: (options?: InMemoryRAGStoreOptions) => RAGVectorStore;
|
|
5
5
|
export { createRAGVector, normalizeVector, querySimilarity };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SyncEngine } from "@absolutejs/sync/engine";
|
|
2
|
-
import type { RAGVectorStore } from "
|
|
2
|
+
import type { RAGVectorStore } from "../../types/engine";
|
|
3
3
|
import type { SyncRAGStoreOptions } from "../../types/adapters";
|
|
4
4
|
/**
|
|
5
5
|
* A {@link RAGVectorStore} backed by the @absolutejs/sync engine: a drop-in for
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AIStreamService } from "@absolutejs/ai/angular";
|
|
2
2
|
export declare class RAGStreamService extends AIStreamService {
|
|
3
3
|
connect(path: string, conversationId?: string): {
|
|
4
|
-
citations: import("@angular/core").Signal<import("
|
|
5
|
-
citationReferenceMap: import("@angular/core").Signal<import("
|
|
6
|
-
groundedAnswer: import("@angular/core").Signal<import("
|
|
7
|
-
groundingReferences: import("@angular/core").Signal<import("
|
|
4
|
+
citations: import("@angular/core").Signal<import("..").RAGCitation[]>;
|
|
5
|
+
citationReferenceMap: import("@angular/core").Signal<import("..").RAGCitationReferenceMap>;
|
|
6
|
+
groundedAnswer: import("@angular/core").Signal<import("..").RAGGroundedAnswer>;
|
|
7
|
+
groundingReferences: import("@angular/core").Signal<import("..").RAGGroundingReference[]>;
|
|
8
8
|
hasRetrieved: import("@angular/core").Signal<boolean>;
|
|
9
9
|
hasSources: import("@angular/core").Signal<boolean>;
|
|
10
10
|
isAnswerStreaming: import("@angular/core").Signal<boolean>;
|
|
@@ -16,12 +16,12 @@ export declare class RAGStreamService extends AIStreamService {
|
|
|
16
16
|
latestAssistantMessage: import("@angular/core").Signal<import("@absolutejs/ai").AIMessage | undefined>;
|
|
17
17
|
progress: import("@angular/core").Signal<import("../presentation/presentation").RAGStreamProgress>;
|
|
18
18
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
19
|
-
retrieval: import("@angular/core").Signal<import("
|
|
20
|
-
sourceGroups: import("@angular/core").Signal<import("
|
|
21
|
-
sourceSummaries: import("@angular/core").Signal<import("
|
|
19
|
+
retrieval: import("@angular/core").Signal<import("..").RAGRetrievedState | null>;
|
|
20
|
+
sourceGroups: import("@angular/core").Signal<import("..").RAGSourceGroup[]>;
|
|
21
|
+
sourceSummaries: import("@angular/core").Signal<import("..").RAGSourceSummary[]>;
|
|
22
22
|
sources: import("@angular/core").Signal<import("@absolutejs/ai").RAGSource[]>;
|
|
23
|
-
stage: import("@angular/core").Signal<import("
|
|
24
|
-
workflow: import("@angular/core").Signal<import("
|
|
23
|
+
stage: import("@angular/core").Signal<import("..").RAGStreamStage>;
|
|
24
|
+
workflow: import("@angular/core").Signal<import("..").RAGAnswerWorkflowState>;
|
|
25
25
|
branch: (messageId: string, content: string) => void;
|
|
26
26
|
cancel: () => void;
|
|
27
27
|
error: import("@angular/core").Signal<string | null>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RAGStreamService } from "./ai-rag-stream.service";
|
|
2
2
|
export declare class RAGWorkflowService extends RAGStreamService {
|
|
3
3
|
connect(path: string, conversationId?: string): {
|
|
4
|
-
state: import("@angular/core").Signal<import("
|
|
5
|
-
citations: import("@angular/core").Signal<import("
|
|
6
|
-
citationReferenceMap: import("@angular/core").Signal<import("
|
|
7
|
-
groundedAnswer: import("@angular/core").Signal<import("
|
|
8
|
-
groundingReferences: import("@angular/core").Signal<import("
|
|
4
|
+
state: import("@angular/core").Signal<import("..").RAGAnswerWorkflowState>;
|
|
5
|
+
citations: import("@angular/core").Signal<import("..").RAGCitation[]>;
|
|
6
|
+
citationReferenceMap: import("@angular/core").Signal<import("..").RAGCitationReferenceMap>;
|
|
7
|
+
groundedAnswer: import("@angular/core").Signal<import("..").RAGGroundedAnswer>;
|
|
8
|
+
groundingReferences: import("@angular/core").Signal<import("..").RAGGroundingReference[]>;
|
|
9
9
|
hasRetrieved: import("@angular/core").Signal<boolean>;
|
|
10
10
|
hasSources: import("@angular/core").Signal<boolean>;
|
|
11
11
|
isAnswerStreaming: import("@angular/core").Signal<boolean>;
|
|
@@ -17,12 +17,12 @@ export declare class RAGWorkflowService extends RAGStreamService {
|
|
|
17
17
|
latestAssistantMessage: import("@angular/core").Signal<import("@absolutejs/ai").AIMessage | undefined>;
|
|
18
18
|
progress: import("@angular/core").Signal<import("../presentation/presentation").RAGStreamProgress>;
|
|
19
19
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
20
|
-
retrieval: import("@angular/core").Signal<import("
|
|
21
|
-
sourceGroups: import("@angular/core").Signal<import("
|
|
22
|
-
sourceSummaries: import("@angular/core").Signal<import("
|
|
20
|
+
retrieval: import("@angular/core").Signal<import("..").RAGRetrievedState | null>;
|
|
21
|
+
sourceGroups: import("@angular/core").Signal<import("..").RAGSourceGroup[]>;
|
|
22
|
+
sourceSummaries: import("@angular/core").Signal<import("..").RAGSourceSummary[]>;
|
|
23
23
|
sources: import("@angular/core").Signal<import("@absolutejs/ai").RAGSource[]>;
|
|
24
|
-
stage: import("@angular/core").Signal<import("
|
|
25
|
-
workflow: import("@angular/core").Signal<import("
|
|
24
|
+
stage: import("@angular/core").Signal<import("..").RAGStreamStage>;
|
|
25
|
+
workflow: import("@angular/core").Signal<import("..").RAGAnswerWorkflowState>;
|
|
26
26
|
branch: (messageId: string, content: string) => void;
|
|
27
27
|
cancel: () => void;
|
|
28
28
|
error: import("@angular/core").Signal<string | null>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { RAGEvaluationInput, RAGRetrievalBaselineResponse, RAGRetrievalLaneHandoffDecisionRequest, RAGRetrievalBaselinePromotionFromRunRequest, RAGRetrievalBaselinePromotionRequest, RAGRetrievalBaselineRevertRequest, RAGRetrievalReleaseDecisionActionRequest, RAGRetrievalComparisonRequest, RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGRetrievalIncidentRemediationDecisionRequest, RAGRetrievalIncidentRemediationBulkExecutionRequest, RAGRetrievalIncidentRemediationExecutionRequest, RAGSearchRequest, RAGSyncRunOptions } from "
|
|
1
|
+
import type { RAGEvaluationInput, RAGRetrievalBaselineResponse, RAGRetrievalLaneHandoffDecisionRequest, RAGRetrievalBaselinePromotionFromRunRequest, RAGRetrievalBaselinePromotionRequest, RAGRetrievalBaselineRevertRequest, RAGRetrievalReleaseDecisionActionRequest, RAGRetrievalComparisonRequest, RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGRetrievalIncidentRemediationDecisionRequest, RAGRetrievalIncidentRemediationBulkExecutionRequest, RAGRetrievalIncidentRemediationExecutionRequest, RAGSearchRequest, RAGSyncRunOptions } from "../../types/engine";
|
|
2
2
|
export declare class RAGClientService {
|
|
3
3
|
private clients;
|
|
4
4
|
private client;
|
|
5
|
-
ingest(path: string, chunks: RAGDocumentChunk[]): Promise<import("
|
|
6
|
-
ingestDocuments(path: string, input: RAGDocumentIngestInput): Promise<import("
|
|
7
|
-
ingestUrls(path: string, input: RAGDocumentUrlIngestInput): Promise<import("
|
|
8
|
-
ingestUploads(path: string, input: RAGDocumentUploadIngestInput): Promise<import("
|
|
5
|
+
ingest(path: string, chunks: RAGDocumentChunk[]): Promise<import("..").RAGIngestResponse>;
|
|
6
|
+
ingestDocuments(path: string, input: RAGDocumentIngestInput): Promise<import("..").RAGIngestResponse>;
|
|
7
|
+
ingestUrls(path: string, input: RAGDocumentUrlIngestInput): Promise<import("..").RAGIngestResponse>;
|
|
8
|
+
ingestUploads(path: string, input: RAGDocumentUploadIngestInput): Promise<import("..").RAGIngestResponse>;
|
|
9
9
|
search(path: string, input: RAGSearchRequest): Promise<import("@absolutejs/ai").RAGSource[] | import("../client").RAGDetailedSearchResponse>;
|
|
10
10
|
searchWithTrace(path: string, input: RAGSearchRequest): Promise<import("../client").RAGDetailedSearchResponse>;
|
|
11
|
-
evaluate(path: string, input: RAGEvaluationInput): Promise<import("
|
|
12
|
-
compareRetrievals(path: string, input: RAGRetrievalComparisonRequest): Promise<import("
|
|
11
|
+
evaluate(path: string, input: RAGEvaluationInput): Promise<import("..").RAGEvaluationResponse>;
|
|
12
|
+
compareRetrievals(path: string, input: RAGRetrievalComparisonRequest): Promise<import("..").RAGRetrievalComparison>;
|
|
13
13
|
retrievalComparisonHistory(path: string, input?: {
|
|
14
14
|
limit?: number;
|
|
15
15
|
suiteId?: string;
|
|
@@ -17,94 +17,94 @@ export declare class RAGClientService {
|
|
|
17
17
|
winnerId?: string;
|
|
18
18
|
groupKey?: string;
|
|
19
19
|
tag?: string;
|
|
20
|
-
}): Promise<import("
|
|
20
|
+
}): Promise<import("..").RAGRetrievalComparisonRun[]>;
|
|
21
21
|
retrievalBaselines(path: string, input?: {
|
|
22
22
|
groupKey?: string;
|
|
23
23
|
tag?: string;
|
|
24
24
|
limit?: number;
|
|
25
25
|
status?: "active" | "superseded";
|
|
26
|
-
}): Promise<import("
|
|
27
|
-
promoteRetrievalBaseline(path: string, input: RAGRetrievalBaselinePromotionRequest): Promise<import("
|
|
26
|
+
}): Promise<import("..").RAGRetrievalBaselineRecord[]>;
|
|
27
|
+
promoteRetrievalBaseline(path: string, input: RAGRetrievalBaselinePromotionRequest): Promise<import("..").RAGRetrievalBaselineRecord>;
|
|
28
28
|
promoteRetrievalBaselineDetailed(path: string, input: RAGRetrievalBaselinePromotionRequest): Promise<RAGRetrievalBaselineResponse>;
|
|
29
29
|
promoteRetrievalBaselineToLane(path: string, input: RAGRetrievalBaselinePromotionRequest & {
|
|
30
30
|
rolloutLabel: "canary" | "stable" | "rollback_target";
|
|
31
|
-
}): Promise<import("
|
|
31
|
+
}): Promise<import("..").RAGRetrievalBaselineRecord>;
|
|
32
32
|
promoteRetrievalBaselineToLaneDetailed(path: string, input: RAGRetrievalBaselinePromotionRequest & {
|
|
33
33
|
rolloutLabel: "canary" | "stable" | "rollback_target";
|
|
34
34
|
}): Promise<RAGRetrievalBaselineResponse>;
|
|
35
|
-
promoteRetrievalBaselineFromRun(path: string, input: RAGRetrievalBaselinePromotionFromRunRequest): Promise<import("
|
|
35
|
+
promoteRetrievalBaselineFromRun(path: string, input: RAGRetrievalBaselinePromotionFromRunRequest): Promise<import("..").RAGRetrievalBaselineRecord>;
|
|
36
36
|
promoteRetrievalBaselineFromRunDetailed(path: string, input: RAGRetrievalBaselinePromotionFromRunRequest): Promise<RAGRetrievalBaselineResponse>;
|
|
37
|
-
revertRetrievalBaseline(path: string, input: RAGRetrievalBaselineRevertRequest): Promise<import("
|
|
37
|
+
revertRetrievalBaseline(path: string, input: RAGRetrievalBaselineRevertRequest): Promise<import("..").RAGRetrievalBaselineRecord>;
|
|
38
38
|
retrievalBaselineDecisions(path: string, input?: {
|
|
39
39
|
groupKey?: string;
|
|
40
40
|
limit?: number;
|
|
41
41
|
kind?: "approve" | "promote" | "reject" | "revert";
|
|
42
42
|
freshnessStatus?: "fresh" | "expired" | "not_applicable";
|
|
43
43
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
44
|
-
}): Promise<import("
|
|
44
|
+
}): Promise<import("..").RAGRetrievalReleaseDecisionRecord[]>;
|
|
45
45
|
retrievalReleaseGroupHistory(path: string, input: {
|
|
46
46
|
groupKey: string;
|
|
47
47
|
decisionLimit?: number;
|
|
48
48
|
baselineLimit?: number;
|
|
49
49
|
runLimit?: number;
|
|
50
50
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
51
|
-
}): Promise<import("
|
|
51
|
+
}): Promise<import("..").RAGRetrievalReleaseGroupHistoryResponse>;
|
|
52
52
|
retrievalLaneHandoffs(path: string, input?: {
|
|
53
53
|
groupKey?: string;
|
|
54
54
|
sourceRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
55
55
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
56
56
|
limit?: number;
|
|
57
|
-
}): Promise<import("
|
|
57
|
+
}): Promise<import("..").RAGRetrievalReleaseLaneHandoffSummary[]>;
|
|
58
58
|
retrievalLaneHandoffDecisions(path: string, input?: {
|
|
59
59
|
groupKey?: string;
|
|
60
60
|
sourceRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
61
61
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
62
62
|
kind?: "approve" | "reject" | "complete";
|
|
63
63
|
limit?: number;
|
|
64
|
-
}): Promise<import("
|
|
64
|
+
}): Promise<import("..").RAGRetrievalLaneHandoffDecisionRecord[]>;
|
|
65
65
|
retrievalLaneHandoffIncidents(path: string, input?: {
|
|
66
66
|
groupKey?: string;
|
|
67
67
|
limit?: number;
|
|
68
68
|
status?: "open" | "resolved";
|
|
69
69
|
severity?: "warning" | "critical";
|
|
70
70
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
71
|
-
}): Promise<import("
|
|
71
|
+
}): Promise<import("..").RAGRetrievalLaneHandoffIncidentRecord[]>;
|
|
72
72
|
retrievalLaneHandoffIncidentHistory(path: string, input?: {
|
|
73
73
|
action?: "opened" | "acknowledged" | "unacknowledged" | "resolved";
|
|
74
74
|
groupKey?: string;
|
|
75
75
|
incidentId?: string;
|
|
76
76
|
limit?: number;
|
|
77
77
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
78
|
-
}): Promise<import("
|
|
78
|
+
}): Promise<import("..").RAGRetrievalLaneHandoffIncidentHistoryRecord[]>;
|
|
79
79
|
retrievalLaneHandoffAutoCompletePolicyHistory(path: string, input?: {
|
|
80
80
|
groupKey?: string;
|
|
81
81
|
limit?: number;
|
|
82
82
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
83
|
-
}): Promise<import("
|
|
83
|
+
}): Promise<import("..").RAGRetrievalLaneHandoffAutoCompletePolicyHistoryRecord[]>;
|
|
84
84
|
retrievalReleaseLanePolicyHistory(path: string, input?: {
|
|
85
85
|
groupKey?: string;
|
|
86
86
|
limit?: number;
|
|
87
87
|
rolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
88
88
|
scope?: "rollout_label" | "group_rollout_label";
|
|
89
|
-
}): Promise<import("
|
|
89
|
+
}): Promise<import("..").RAGRetrievalReleaseLanePolicyHistoryRecord[]>;
|
|
90
90
|
retrievalBaselineGatePolicyHistory(path: string, input?: {
|
|
91
91
|
groupKey?: string;
|
|
92
92
|
limit?: number;
|
|
93
93
|
rolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
94
94
|
scope?: "rollout_label" | "group_rollout_label";
|
|
95
|
-
}): Promise<import("
|
|
95
|
+
}): Promise<import("..").RAGRetrievalBaselineGatePolicyHistoryRecord[]>;
|
|
96
96
|
retrievalReleaseLaneEscalationPolicyHistory(path: string, input?: {
|
|
97
97
|
groupKey?: string;
|
|
98
98
|
limit?: number;
|
|
99
99
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
100
|
-
}): Promise<import("
|
|
100
|
+
}): Promise<import("..").RAGRetrievalReleaseLaneEscalationPolicyHistoryRecord[]>;
|
|
101
101
|
retrievalReleaseIncidentPolicyHistory(path: string, input?: {
|
|
102
102
|
groupKey?: string;
|
|
103
103
|
limit?: number;
|
|
104
104
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
105
|
-
}): Promise<import("
|
|
106
|
-
decideRetrievalLaneHandoff(path: string, input: RAGRetrievalLaneHandoffDecisionRequest): Promise<import("
|
|
107
|
-
decideRetrievalLaneHandoffDetailed(path: string, input: RAGRetrievalLaneHandoffDecisionRequest): Promise<import("
|
|
105
|
+
}): Promise<import("..").RAGRetrievalReleaseLaneEscalationPolicyHistoryRecord[]>;
|
|
106
|
+
decideRetrievalLaneHandoff(path: string, input: RAGRetrievalLaneHandoffDecisionRequest): Promise<import("..").RAGRetrievalLaneHandoffDecisionRecord>;
|
|
107
|
+
decideRetrievalLaneHandoffDetailed(path: string, input: RAGRetrievalLaneHandoffDecisionRequest): Promise<import("..").RAGRetrievalLaneHandoffDecisionResponse>;
|
|
108
108
|
retrievalReleaseIncidents(path: string, input?: {
|
|
109
109
|
groupKey?: string;
|
|
110
110
|
limit?: number;
|
|
@@ -113,7 +113,7 @@ export declare class RAGClientService {
|
|
|
113
113
|
kind?: "approval_expired" | "baseline_regression" | "gate_failure" | "handoff_stale";
|
|
114
114
|
acknowledged?: boolean;
|
|
115
115
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
116
|
-
}): Promise<import("
|
|
116
|
+
}): Promise<import("..").RAGRetrievalReleaseIncidentRecord[]>;
|
|
117
117
|
retrievalIncidentRemediationDecisions(path: string, input?: {
|
|
118
118
|
groupKey?: string;
|
|
119
119
|
incidentId?: string;
|
|
@@ -121,7 +121,7 @@ export declare class RAGClientService {
|
|
|
121
121
|
remediationKind?: "renew_approval" | "record_approval" | "inspect_gate" | "rerun_comparison" | "restore_source_lane" | "review_readiness" | "monitor_lane";
|
|
122
122
|
status?: "planned" | "applied" | "dismissed";
|
|
123
123
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
124
|
-
}): Promise<import("
|
|
124
|
+
}): Promise<import("..").RAGRetrievalIncidentRemediationDecisionRecord[]>;
|
|
125
125
|
retrievalIncidentRemediationExecutions(path: string, input?: {
|
|
126
126
|
groupKey?: string;
|
|
127
127
|
incidentId?: string;
|
|
@@ -131,52 +131,52 @@ export declare class RAGClientService {
|
|
|
131
131
|
blockedByGuardrail?: boolean;
|
|
132
132
|
idempotentReplay?: boolean;
|
|
133
133
|
targetRolloutLabel?: "canary" | "stable" | "rollback_target";
|
|
134
|
-
}): Promise<import("
|
|
135
|
-
recordRetrievalIncidentRemediationDecision(path: string, input: RAGRetrievalIncidentRemediationDecisionRequest): Promise<import("
|
|
136
|
-
executeRetrievalIncidentRemediation(path: string, input: RAGRetrievalIncidentRemediationExecutionRequest): Promise<import("
|
|
134
|
+
}): Promise<import("..").RAGRetrievalIncidentRemediationExecutionHistoryRecord[]>;
|
|
135
|
+
recordRetrievalIncidentRemediationDecision(path: string, input: RAGRetrievalIncidentRemediationDecisionRequest): Promise<import("..").RAGRetrievalIncidentRemediationDecisionRecord[]>;
|
|
136
|
+
executeRetrievalIncidentRemediation(path: string, input: RAGRetrievalIncidentRemediationExecutionRequest): Promise<import("..").RAGRetrievalIncidentRemediationExecutionResponse>;
|
|
137
137
|
bulkExecuteRetrievalIncidentRemediations(path: string, input: RAGRetrievalIncidentRemediationBulkExecutionRequest): Promise<{
|
|
138
138
|
index: number;
|
|
139
139
|
ok: boolean;
|
|
140
|
-
execution?: import("
|
|
141
|
-
record?: import("
|
|
140
|
+
execution?: import("..").RAGRetrievalIncidentRemediationExecutionResult;
|
|
141
|
+
record?: import("..").RAGRetrievalIncidentRemediationDecisionRecord;
|
|
142
142
|
error?: string;
|
|
143
143
|
}[]>;
|
|
144
|
-
retrievalReleaseStatus(path: string): Promise<import("
|
|
145
|
-
retrievalReleaseIncidentStatus(path: string): Promise<import("
|
|
146
|
-
retrievalIncidentRemediationStatus(path: string): Promise<import("
|
|
147
|
-
retrievalReleaseDriftStatus(path: string): Promise<import("
|
|
148
|
-
retrievalLaneHandoffStatus(path: string): Promise<import("
|
|
149
|
-
retrievalLaneHandoffIncidentStatus(path: string): Promise<import("
|
|
144
|
+
retrievalReleaseStatus(path: string): Promise<import("..").RAGRetrievalComparisonRuntime | undefined>;
|
|
145
|
+
retrievalReleaseIncidentStatus(path: string): Promise<import("..").RAGRetrievalReleaseIncidentStatusResponse>;
|
|
146
|
+
retrievalIncidentRemediationStatus(path: string): Promise<import("..").RAGRetrievalIncidentRemediationStatusResponse>;
|
|
147
|
+
retrievalReleaseDriftStatus(path: string): Promise<import("..").RAGRetrievalReleaseDriftStatusResponse>;
|
|
148
|
+
retrievalLaneHandoffStatus(path: string): Promise<import("..").RAGRetrievalLaneHandoffStatusResponse>;
|
|
149
|
+
retrievalLaneHandoffIncidentStatus(path: string): Promise<import("..").RAGRetrievalLaneHandoffIncidentStatusResponse>;
|
|
150
150
|
acknowledgeRetrievalLaneHandoffIncident(path: string, input: {
|
|
151
151
|
incidentId: string;
|
|
152
152
|
acknowledgedAt?: number;
|
|
153
153
|
acknowledgedBy?: string;
|
|
154
154
|
acknowledgementNotes?: string;
|
|
155
|
-
}): Promise<import("
|
|
155
|
+
}): Promise<import("..").RAGRetrievalLaneHandoffIncidentRecord[]>;
|
|
156
156
|
unacknowledgeRetrievalLaneHandoffIncident(path: string, input: {
|
|
157
157
|
incidentId: string;
|
|
158
|
-
}): Promise<import("
|
|
158
|
+
}): Promise<import("..").RAGRetrievalLaneHandoffIncidentRecord[]>;
|
|
159
159
|
resolveRetrievalLaneHandoffIncident(path: string, input: {
|
|
160
160
|
incidentId: string;
|
|
161
161
|
resolvedAt?: number;
|
|
162
162
|
resolvedBy?: string;
|
|
163
163
|
resolutionNotes?: string;
|
|
164
|
-
}): Promise<import("
|
|
164
|
+
}): Promise<import("..").RAGRetrievalLaneHandoffIncidentRecord[]>;
|
|
165
165
|
acknowledgeRetrievalReleaseIncident(path: string, input: {
|
|
166
166
|
incidentId: string;
|
|
167
167
|
acknowledgedAt?: number;
|
|
168
168
|
acknowledgedBy?: string;
|
|
169
169
|
acknowledgementNotes?: string;
|
|
170
|
-
}): Promise<import("
|
|
170
|
+
}): Promise<import("..").RAGRetrievalReleaseIncidentRecord[]>;
|
|
171
171
|
unacknowledgeRetrievalReleaseIncident(path: string, input: {
|
|
172
172
|
incidentId: string;
|
|
173
|
-
}): Promise<import("
|
|
173
|
+
}): Promise<import("..").RAGRetrievalReleaseIncidentRecord[]>;
|
|
174
174
|
resolveRetrievalReleaseIncident(path: string, input: {
|
|
175
175
|
incidentId: string;
|
|
176
176
|
resolvedAt?: number;
|
|
177
177
|
resolvedBy?: string;
|
|
178
178
|
resolutionNotes?: string;
|
|
179
|
-
}): Promise<import("
|
|
179
|
+
}): Promise<import("..").RAGRetrievalReleaseIncidentRecord[]>;
|
|
180
180
|
retrievalPromotionCandidates(path: string, input?: {
|
|
181
181
|
groupKey?: string;
|
|
182
182
|
limit?: number;
|
|
@@ -189,54 +189,54 @@ export declare class RAGClientService {
|
|
|
189
189
|
freshnessStatus?: "fresh" | "expired" | "not_applicable";
|
|
190
190
|
sortBy?: "approvalFreshness" | "finishedAt" | "gateSeverity" | "priority";
|
|
191
191
|
sortDirection?: "asc" | "desc";
|
|
192
|
-
}): Promise<import("
|
|
193
|
-
approveRetrievalCandidate(path: string, input: RAGRetrievalReleaseDecisionActionRequest): Promise<import("
|
|
194
|
-
rejectRetrievalCandidate(path: string, input: RAGRetrievalReleaseDecisionActionRequest): Promise<import("
|
|
195
|
-
status(path: string): Promise<import("
|
|
196
|
-
ops(path: string): Promise<import("
|
|
192
|
+
}): Promise<import("..").RAGRetrievalPromotionCandidate[]>;
|
|
193
|
+
approveRetrievalCandidate(path: string, input: RAGRetrievalReleaseDecisionActionRequest): Promise<import("..").RAGRetrievalReleaseDecisionRecord[]>;
|
|
194
|
+
rejectRetrievalCandidate(path: string, input: RAGRetrievalReleaseDecisionActionRequest): Promise<import("..").RAGRetrievalReleaseDecisionRecord[]>;
|
|
195
|
+
status(path: string): Promise<import("..").RAGStatusResponse>;
|
|
196
|
+
ops(path: string): Promise<import("..").RAGOperationsResponse>;
|
|
197
197
|
searchTraceHistory(path: string, input?: {
|
|
198
198
|
query?: string;
|
|
199
199
|
groupKey?: string;
|
|
200
200
|
tag?: string;
|
|
201
201
|
limit?: number;
|
|
202
|
-
}): Promise<import("
|
|
202
|
+
}): Promise<import("..").RAGSearchTraceHistory>;
|
|
203
203
|
searchTraceGroups(path: string, input?: {
|
|
204
204
|
tag?: string;
|
|
205
205
|
limit?: number;
|
|
206
|
-
}): Promise<import("
|
|
206
|
+
}): Promise<import("..").RAGSearchTraceGroupHistory>;
|
|
207
207
|
searchTraceStats(path: string, input?: {
|
|
208
208
|
tag?: string;
|
|
209
|
-
}): Promise<import("
|
|
209
|
+
}): Promise<import("..").RAGSearchTraceStats>;
|
|
210
210
|
previewSearchTracePrune(path: string, input?: {
|
|
211
211
|
maxAgeMs?: number;
|
|
212
212
|
maxRecordsPerQuery?: number;
|
|
213
213
|
maxRecordsPerGroup?: number;
|
|
214
214
|
now?: number;
|
|
215
215
|
tag?: string;
|
|
216
|
-
}): Promise<import("
|
|
216
|
+
}): Promise<import("..").RAGSearchTracePrunePreview>;
|
|
217
217
|
pruneSearchTraces(path: string, input?: {
|
|
218
218
|
maxAgeMs?: number;
|
|
219
219
|
maxRecordsPerQuery?: number;
|
|
220
220
|
maxRecordsPerGroup?: number;
|
|
221
221
|
now?: number;
|
|
222
222
|
tag?: string;
|
|
223
|
-
}): Promise<import("
|
|
223
|
+
}): Promise<import("..").RAGSearchTracePruneResponse>;
|
|
224
224
|
searchTracePruneHistory(path: string, input?: {
|
|
225
225
|
limit?: number;
|
|
226
226
|
trigger?: "manual" | "write" | "schedule";
|
|
227
|
-
}): Promise<import("
|
|
228
|
-
syncSources(path: string): Promise<import("
|
|
229
|
-
syncAllSources(path: string, options?: RAGSyncRunOptions): Promise<import("
|
|
230
|
-
syncSource(path: string, id: string, options?: RAGSyncRunOptions): Promise<import("
|
|
231
|
-
documents(path: string, kind?: string): Promise<import("
|
|
232
|
-
documentChunks(path: string, id: string): Promise<import("
|
|
233
|
-
createDocument(path: string, input: RAGDocumentIngestInput["documents"][number]): Promise<import("
|
|
234
|
-
deleteDocument(path: string, id: string): Promise<import("
|
|
235
|
-
reseed(path: string): Promise<import("
|
|
236
|
-
reset(path: string): Promise<import("
|
|
237
|
-
reindexDocument(path: string, id: string): Promise<import("
|
|
238
|
-
reindexSource(path: string, source: string): Promise<import("
|
|
239
|
-
backends(path: string): Promise<import("
|
|
227
|
+
}): Promise<import("..").RAGSearchTracePruneRun[]>;
|
|
228
|
+
syncSources(path: string): Promise<import("..").RAGSyncResponse>;
|
|
229
|
+
syncAllSources(path: string, options?: RAGSyncRunOptions): Promise<import("..").RAGSyncResponse>;
|
|
230
|
+
syncSource(path: string, id: string, options?: RAGSyncRunOptions): Promise<import("..").RAGSyncResponse>;
|
|
231
|
+
documents(path: string, kind?: string): Promise<import("..").RAGDocumentsResponse>;
|
|
232
|
+
documentChunks(path: string, id: string): Promise<import("..").RAGDocumentChunksResponse>;
|
|
233
|
+
createDocument(path: string, input: RAGDocumentIngestInput["documents"][number]): Promise<import("..").RAGMutationResponse>;
|
|
234
|
+
deleteDocument(path: string, id: string): Promise<import("..").RAGMutationResponse>;
|
|
235
|
+
reseed(path: string): Promise<import("..").RAGMutationResponse>;
|
|
236
|
+
reset(path: string): Promise<import("..").RAGMutationResponse>;
|
|
237
|
+
reindexDocument(path: string, id: string): Promise<import("..").RAGMutationResponse>;
|
|
238
|
+
reindexSource(path: string, source: string): Promise<import("..").RAGMutationResponse>;
|
|
239
|
+
backends(path: string): Promise<import("..").RAGBackendsResponse>;
|
|
240
240
|
clearIndex(path: string): Promise<{
|
|
241
241
|
ok: boolean;
|
|
242
242
|
}>;
|
package/dist/src/chat/chat.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type { AIAttachment
|
|
1
|
+
import type { AIAttachment } from "@absolutejs/ai";
|
|
2
|
+
import type { RAGAnswerWorkflowState } from "../../types/engine";
|
|
2
3
|
export declare const createRAGAnswerWorkflow: (path: string, conversationId?: string) => {
|
|
3
4
|
state: RAGAnswerWorkflowState;
|
|
4
5
|
latestAssistantMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
5
|
-
retrieval: import("
|
|
6
|
+
retrieval: import("..").RAGRetrievedState | null;
|
|
6
7
|
sources: import("@absolutejs/ai").RAGSource[];
|
|
7
|
-
sourceGroups: import("
|
|
8
|
-
sourceSummaries: import("
|
|
9
|
-
citations: import("
|
|
10
|
-
citationReferenceMap: import("
|
|
11
|
-
groundingReferences: import("
|
|
12
|
-
groundedAnswer: import("
|
|
13
|
-
stage: import("
|
|
8
|
+
sourceGroups: import("..").RAGSourceGroup[];
|
|
9
|
+
sourceSummaries: import("..").RAGSourceSummary[];
|
|
10
|
+
citations: import("..").RAGCitation[];
|
|
11
|
+
citationReferenceMap: import("..").RAGCitationReferenceMap;
|
|
12
|
+
groundingReferences: import("..").RAGGroundingReference[];
|
|
13
|
+
groundedAnswer: import("..").RAGGroundedAnswer;
|
|
14
|
+
stage: import("..").RAGStreamStage;
|
|
14
15
|
isRunning: boolean;
|
|
15
16
|
isRetrieving: boolean;
|
|
16
17
|
isRetrieved: boolean;
|