@absolutejs/rag 0.0.11 → 0.0.13
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/angular/{ai/index.js → index.js} +13 -13
- package/dist/angular/index.js.map +18 -0
- package/dist/{ai/client → client}/index.js +10 -10
- package/dist/client/index.js.map +16 -0
- package/dist/{ai/client → client}/ui.js +7 -7
- package/dist/client/ui.js.map +13 -0
- package/dist/{ai/rag → rag}/index.js +143 -99
- package/dist/rag/index.js.map +42 -0
- package/dist/{ai/rag → rag}/quality.js +7 -7
- package/dist/rag/quality.js.map +13 -0
- package/dist/{ai/rag → rag}/ui.js +7 -7
- package/dist/rag/ui.js.map +13 -0
- package/dist/react/{ai/index.js → index.js} +27 -27
- package/dist/react/index.js.map +32 -0
- package/dist/src/angular/{ai/ai-rag-stream.service.d.ts → ai-rag-stream.service.d.ts} +1 -1
- package/dist/src/angular/{ai/ai-rag-workflow.service.d.ts → ai-rag-workflow.service.d.ts} +1 -1
- package/dist/src/angular/{ai/rag-client.service.d.ts → rag-client.service.d.ts} +2 -2
- package/dist/src/{ai/client → client}/index.d.ts +2 -1
- package/dist/src/{ai/client → client}/ragClient.d.ts +2 -35
- package/dist/src/{ai/rag → rag}/adapters/inMemory.d.ts +1 -4
- package/dist/src/rag/adapters/postgres.d.ts +3 -0
- package/dist/src/rag/adapters/sqlite.d.ts +3 -0
- package/dist/src/rag/collection.d.ts +6 -0
- package/dist/src/rag/emailProviders.d.ts +6 -0
- package/dist/src/{ai/rag → rag}/embedding.d.ts +1 -5
- package/dist/src/{ai/rag → rag}/embeddingProviders.d.ts +1 -24
- package/dist/src/rag/extractorProviders.d.ts +10 -0
- package/dist/src/{ai/rag → rag}/htmxWorkflowRenderers.d.ts +1 -1
- package/dist/src/{ai/rag → rag}/index.d.ts +3 -6
- package/dist/src/{ai/rag → rag}/presentation.d.ts +4 -24
- package/dist/src/{ai/rag → rag}/quality.d.ts +2 -109
- package/dist/src/{ai/rag → rag}/queryTransforms.d.ts +2 -10
- package/dist/src/{ai/rag → rag}/rerankerProviders.d.ts +1 -10
- package/dist/src/{ai/rag → rag}/reranking.d.ts +2 -10
- package/dist/src/{ai/rag → rag}/retrievalStrategies.d.ts +1 -4
- package/dist/src/{ai/rag → rag}/sync.d.ts +1 -1
- package/dist/src/{ai/rag → rag}/types.d.ts +4 -30
- package/dist/src/react/{ai/useRAG.d.ts → useRAG.d.ts} +1 -1
- package/dist/src/react/{ai/useRAGSearch.d.ts → useRAGSearch.d.ts} +1 -1
- package/dist/src/react/{ai/useRAGStreamProgress.d.ts → useRAGStreamProgress.d.ts} +1 -1
- package/dist/src/svelte/{ai/createRAG.d.ts → createRAG.d.ts} +3 -3
- package/dist/src/svelte/{ai/createRAGSearch.d.ts → createRAGSearch.d.ts} +1 -1
- package/dist/src/svelte/{ai/createRAGStream.d.ts → createRAGStream.d.ts} +1 -1
- package/dist/src/svelte/{ai/createRAGStreamProgress.d.ts → createRAGStreamProgress.d.ts} +1 -1
- package/dist/src/svelte/{ai/createRAGWorkflow.d.ts → createRAGWorkflow.d.ts} +1 -1
- package/dist/src/vue/{ai/useRAG.d.ts → useRAG.d.ts} +3 -3
- package/dist/src/vue/{ai/useRAGSearch.d.ts → useRAGSearch.d.ts} +1 -1
- package/dist/src/vue/{ai/useRAGStream.d.ts → useRAGStream.d.ts} +1 -1
- package/dist/src/vue/{ai/useRAGStreamProgress.d.ts → useRAGStreamProgress.d.ts} +1 -1
- package/dist/src/vue/{ai/useRAGWorkflow.d.ts → useRAGWorkflow.d.ts} +1 -1
- package/dist/svelte/{ai/index.js → index.js} +25 -25
- package/dist/svelte/index.js.map +30 -0
- package/dist/types/adapters.d.ts +37 -0
- package/dist/types/client.d.ts +33 -0
- package/dist/types/core.d.ts +7 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/presentation.d.ts +24 -0
- package/dist/types/providers.d.ts +108 -0
- package/dist/types/quality.d.ts +41 -0
- package/dist/types/retrieval.d.ts +38 -0
- package/dist/types/sync.d.ts +23 -0
- package/dist/vue/{ai/index.js → index.js} +26 -26
- package/dist/vue/index.js.map +30 -0
- package/package.json +29 -29
- package/dist/ai/client/index.js.map +0 -16
- package/dist/ai/client/ui.js.map +0 -13
- package/dist/ai/rag/index.js.map +0 -42
- package/dist/ai/rag/quality.js.map +0 -13
- package/dist/ai/rag/ui.js.map +0 -13
- package/dist/angular/ai/index.js.map +0 -18
- package/dist/react/ai/index.js.map +0 -32
- package/dist/src/ai/rag/adapters/postgres.d.ts +0 -20
- package/dist/src/ai/rag/adapters/sqlite.d.ts +0 -24
- package/dist/src/ai/rag/collection.d.ts +0 -15
- package/dist/src/ai/rag/emailProviders.d.ts +0 -34
- package/dist/src/ai/rag/extractorProviders.d.ts +0 -58
- package/dist/svelte/ai/index.js.map +0 -30
- package/dist/vue/ai/index.js.map +0 -30
- /package/dist/src/angular/{ai/index.d.ts → index.d.ts} +0 -0
- /package/dist/src/{ai/client → client}/createRAGAnswerWorkflow.d.ts +0 -0
- /package/dist/src/{ai/client → client}/createRAGStream.d.ts +0 -0
- /package/dist/src/{ai/client → client}/createRAGWorkflow.d.ts +0 -0
- /package/dist/src/{ai/client → client}/ui.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/accessControl.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/adapters/filtering.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/adapters/queryPlanning.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/adapters/utils.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/atomicWrite.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/chat.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/constants.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/contactProviders.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/grounding.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/htmxConfig.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/ingestion.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/jobState.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/lexical.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/resolveAbsoluteSQLiteVec.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/socialProviders.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/ui.d.ts +0 -0
- /package/dist/src/{ai/rag → rag}/workflowState.d.ts +0 -0
- /package/dist/src/react/{ai/index.d.ts → index.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGChunkPreview.d.ts → useRAGChunkPreview.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGCitations.d.ts → useRAGCitations.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGDocuments.d.ts → useRAGDocuments.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGEvaluate.d.ts → useRAGEvaluate.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGGrounding.d.ts → useRAGGrounding.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGIndexAdmin.d.ts → useRAGIndexAdmin.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGIngest.d.ts → useRAGIngest.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGOps.d.ts → useRAGOps.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGSources.d.ts → useRAGSources.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGStatus.d.ts → useRAGStatus.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGStream.d.ts → useRAGStream.d.ts} +0 -0
- /package/dist/src/react/{ai/useRAGWorkflow.d.ts → useRAGWorkflow.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGChunkPreview.d.ts → createRAGChunkPreview.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGCitations.d.ts → createRAGCitations.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGDocuments.d.ts → createRAGDocuments.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGEvaluate.d.ts → createRAGEvaluate.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGGrounding.d.ts → createRAGGrounding.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGIndexAdmin.d.ts → createRAGIndexAdmin.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGIngest.d.ts → createRAGIngest.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGOps.d.ts → createRAGOps.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGSources.d.ts → createRAGSources.d.ts} +0 -0
- /package/dist/src/svelte/{ai/createRAGStatus.d.ts → createRAGStatus.d.ts} +0 -0
- /package/dist/src/svelte/{ai/index.d.ts → index.d.ts} +0 -0
- /package/dist/src/vue/{ai/index.d.ts → index.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGChunkPreview.d.ts → useRAGChunkPreview.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGCitations.d.ts → useRAGCitations.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGDocuments.d.ts → useRAGDocuments.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGEvaluate.d.ts → useRAGEvaluate.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGGrounding.d.ts → useRAGGrounding.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGIndexAdmin.d.ts → useRAGIndexAdmin.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGIngest.d.ts → useRAGIngest.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGOps.d.ts → useRAGOps.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGSources.d.ts → useRAGSources.d.ts} +0 -0
- /package/dist/src/vue/{ai/useRAGStatus.d.ts → useRAGStatus.d.ts} +0 -0
|
@@ -14,7 +14,7 @@ export declare class RAGStreamService extends AIStreamService {
|
|
|
14
14
|
isRetrieving: import("@angular/core").Signal<boolean>;
|
|
15
15
|
isRunning: import("@angular/core").Signal<boolean>;
|
|
16
16
|
latestAssistantMessage: import("@angular/core").Signal<import("@absolutejs/ai").AIMessage | undefined>;
|
|
17
|
-
progress: import("@angular/core").Signal<import("
|
|
17
|
+
progress: import("@angular/core").Signal<import("../rag/presentation").RAGStreamProgress>;
|
|
18
18
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
19
19
|
retrieval: import("@angular/core").Signal<import("@absolutejs/ai").RAGRetrievedState | null>;
|
|
20
20
|
sourceGroups: import("@angular/core").Signal<import("@absolutejs/ai").RAGSourceGroup[]>;
|
|
@@ -15,7 +15,7 @@ export declare class RAGWorkflowService extends RAGStreamService {
|
|
|
15
15
|
isRetrieving: import("@angular/core").Signal<boolean>;
|
|
16
16
|
isRunning: import("@angular/core").Signal<boolean>;
|
|
17
17
|
latestAssistantMessage: import("@angular/core").Signal<import("@absolutejs/ai").AIMessage | undefined>;
|
|
18
|
-
progress: import("@angular/core").Signal<import("
|
|
18
|
+
progress: import("@angular/core").Signal<import("../rag/presentation").RAGStreamProgress>;
|
|
19
19
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
20
20
|
retrieval: import("@angular/core").Signal<import("@absolutejs/ai").RAGRetrievedState | null>;
|
|
21
21
|
sourceGroups: import("@angular/core").Signal<import("@absolutejs/ai").RAGSourceGroup[]>;
|
|
@@ -6,8 +6,8 @@ export declare class RAGClientService {
|
|
|
6
6
|
ingestDocuments(path: string, input: RAGDocumentIngestInput): Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
7
7
|
ingestUrls(path: string, input: RAGDocumentUrlIngestInput): Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
8
8
|
ingestUploads(path: string, input: RAGDocumentUploadIngestInput): Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
9
|
-
search(path: string, input: RAGSearchRequest): Promise<import("@absolutejs/ai").RAGSource[] | import("
|
|
10
|
-
searchWithTrace(path: string, input: RAGSearchRequest): Promise<import("
|
|
9
|
+
search(path: string, input: RAGSearchRequest): Promise<import("@absolutejs/ai").RAGSource[] | import("../client").RAGDetailedSearchResponse>;
|
|
10
|
+
searchWithTrace(path: string, input: RAGSearchRequest): Promise<import("../client").RAGDetailedSearchResponse>;
|
|
11
11
|
evaluate(path: string, input: RAGEvaluationInput): Promise<import("@absolutejs/ai").RAGEvaluationResponse>;
|
|
12
12
|
compareRetrievals(path: string, input: RAGRetrievalComparisonRequest): Promise<import("@absolutejs/ai").RAGRetrievalComparison>;
|
|
13
13
|
retrievalComparisonHistory(path: string, input?: {
|
|
@@ -4,5 +4,6 @@ export type { RAGAnswerWorkflow as RAGWorkflow } from "./createRAGAnswerWorkflow
|
|
|
4
4
|
export { createRAGStream } from "./createRAGStream";
|
|
5
5
|
export type { CreateRAGStream } from "./createRAGStream";
|
|
6
6
|
export { buildRAGMaintenanceOverview, createRAGClient } from "./ragClient";
|
|
7
|
-
export type { RAGClient
|
|
7
|
+
export type { RAGClient } from "./ragClient";
|
|
8
|
+
export type { RAGClientOptions, RAGDetailedSearchResponse, RAGMaintenanceActionDescriptor, RAGMaintenanceOverview, RAGMaintenancePayload, } from "../../types/client";
|
|
8
9
|
export { buildRAGEvaluationLeaderboard, createRAGEvaluationSuite, runRAGEvaluationSuite, } from "../rag/quality";
|
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
import type { RAGBackendsResponse,
|
|
2
|
-
type
|
|
3
|
-
export type RAGClientOptions = {
|
|
4
|
-
path: string;
|
|
5
|
-
fetch?: FetchLike;
|
|
6
|
-
};
|
|
7
|
-
export type RAGDetailedSearchResponse = {
|
|
8
|
-
results: RAGSource[];
|
|
9
|
-
trace?: RAGSearchResponse["trace"];
|
|
10
|
-
};
|
|
11
|
-
export type RAGMaintenancePayload = Pick<RAGMutationResponse, "maintenance" | "admin" | "workflowStatus"> | Pick<RAGOperationsResponse, "maintenance" | "admin" | "status"> | Pick<RAGStatusResponse, "maintenance" | "admin" | "status"> | null | undefined;
|
|
12
|
-
export type RAGMaintenanceActionDescriptor = {
|
|
13
|
-
kind: "analyze_backend" | "rebuild_native_index";
|
|
14
|
-
label: string;
|
|
15
|
-
available: boolean;
|
|
16
|
-
recommended: boolean;
|
|
17
|
-
reason?: string;
|
|
18
|
-
};
|
|
19
|
-
export type RAGMaintenanceOverview = {
|
|
20
|
-
activeJobCount: number;
|
|
21
|
-
actions: RAGMaintenanceActionDescriptor[];
|
|
22
|
-
availableActions: RAGMaintenanceActionDescriptor[];
|
|
23
|
-
backend?: RAGBackendMaintenanceSummary["backend"];
|
|
24
|
-
blockingRecommendations: RAGBackendMaintenanceRecommendation[];
|
|
25
|
-
criticalCount: number;
|
|
26
|
-
hasBlockingIssue: boolean;
|
|
27
|
-
infoCount: number;
|
|
28
|
-
primaryRecommendation?: RAGBackendMaintenanceRecommendation;
|
|
29
|
-
recentlyCompletedActions: NonNullable<RAGBackendMaintenanceSummary>["recentActions"];
|
|
30
|
-
recommendationCount: number;
|
|
31
|
-
recommendations: RAGBackendMaintenanceRecommendation[];
|
|
32
|
-
recommendedNow: RAGBackendMaintenanceRecommendation[];
|
|
33
|
-
warningCount: number;
|
|
34
|
-
};
|
|
1
|
+
import type { RAGBackendsResponse, RAGDocumentChunksResponse, RAGEvaluationInput, RAGEvaluationResponse, RAGRetrievalBaselinePromotionFromRunRequest, RAGRetrievalBaselinePromotionRequest, RAGRetrievalBaselineRevertRequest, RAGRetrievalReleaseIncidentAcknowledgeRequest, RAGRetrievalReleaseDecisionActionRequest, RAGRetrievalBaselineResponse, RAGRetrievalLaneHandoffDecisionRequest, RAGRetrievalLaneHandoffDecisionResponse, RAGRetrievalLaneHandoffIncidentStatusResponse, RAGRetrievalLaneHandoffStatusResponse, RAGRetrievalIncidentRemediationDecisionRequest, RAGRetrievalIncidentRemediationBulkExecutionRequest, RAGRetrievalIncidentRemediationExecutionRequest, RAGRetrievalIncidentRemediationExecutionResponse, RAGRetrievalIncidentRemediationStatusResponse, RAGRetrievalReleaseGroupHistoryResponse, RAGRetrievalReleaseIncidentStatusResponse, RAGRetrievalReleaseDriftStatusResponse, RAGRetrievalComparisonRequest, RAGAdaptiveNativePlannerBenchmarkResponse, RAGAdaptiveNativePlannerBenchmarkSnapshotResponse, RAGDocumentIngestInput, RAGDocumentChunk, RAGDocumentsResponse, RAGDocumentUrlIngestInput, RAGDocumentUploadIngestInput, RAGIngestResponse, RAGMutationResponse, RAGOperationsResponse, RAGSearchRequest, RAGSearchTracePruneResponse, RAGSource, RAGStatusResponse, RAGSyncRunOptions, RAGSyncResponse } from "@absolutejs/ai";
|
|
2
|
+
import type { RAGClientOptions, RAGDetailedSearchResponse, RAGMaintenanceOverview, RAGMaintenancePayload } from "../../types/client";
|
|
35
3
|
export declare const buildRAGMaintenanceOverview: (payload: RAGMaintenancePayload) => RAGMaintenanceOverview;
|
|
36
4
|
export declare const createRAGClient: (options: RAGClientOptions) => {
|
|
37
5
|
backends(): Promise<RAGBackendsResponse>;
|
|
@@ -346,4 +314,3 @@ export declare const createRAGClient: (options: RAGClientOptions) => {
|
|
|
346
314
|
retrievalLaneHandoffStatus(): Promise<RAGRetrievalLaneHandoffStatusResponse>;
|
|
347
315
|
};
|
|
348
316
|
export type RAGClient = ReturnType<typeof createRAGClient>;
|
|
349
|
-
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { createRAGVector, normalizeVector, querySimilarity } from "./utils";
|
|
2
2
|
import type { RAGVectorStore } from "@absolutejs/ai";
|
|
3
|
-
|
|
4
|
-
dimensions?: number;
|
|
5
|
-
mockEmbedding?: (text: string) => Promise<number[]>;
|
|
6
|
-
};
|
|
3
|
+
import type { InMemoryRAGStoreOptions } from "../../../types/adapters";
|
|
7
4
|
export declare const createInMemoryRAGStore: (options?: InMemoryRAGStoreOptions) => RAGVectorStore;
|
|
8
5
|
export { createRAGVector, normalizeVector, querySimilarity };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RAGCollection, RAGCollectionSearchParams, RAGDocumentIngestInput, RAGQueryResult, RAGUpsertInput } from "@absolutejs/ai";
|
|
2
|
+
import type { CreateRAGCollectionOptions } from "../../types/retrieval";
|
|
3
|
+
export declare const createRAGCollection: (options: CreateRAGCollectionOptions) => RAGCollection;
|
|
4
|
+
export declare const ingestDocuments: (collection: RAGCollection, input: RAGUpsertInput) => Promise<void>;
|
|
5
|
+
export declare const ingestRAGDocuments: (collection: RAGCollection, input: RAGDocumentIngestInput) => Promise<void>;
|
|
6
|
+
export declare const searchDocuments: (collection: RAGCollection, input: RAGCollectionSearchParams) => Promise<RAGQueryResult[]>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RAGEmailSyncClient, RAGGmailLinkedEmailSyncClientOptions } from "@absolutejs/ai";
|
|
2
|
+
import type { GmailEmailSyncConfig, GraphEmailSyncConfig, IMAPEmailSyncConfig } from "../../types/providers";
|
|
3
|
+
export declare const createRAGGmailEmailSyncClient: (config: GmailEmailSyncConfig) => RAGEmailSyncClient;
|
|
4
|
+
export declare const createRAGLinkedGmailEmailSyncClient: (config: RAGGmailLinkedEmailSyncClientOptions) => RAGEmailSyncClient;
|
|
5
|
+
export declare const createRAGGraphEmailSyncClient: (config: GraphEmailSyncConfig) => RAGEmailSyncClient;
|
|
6
|
+
export declare const createRAGIMAPEmailSyncClient: (config: IMAPEmailSyncConfig) => RAGEmailSyncClient;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { RAGEmbeddingFunction, RAGEmbeddingProvider, RAGEmbeddingProviderLike } from "@absolutejs/ai";
|
|
2
|
-
|
|
3
|
-
embed: RAGEmbeddingFunction;
|
|
4
|
-
dimensions?: number;
|
|
5
|
-
defaultModel?: string;
|
|
6
|
-
};
|
|
2
|
+
import type { CreateRAGEmbeddingProviderOptions } from "../../types/retrieval";
|
|
7
3
|
export declare const createRAGEmbeddingProvider: (options: CreateRAGEmbeddingProviderOptions) => RAGEmbeddingProvider;
|
|
8
4
|
export declare const resolveRAGEmbeddingProvider: (providerLike: RAGEmbeddingProviderLike | undefined, fallbackEmbed?: RAGEmbeddingFunction, defaultModel?: string) => RAGEmbeddingProvider;
|
|
9
5
|
export declare const validateRAGEmbeddingDimensions: (vector: number[], expectedDimensions: number | undefined, context: "query" | "chunk") => void;
|
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import type { RAGEmbeddingProvider } from "@absolutejs/ai";
|
|
2
|
-
type
|
|
3
|
-
export type OpenAIEmbeddingsConfig = {
|
|
4
|
-
apiKey: string;
|
|
5
|
-
baseUrl?: string;
|
|
6
|
-
defaultModel?: string;
|
|
7
|
-
dimensions?: number;
|
|
8
|
-
fetch?: FetchLike;
|
|
9
|
-
};
|
|
10
|
-
export type OpenAICompatibleEmbeddingsConfig = OpenAIEmbeddingsConfig & {
|
|
11
|
-
baseUrl: string;
|
|
12
|
-
};
|
|
13
|
-
export type GeminiEmbeddingsConfig = {
|
|
14
|
-
apiKey: string;
|
|
15
|
-
baseUrl?: string;
|
|
16
|
-
defaultModel?: string;
|
|
17
|
-
dimensions?: number;
|
|
18
|
-
fetch?: FetchLike;
|
|
19
|
-
};
|
|
20
|
-
export type OllamaEmbeddingsConfig = {
|
|
21
|
-
baseUrl?: string;
|
|
22
|
-
defaultModel?: string;
|
|
23
|
-
fetch?: FetchLike;
|
|
24
|
-
};
|
|
2
|
+
import type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig } from "../../types/providers";
|
|
25
3
|
export declare const alibabaEmbeddings: (config: {
|
|
26
4
|
apiKey: string;
|
|
27
5
|
}) => RAGEmbeddingProvider;
|
|
@@ -47,4 +25,3 @@ export declare const openaiEmbeddings: (config: OpenAIEmbeddingsConfig) => RAGEm
|
|
|
47
25
|
export declare const xaiEmbeddings: (config: {
|
|
48
26
|
apiKey: string;
|
|
49
27
|
}) => RAGEmbeddingProvider;
|
|
50
|
-
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RAGMediaTranscriber, RAGOCRProvider } from "@absolutejs/ai";
|
|
2
|
+
import type { AnthropicOCRConfig, GeminiOCRConfig, OllamaOCRConfig, OllamaTranscriptionConfig, OpenAICompatibleOCRConfig, OpenAICompatibleTranscriptionConfig, OpenAIOCRConfig, OpenAITranscriptionConfig } from "../../types/providers";
|
|
3
|
+
export declare const anthropicOCR: (config: AnthropicOCRConfig) => RAGOCRProvider;
|
|
4
|
+
export declare const geminiOCR: (config: GeminiOCRConfig) => RAGOCRProvider;
|
|
5
|
+
export declare const ollamaOCR: (config?: OllamaOCRConfig) => RAGOCRProvider;
|
|
6
|
+
export declare const ollamaTranscriber: (config?: OllamaTranscriptionConfig) => RAGMediaTranscriber;
|
|
7
|
+
export declare const openaiCompatibleOCR: (config: OpenAICompatibleOCRConfig) => RAGOCRProvider;
|
|
8
|
+
export declare const openaiCompatibleTranscriber: (config: OpenAICompatibleTranscriptionConfig) => RAGMediaTranscriber;
|
|
9
|
+
export declare const openaiOCR: (config: OpenAIOCRConfig) => RAGOCRProvider;
|
|
10
|
+
export declare const openaiTranscriber: (config: OpenAITranscriptionConfig) => RAGMediaTranscriber;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { RAGHTMXWorkflowRenderConfig } from "@absolutejs/ai";
|
|
2
|
-
|
|
2
|
+
import type { ResolvedRAGWorkflowRenderers } from "../../types/presentation";
|
|
3
3
|
export declare const resolveRAGWorkflowRenderers: (custom?: RAGHTMXWorkflowRenderConfig) => ResolvedRAGWorkflowRenderers;
|
|
@@ -3,7 +3,6 @@ export { createRAGHTMXConfig, createRAGHTMXWorkflowRenderConfig, } from "./htmxC
|
|
|
3
3
|
export { createRAGEmbeddingProvider, resolveRAGEmbeddingProvider, validateRAGEmbeddingDimensions, } from "./embedding";
|
|
4
4
|
export { applyRAGReranking, createHeuristicRAGReranker, createRAGReranker, resolveRAGReranker, } from "./reranking";
|
|
5
5
|
export { createCohereRAGReranker, createJinaRAGReranker, createVoyageRAGReranker, } from "./rerankerProviders";
|
|
6
|
-
export type { CrossEncoderRerankerConfig } from "./rerankerProviders";
|
|
7
6
|
export { applyRAGQueryTransform, createHeuristicRAGQueryTransform, createRAGQueryTransform, resolveRAGQueryTransform, } from "./queryTransforms";
|
|
8
7
|
export { createHeuristicRAGRetrievalStrategy } from "./retrievalStrategies";
|
|
9
8
|
export { createRAGAccessControl } from "./accessControl";
|
|
@@ -11,7 +10,7 @@ export { buildRAGLexicalHaystack, fuseRAGQueryResults, resolveRAGHybridSearchOpt
|
|
|
11
10
|
export { alibabaEmbeddings, deepseekEmbeddings, geminiEmbeddings, googleEmbeddings, metaEmbeddings, mistralaiEmbeddings, moonshotEmbeddings, ollamaEmbeddings, openaiCompatibleEmbeddings, openaiEmbeddings, xaiEmbeddings, } from "./embeddingProviders";
|
|
12
11
|
export { anthropicOCR, geminiOCR, ollamaOCR, ollamaTranscriber, openaiCompatibleOCR, openaiCompatibleTranscriber, openaiOCR, openaiTranscriber, } from "./extractorProviders";
|
|
13
12
|
export { createRAGGmailEmailSyncClient, createRAGLinkedGmailEmailSyncClient, createRAGGraphEmailSyncClient, createRAGIMAPEmailSyncClient, } from "./emailProviders";
|
|
14
|
-
export { createRAGGoogleContactsConnector
|
|
13
|
+
export { createRAGGoogleContactsConnector } from "./contactProviders";
|
|
15
14
|
export { createRAGFacebookPageConnector, createRAGInstagramBusinessConnector, } from "./socialProviders";
|
|
16
15
|
export { buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, buildRAGUpsertInputFromUploads, createBuiltinArchiveExpander, createEmailExtractor, createEPUBExtractor, createLegacyDocumentExtractor, createRAGPDFOCRExtractor, createRAGArchiveExpander, createRAGArchiveFileExtractor, createOfficeDocumentExtractor, createPDFFileExtractor, createRAGFileExtractor, createRAGFileExtractorRegistry, createRAGChunkingRegistry, createRAGImageOCRExtractor, createRAGMediaFileExtractor, createRAGMediaTranscriber, createRAGOCRProvider, createTextFileExtractor, loadRAGDocumentFromURL, loadRAGDocumentUpload, loadRAGDocumentsFromUploads, buildRAGUpsertInputFromURLs, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, loadRAGDocumentsFromURLs, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments, } from "./ingestion";
|
|
17
16
|
export { buildRAGContext } from "./types";
|
|
@@ -26,10 +25,8 @@ export { createSQLiteRAGStore } from "./adapters/sqlite";
|
|
|
26
25
|
export { resolveAbsoluteSQLiteVec, resolveAbsoluteSQLiteVecExtensionPath, } from "./resolveAbsoluteSQLiteVec";
|
|
27
26
|
export { createRAGVector, normalizeVector, querySimilarity, } from "./adapters/utils";
|
|
28
27
|
export type { SQLiteRAGSearchTraceStoreOptions } from "./quality";
|
|
29
|
-
export type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig, } from "
|
|
30
|
-
export type {
|
|
31
|
-
export type { GmailEmailSyncConfig, GraphEmailSyncConfig, IMAPEmailSyncConfig, } from "./emailProviders";
|
|
32
|
-
export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions, } from "./adapters/sqlite";
|
|
28
|
+
export type { AnthropicOCRConfig, CrossEncoderRerankerConfig, GeminiEmbeddingsConfig, GeminiOCRConfig, GmailEmailSyncConfig, GraphEmailSyncConfig, IMAPEmailSyncConfig, OllamaEmbeddingsConfig, OllamaOCRConfig, OllamaTranscriptionConfig, OpenAICompatibleEmbeddingsConfig, OpenAICompatibleOCRConfig, OpenAICompatibleTranscriptionConfig, OpenAIEmbeddingsConfig, OpenAIOCRConfig, OpenAITranscriptionConfig, } from "../../types/providers";
|
|
29
|
+
export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions, } from "../../types/adapters";
|
|
33
30
|
export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDocumentFileInput, RAGDirectoryIngestInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGDocumentUrlIngestInput, RAGDocumentUrlInput, RAGEmailSyncAttachment, RAGEmailSyncClient, RAGEmailSyncListInput, RAGEmailSyncListResult, RAGEmailSyncMessage, RAGEmailSyncSourceOptions, RAGLinkedConnectorSyncSourceOptions, RAGConnectorCheckpoint, RAGConnectorItem, RAGConnectorRuntime, RAGConnectorSyncInput, RAGConnectorSyncResult, RAGFeedSyncInput, RAGFeedSyncSourceOptions, RAGGitHubRepoSyncInput, RAGGitHubSyncSourceOptions, RAGSitemapSyncInput, RAGSitemapSyncSourceOptions, RAGSiteDiscoveryInput, RAGSiteDiscoverySyncSourceOptions, RAGStorageSyncClient, RAGStorageSyncFile, RAGStorageSyncListInput, RAGStorageSyncListResult, RAGStorageSyncObject, RAGStorageSyncSourceOptions, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGAnswerGroundingEvaluationCase, RAGAnswerGroundingEvaluationCaseResult, RAGAnswerGroundingEvaluationInput, RAGAnswerGroundingEvaluationResponse, RAGAnswerGroundingEvaluationSummary, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIngestResponse, RAGIndexedDocument, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGMutationResponse, RAGLexicalQueryInput, RAGOCRProvider, RAGOCRResult, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGPreparedDocument, RAGReranker, RAGRerankerCandidate, RAGRerankerComparison, RAGRerankerComparisonEntry, RAGRerankerComparisonSummary, RAGRerankerInput, RAGRerankerProvider, RAGRerankerProviderLike, RAGSearchRequest, RAGSyncManager, RAGSyncSchedule, RAGSyncScheduler, RAGSyncResponse, RAGSyncRunOptions, RAGSyncStateStore, RAGSyncSourceContext, RAGSyncSourceDefinition, RAGSyncSourceRecord, RAGSyncSourceRunResult, RAGDirectorySyncSourceOptions, RAGUrlSyncSourceOptions, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, } from "./types";
|
|
34
31
|
export type { RAGJobState, RAGJobStateStore, RAGPostgresNativeDiagnostics, RAGRetrievalComparisonCandidateInput, RAGRetrievalComparisonHistoryResponse, RAGRetrievalComparisonHistoryStore, RAGRetrievalComparisonRequest, RAGRetrievalComparisonResponse, RAGRetrievalComparisonRun, RAGSearchTraceGroupHistoryResponse, RAGSearchTraceHistoryResponse, RAGSearchTracePrunePreviewResponse, RAGSearchTracePruneHistoryResponse, RAGSearchTracePruneResponse, RAGSearchTracePruneInput, RAGSearchTracePrunePreview, RAGSearchTracePruneResult, RAGSearchTracePruneHistoryStore, RAGSearchTracePruneRun, RAGSearchTraceRetentionRuntime, RAGSearchTraceRetentionSchedule, RAGSearchTraceStats, RAGSearchTraceStatsResponse, } from "@absolutejs/ai";
|
|
35
32
|
export type * from "@absolutejs/ai";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { RAGAdminActionPresentation, RAGAdminActionRecord, RAGAdminJobPresentation, RAGAdminJobRecord, AIMessage, RAGAnswerGroundingCaseSnapshotPresentation, RAGAnswerGroundingEvaluationHistory, RAGAnswerGroundingEntityQualityView, RAGAnswerGroundingEvaluationResponse, RAGCorpusHealth, RAGCorpusHealthPresentation, RAGExtractorReadiness, RAGReadinessPresentation, RAGGroundingOverviewPresentation, RAGGroundingProviderCaseComparisonPresentation, RAGGroundingProviderOverviewPresentation, RAGGroundingProviderPresentation, RAGComparisonOverviewPresentation, RAGComparisonPresentation, RAGChunkGraph, RAGChunkExcerpts, RAGExcerptModeCounts, RAGExcerptSelection, RAGChunkGraphNavigation, RAGChunkStructure, RAGDocumentChunkPreview, RAGLabelValueRow, RAGRerankerComparisonEntry, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonRun, RAGRetrievalReleaseGroupHistoryPresentation, RAGRetrievalReleaseTimelineSummary, RAGRetrievalTrace, RAGQualityOverviewPresentation, RAGSectionRetrievalDiagnostic, RAGEvaluationCaseTracePresentation, RAGEvaluationEntityQualityView, RAGEvaluationHistory, RAGAnswerGroundingHistoryPresentation, RAGEvaluationHistoryPresentation, RAGEvaluationSuiteSnapshotHistory, RAGEvaluationSuiteSnapshotHistoryPresentation, RAGEvaluationSuiteSnapshotPresentation, RAGEntityQualityViewPresentation, RAGRerankerComparison, RAGAnswerWorkflowState, RAGRetrievalTracePresentation, RAGSource, RAGSourceLabels, RAGSourceGroup, RAGSourceSummary,
|
|
1
|
+
import type { RAGAdminActionPresentation, RAGAdminActionRecord, RAGAdminJobPresentation, RAGAdminJobRecord, AIMessage, RAGAnswerGroundingCaseSnapshotPresentation, RAGAnswerGroundingEvaluationHistory, RAGAnswerGroundingEntityQualityView, RAGAnswerGroundingEvaluationResponse, RAGCorpusHealth, RAGCorpusHealthPresentation, RAGExtractorReadiness, RAGReadinessPresentation, RAGGroundingOverviewPresentation, RAGGroundingProviderCaseComparisonPresentation, RAGGroundingProviderOverviewPresentation, RAGGroundingProviderPresentation, RAGComparisonOverviewPresentation, RAGComparisonPresentation, RAGChunkGraph, RAGChunkExcerpts, RAGExcerptModeCounts, RAGExcerptSelection, RAGChunkGraphNavigation, RAGChunkStructure, RAGDocumentChunkPreview, RAGLabelValueRow, RAGRerankerComparisonEntry, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonRun, RAGRetrievalReleaseGroupHistoryPresentation, RAGRetrievalReleaseTimelineSummary, RAGRetrievalTrace, RAGQualityOverviewPresentation, RAGSectionRetrievalDiagnostic, RAGEvaluationCaseTracePresentation, RAGEvaluationEntityQualityView, RAGEvaluationHistory, RAGAnswerGroundingHistoryPresentation, RAGEvaluationHistoryPresentation, RAGEvaluationSuiteSnapshotHistory, RAGEvaluationSuiteSnapshotHistoryPresentation, RAGEvaluationSuiteSnapshotPresentation, RAGEntityQualityViewPresentation, RAGRerankerComparison, RAGAnswerWorkflowState, RAGRetrievalTracePresentation, RAGSource, RAGSourceLabels, RAGSourceGroup, RAGSourceSummary, RAGSyncOverviewPresentation, RAGSyncSourcePresentation, RAGSyncSourceRecord } from "@absolutejs/ai";
|
|
2
|
+
import type { RAGStreamProgress } from "../../types/presentation";
|
|
3
|
+
export type { RAGStreamProgress } from "../../types/presentation";
|
|
2
4
|
import { buildRAGCitationReferenceMap, buildRAGCitations, buildRAGGroundedAnswer, buildRAGGroundedAnswerSectionSummaries, buildRAGGroundingReferences } from "./grounding";
|
|
3
5
|
export { buildRAGCitationReferenceMap, buildRAGCitations, buildRAGGroundedAnswer, buildRAGGroundedAnswerSectionSummaries, buildRAGGroundingReferences, };
|
|
4
6
|
export declare const buildRAGRetrievalTracePresentation: (trace?: RAGRetrievalTrace) => RAGRetrievalTracePresentation;
|
|
@@ -47,28 +49,6 @@ export declare const buildRAGRetrievedState: (messages: AIMessage[]) => {
|
|
|
47
49
|
} | null;
|
|
48
50
|
export declare const buildRAGSourceSummaries: (sources: RAGSource[]) => RAGSourceSummary[];
|
|
49
51
|
export declare const buildRAGSectionRetrievalDiagnostics: (sources: RAGSource[], trace?: RAGRetrievalTrace) => RAGSectionRetrievalDiagnostic[];
|
|
50
|
-
export type RAGStreamProgress = {
|
|
51
|
-
stage: RAGStreamStage;
|
|
52
|
-
conversationId?: string;
|
|
53
|
-
messageId?: string;
|
|
54
|
-
retrievalStartedAt?: number;
|
|
55
|
-
retrievedAt?: number;
|
|
56
|
-
retrievalDurationMs?: number;
|
|
57
|
-
hasContent: boolean;
|
|
58
|
-
hasRetrieved: boolean;
|
|
59
|
-
hasSources: boolean;
|
|
60
|
-
hasThinking: boolean;
|
|
61
|
-
hasToolCalls: boolean;
|
|
62
|
-
isComplete: boolean;
|
|
63
|
-
isError: boolean;
|
|
64
|
-
isIdle: boolean;
|
|
65
|
-
isRetrieving: boolean;
|
|
66
|
-
isRetrieved: boolean;
|
|
67
|
-
isStreaming: boolean;
|
|
68
|
-
isSubmitting: boolean;
|
|
69
|
-
sourceCount: number;
|
|
70
|
-
latestMessage: AIMessage | undefined;
|
|
71
|
-
};
|
|
72
52
|
export declare const buildRAGStreamProgress: ({ error, isStreaming, messages, }: {
|
|
73
53
|
error: string | null;
|
|
74
54
|
isStreaming: boolean;
|
|
@@ -88,7 +68,7 @@ export declare const resolveRAGStreamStage: ({ error, isStreaming, messages, }:
|
|
|
88
68
|
error: string | null;
|
|
89
69
|
isStreaming: boolean;
|
|
90
70
|
messages: AIMessage[];
|
|
91
|
-
}) => "error" | "
|
|
71
|
+
}) => "error" | "idle" | "submitting" | "retrieving" | "retrieved" | "streaming" | "complete";
|
|
92
72
|
export declare const buildRAGComparisonTraceSummaryRows: (entry: RAGRerankerComparisonEntry | RAGRetrievalComparisonEntry) => RAGLabelValueRow[];
|
|
93
73
|
export declare const buildRAGComparisonTraceDiffRows: (entry: RAGRerankerComparisonEntry | RAGRetrievalComparisonEntry, leader?: RAGRerankerComparisonEntry | RAGRetrievalComparisonEntry) => RAGLabelValueRow[];
|
|
94
74
|
export declare const buildRAGRetrievalComparisonPresentations: (comparison: RAGRetrievalComparison) => RAGComparisonPresentation[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SQLiteRAGAnswerGroundingEvaluationHistoryStoreOptions, SQLiteRAGEvaluationHistoryStoreOptions, SQLiteRAGEvaluationSuiteSnapshotHistoryStoreOptions, SQLiteRAGGovernanceStoreBundleOptions, SQLiteRAGRetrievalBaselineGatePolicyHistoryStoreOptions, SQLiteRAGRetrievalBaselineStoreOptions, SQLiteRAGRetrievalComparisonHistoryStoreOptions, SQLiteRAGRetrievalIncidentRemediationDecisionStoreOptions, SQLiteRAGRetrievalIncidentRemediationExecutionHistoryStoreOptions, SQLiteRAGRetrievalLaneHandoffAutoCompletePolicyHistoryStoreOptions, SQLiteRAGRetrievalLaneHandoffDecisionStoreOptions, SQLiteRAGRetrievalLaneHandoffIncidentHistoryStoreOptions, SQLiteRAGRetrievalLaneHandoffIncidentStoreOptions, SQLiteRAGRetrievalReleaseDecisionStoreOptions, SQLiteRAGRetrievalReleaseLaneEscalationPolicyHistoryStoreOptions, SQLiteRAGRetrievalReleaseLanePolicyHistoryStoreOptions, SQLiteRAGRetrievalReleaseIncidentStoreOptions, SQLiteRAGSearchTracePruneHistoryStoreOptions, SQLiteRAGSearchTraceStoreOptions, SQLiteRAGStoreMigrationOptions } from "../../types/quality";
|
|
2
|
+
export type * from "../../types/quality";
|
|
2
3
|
import type { RAGAnswerGroundingCaseDifficultyHistory, RAGAnswerGroundingCaseDifficultyHistoryStore, RAGAnswerGroundingCaseDifficultyRun, RAGAnswerGroundingCaseDifficultyRunDiff, RAGAnswerGroundingEvaluationCase, RAGAnswerGroundingEvaluationCaseDifficultyEntry, RAGAnswerGroundingEvaluationCaseResult, RAGAnswerGroundingEvaluationHistory, RAGAnswerGroundingEvaluationLeaderboardEntry, RAGAnswerGroundingEvaluationHistoryStore, RAGAnswerGroundingEvaluationInput, RAGAnswerGroundingEvaluationResponse, RAGAnswerGroundingEvaluationRun, RAGAnswerGroundingEvaluationRunDiff, RAGCollection, RAGEvaluationCase, RAGEvaluationCaseTraceSnapshot, RAGEvaluationCaseResult, RAGEvaluationHistory, RAGEvaluationHistoryStore, RAGEvaluationInput, RAGEvaluationLeaderboardEntry, RAGEvaluationResponse, RAGEvaluationRunDiff, RAGDocumentChunk, RAGEvaluationSuite, RAGEvaluationSuiteGenerationOptions, RAGEvaluationSuiteDatasetSummary, RAGEvaluationSuiteSnapshot, RAGEvaluationSuiteSnapshotDiff, RAGEvaluationSuiteSnapshotHistory, RAGEvaluationSuiteSnapshotHistoryStore, RAGEvaluationSuiteRun, RAGEvaluationEntityQualityView, RAGAnswerGroundingEntityQualityView, RAGRetrievalTraceSummaryRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalBaselineGatePolicy, RAGRetrievalBaselineGatePolicyHistoryRecord, RAGRetrievalBaselineGatePolicyHistoryStore, RAGRetrievalComparisonDecisionSummary, RAGRetrievalReleaseVerdict, RAGRetrievalComparisonHistoryStore, RAGRetrievalBaselineRecord, RAGRetrievalBaselineStore, RAGRetrievalLaneHandoffDecisionRecord, RAGRetrievalLaneHandoffDecisionStore, RAGRetrievalLaneHandoffIncidentHistoryRecord, RAGRetrievalLaneHandoffIncidentHistoryStore, RAGRetrievalLaneHandoffAutoCompletePolicyHistoryRecord, RAGRetrievalLaneHandoffAutoCompletePolicyHistoryStore, RAGRetrievalLaneHandoffIncidentRecord, RAGRetrievalLaneHandoffIncidentStore, RAGRetrievalIncidentRemediationDecisionRecord, RAGRetrievalIncidentRemediationDecisionStore, RAGRetrievalIncidentRemediationExecutionHistoryRecord, RAGRetrievalIncidentRemediationExecutionHistoryStore, RAGRetrievalReleaseDecisionRecord, RAGRetrievalReleaseLanePolicyHistoryRecord, RAGRetrievalReleaseLanePolicyHistoryStore, RAGRetrievalReleaseLaneEscalationPolicyHistoryRecord, RAGRetrievalReleaseLaneEscalationPolicyHistoryStore, RAGRetrievalReleaseDecisionStore, RAGRetrievalReleaseIncidentRecord, RAGRetrievalReleaseIncidentStore, RAGRetrievalComparisonRun, RAGRetrievalComparisonEntry, RAGRetrievalTrace, RAGRetrievalTraceComparisonSummary, RAGRetrievalTraceComparisonSummaryDiff, RAGRetrievalComparisonSummary, RAGRerankerCandidate, RAGRerankerComparison, RAGRerankerComparisonEntry, RAGRerankerComparisonSummary, RAGRerankerProviderLike, RAGRetrievalTraceTrend, RAGSearchTraceDiff, RAGSearchTraceGroupHistory, RAGSearchTraceHistory, RAGChatPluginConfig, RAGSearchTracePruneInput, RAGSearchTracePruneHistoryStore, RAGSearchTracePruneRun, RAGSearchTracePrunePreview, RAGSearchTracePruneResult, RAGSearchTraceRecord, RAGSearchTraceStats, RAGSearchTraceStore, RAGRemediationAction, RAGSource, RAGSQLiteStoreMigrationInspection, RAGSQLiteStoreMigrationResult } from "@absolutejs/ai";
|
|
3
4
|
export declare const buildRAGRetrievalReleaseVerdict: ({ groupKey, decisionSummary, }: {
|
|
4
5
|
groupKey?: string;
|
|
@@ -39,116 +40,9 @@ export declare const createRAGFileRetrievalBaselineGatePolicyHistoryStore: (path
|
|
|
39
40
|
export declare const createRAGFileRetrievalReleaseLaneEscalationPolicyHistoryStore: (path: string) => RAGRetrievalReleaseLaneEscalationPolicyHistoryStore;
|
|
40
41
|
export declare const createRAGFileSearchTraceStore: (path: string) => RAGSearchTraceStore;
|
|
41
42
|
export declare const createRAGFileSearchTracePruneHistoryStore: (path: string) => RAGSearchTracePruneHistoryStore;
|
|
42
|
-
export type SQLiteRAGSearchTraceStoreOptions = {
|
|
43
|
-
db?: Database;
|
|
44
|
-
path?: string;
|
|
45
|
-
tableName?: string;
|
|
46
|
-
};
|
|
47
|
-
export type SQLiteRAGEvaluationHistoryStoreOptions = {
|
|
48
|
-
db?: Database;
|
|
49
|
-
path?: string;
|
|
50
|
-
tableName?: string;
|
|
51
|
-
};
|
|
52
|
-
export type SQLiteRAGEvaluationSuiteSnapshotHistoryStoreOptions = {
|
|
53
|
-
db?: Database;
|
|
54
|
-
path?: string;
|
|
55
|
-
tableName?: string;
|
|
56
|
-
};
|
|
57
|
-
export type SQLiteRAGAnswerGroundingEvaluationHistoryStoreOptions = {
|
|
58
|
-
db?: Database;
|
|
59
|
-
path?: string;
|
|
60
|
-
tableName?: string;
|
|
61
|
-
};
|
|
62
|
-
export type SQLiteRAGSearchTracePruneHistoryStoreOptions = {
|
|
63
|
-
db?: Database;
|
|
64
|
-
path?: string;
|
|
65
|
-
tableName?: string;
|
|
66
|
-
};
|
|
67
|
-
export type SQLiteRAGRetrievalComparisonHistoryStoreOptions = {
|
|
68
|
-
db?: Database;
|
|
69
|
-
path?: string;
|
|
70
|
-
tableName?: string;
|
|
71
|
-
};
|
|
72
|
-
export type SQLiteRAGRetrievalReleaseDecisionStoreOptions = {
|
|
73
|
-
db?: Database;
|
|
74
|
-
path?: string;
|
|
75
|
-
tableName?: string;
|
|
76
|
-
};
|
|
77
|
-
export type SQLiteRAGRetrievalBaselineStoreOptions = {
|
|
78
|
-
db?: Database;
|
|
79
|
-
path?: string;
|
|
80
|
-
tableName?: string;
|
|
81
|
-
};
|
|
82
|
-
export type SQLiteRAGRetrievalReleaseIncidentStoreOptions = {
|
|
83
|
-
db?: Database;
|
|
84
|
-
path?: string;
|
|
85
|
-
tableName?: string;
|
|
86
|
-
};
|
|
87
|
-
export type SQLiteRAGRetrievalLaneHandoffDecisionStoreOptions = {
|
|
88
|
-
db?: Database;
|
|
89
|
-
path?: string;
|
|
90
|
-
tableName?: string;
|
|
91
|
-
};
|
|
92
|
-
export type SQLiteRAGRetrievalLaneHandoffIncidentStoreOptions = {
|
|
93
|
-
db?: Database;
|
|
94
|
-
path?: string;
|
|
95
|
-
tableName?: string;
|
|
96
|
-
};
|
|
97
|
-
export type SQLiteRAGRetrievalLaneHandoffIncidentHistoryStoreOptions = {
|
|
98
|
-
db?: Database;
|
|
99
|
-
path?: string;
|
|
100
|
-
tableName?: string;
|
|
101
|
-
};
|
|
102
|
-
export type SQLiteRAGRetrievalIncidentRemediationDecisionStoreOptions = {
|
|
103
|
-
db?: Database;
|
|
104
|
-
path?: string;
|
|
105
|
-
tableName?: string;
|
|
106
|
-
};
|
|
107
|
-
export type SQLiteRAGRetrievalIncidentRemediationExecutionHistoryStoreOptions = {
|
|
108
|
-
db?: Database;
|
|
109
|
-
path?: string;
|
|
110
|
-
tableName?: string;
|
|
111
|
-
};
|
|
112
|
-
export type SQLiteRAGRetrievalLaneHandoffAutoCompletePolicyHistoryStoreOptions = {
|
|
113
|
-
db?: Database;
|
|
114
|
-
path?: string;
|
|
115
|
-
tableName?: string;
|
|
116
|
-
};
|
|
117
|
-
export type SQLiteRAGRetrievalReleaseLanePolicyHistoryStoreOptions = {
|
|
118
|
-
db?: Database;
|
|
119
|
-
path?: string;
|
|
120
|
-
tableName?: string;
|
|
121
|
-
};
|
|
122
|
-
export type SQLiteRAGRetrievalBaselineGatePolicyHistoryStoreOptions = {
|
|
123
|
-
db?: Database;
|
|
124
|
-
path?: string;
|
|
125
|
-
tableName?: string;
|
|
126
|
-
};
|
|
127
|
-
export type SQLiteRAGRetrievalReleaseLaneEscalationPolicyHistoryStoreOptions = {
|
|
128
|
-
db?: Database;
|
|
129
|
-
path?: string;
|
|
130
|
-
tableName?: string;
|
|
131
|
-
};
|
|
132
|
-
export type SQLiteRAGGovernanceStoreBundleOptions = {
|
|
133
|
-
db?: Database;
|
|
134
|
-
path?: string;
|
|
135
|
-
tablePrefix?: string;
|
|
136
|
-
};
|
|
137
43
|
export declare const createRAGSQLiteEvaluationHistoryStore: (options: SQLiteRAGEvaluationHistoryStoreOptions) => RAGEvaluationHistoryStore;
|
|
138
44
|
export declare const createRAGSQLiteEvaluationSuiteSnapshotHistoryStore: (options: SQLiteRAGEvaluationSuiteSnapshotHistoryStoreOptions) => RAGEvaluationSuiteSnapshotHistoryStore;
|
|
139
45
|
export declare const createRAGSQLiteAnswerGroundingEvaluationHistoryStore: (options: SQLiteRAGAnswerGroundingEvaluationHistoryStoreOptions) => RAGAnswerGroundingEvaluationHistoryStore;
|
|
140
|
-
type SQLiteStoreMigrationDescriptor = {
|
|
141
|
-
tableName: string;
|
|
142
|
-
columns: Array<{
|
|
143
|
-
name: string;
|
|
144
|
-
definition: string;
|
|
145
|
-
}>;
|
|
146
|
-
};
|
|
147
|
-
export type SQLiteRAGStoreMigrationOptions = {
|
|
148
|
-
db?: Database;
|
|
149
|
-
path?: string;
|
|
150
|
-
descriptors?: SQLiteStoreMigrationDescriptor[];
|
|
151
|
-
};
|
|
152
46
|
export declare const inspectRAGSQLiteStoreMigrations: (options?: SQLiteRAGStoreMigrationOptions) => RAGSQLiteStoreMigrationInspection;
|
|
153
47
|
export declare const applyRAGSQLiteStoreMigrations: (options?: SQLiteRAGStoreMigrationOptions) => RAGSQLiteStoreMigrationResult;
|
|
154
48
|
export declare const createRAGSQLiteSearchTraceStore: (options: SQLiteRAGSearchTraceStoreOptions) => RAGSearchTraceStore;
|
|
@@ -604,4 +498,3 @@ export declare const summarizeRAGEvaluationCase: ({ caseIndex, caseInput, query,
|
|
|
604
498
|
}) => RAGEvaluationCaseResult;
|
|
605
499
|
export declare const summarizeRAGRerankerComparison: (entries: RAGRerankerComparisonEntry[]) => RAGRerankerComparisonSummary;
|
|
606
500
|
export declare const summarizeRAGRetrievalComparison: (entries: RAGRetrievalComparisonEntry[]) => RAGRetrievalComparisonSummary;
|
|
607
|
-
export {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import type { RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult
|
|
2
|
-
|
|
3
|
-
transform: RAGQueryTransformer;
|
|
4
|
-
defaultModel?: string;
|
|
5
|
-
providerName?: string;
|
|
6
|
-
};
|
|
7
|
-
export type HeuristicRAGQueryTransformOptions = {
|
|
8
|
-
defaultModel?: string;
|
|
9
|
-
providerName?: string;
|
|
10
|
-
};
|
|
1
|
+
import type { RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult } from "@absolutejs/ai";
|
|
2
|
+
import type { CreateRAGQueryTransformOptions, HeuristicRAGQueryTransformOptions } from "../../types/retrieval";
|
|
11
3
|
export declare const createHeuristicRAGQueryTransform: (options?: HeuristicRAGQueryTransformOptions) => RAGQueryTransformProvider;
|
|
12
4
|
export declare const createRAGQueryTransform: (options: CreateRAGQueryTransformOptions) => RAGQueryTransformProvider;
|
|
13
5
|
export declare const resolveRAGQueryTransform: (queryTransform: RAGQueryTransformProviderLike | undefined) => RAGQueryTransformProvider | null;
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import type { RAGRerankerProvider } from "@absolutejs/ai";
|
|
2
|
-
type
|
|
3
|
-
export type CrossEncoderRerankerConfig = {
|
|
4
|
-
apiKey: string;
|
|
5
|
-
defaultModel?: string;
|
|
6
|
-
baseUrl?: string;
|
|
7
|
-
fetch?: FetchLike;
|
|
8
|
-
/** Extra headers (e.g. API version) merged into the request. */
|
|
9
|
-
headers?: Record<string, string>;
|
|
10
|
-
};
|
|
2
|
+
import type { CrossEncoderRerankerConfig } from "../../types/providers";
|
|
11
3
|
export declare const createCohereRAGReranker: (config: CrossEncoderRerankerConfig) => RAGRerankerProvider;
|
|
12
4
|
export declare const createVoyageRAGReranker: (config: CrossEncoderRerankerConfig) => RAGRerankerProvider;
|
|
13
5
|
export declare const createJinaRAGReranker: (config: CrossEncoderRerankerConfig) => RAGRerankerProvider;
|
|
14
|
-
export {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import type { RAGQueryResult,
|
|
2
|
-
|
|
3
|
-
rerank: RAGReranker;
|
|
4
|
-
defaultModel?: string;
|
|
5
|
-
providerName?: string;
|
|
6
|
-
};
|
|
7
|
-
export type HeuristicRAGRerankerOptions = {
|
|
8
|
-
defaultModel?: string;
|
|
9
|
-
providerName?: string;
|
|
10
|
-
};
|
|
1
|
+
import type { RAGQueryResult, RAGRerankerInput, RAGRerankerProvider, RAGRerankerProviderLike } from "@absolutejs/ai";
|
|
2
|
+
import type { CreateRAGRerankerOptions, HeuristicRAGRerankerOptions } from "../../types/retrieval";
|
|
11
3
|
export declare const applyRAGReranking: ({ input, reranker, }: {
|
|
12
4
|
input: RAGRerankerInput;
|
|
13
5
|
reranker?: RAGRerankerProviderLike;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import type { RAGRetrievalStrategyProvider } from "@absolutejs/ai";
|
|
2
|
-
|
|
3
|
-
providerName?: string;
|
|
4
|
-
defaultLabel?: string;
|
|
5
|
-
};
|
|
2
|
+
import type { HeuristicRAGRetrievalStrategyOptions } from "../../types/retrieval";
|
|
6
3
|
export declare const createHeuristicRAGRetrievalStrategy: (options?: HeuristicRAGRetrievalStrategyOptions) => RAGRetrievalStrategyProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S3Client } from "bun";
|
|
2
2
|
import type { CreateRAGSyncManagerOptions, RAGSyncSourceDiagnostics, RAGSyncExtractionRecoveryHandlers, RAGSyncExtractionRecoveryPreview, RAGSyncExtractionRecoveryResult, RAGSyncConflictResolutionPreview, RAGSyncConflictResolutionResult, RAGSyncConflictResolutionStrategy, RAGDirectorySyncSourceOptions, RAGStorageSyncClient, RAGStorageSyncSourceOptions, RAGEmailSyncClient, RAGEmailSyncMessage, RAGEmailSyncSourceOptions, RAGGmailLinkedEmailSyncSourceOptions, RAGFeedSyncSourceOptions, RAGGitHubSyncSourceOptions, RAGSitemapSyncSourceOptions, RAGSiteDiscoverySyncSourceOptions, RAGSyncSchedule, RAGSyncScheduler, RAGSyncStateStore, RAGSyncManager, RAGSyncSourceDefinition, RAGSyncSourceReconciliationSummary, RAGUrlSyncSourceOptions } from "@absolutejs/ai";
|
|
3
|
-
import type { RAGLinkedConnectorSyncSourceOptions } from "
|
|
3
|
+
import type { RAGLinkedConnectorSyncSourceOptions } from "../../types/sync";
|
|
4
4
|
export declare const previewRAGSyncExtractionRecovery: (input: {
|
|
5
5
|
diagnostics?: RAGSyncSourceDiagnostics;
|
|
6
6
|
}) => RAGSyncExtractionRecoveryPreview;
|
|
@@ -1,33 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type RAGLinkedConnectorSyncSourceOptions
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
runtime: RAGConnectorRuntime;
|
|
6
|
-
resolver: RAGLinkedProviderCredentialResolver;
|
|
7
|
-
ownerRef: string;
|
|
8
|
-
bindingId?: string;
|
|
9
|
-
externalAccountId?: string;
|
|
10
|
-
purpose?: RAGLinkedProviderResolutionPurpose;
|
|
11
|
-
requiredScopes?: string[];
|
|
12
|
-
minValidityMs?: number;
|
|
13
|
-
description?: string;
|
|
14
|
-
maxItemsPerRun?: number;
|
|
15
|
-
baseMetadata?: Record<string, unknown>;
|
|
16
|
-
defaultChunking?: RAGChunkingOptions;
|
|
17
|
-
chunkingRegistry?: RAGChunkingRegistryLike;
|
|
18
|
-
extractors?: RAGFileExtractor[];
|
|
19
|
-
extractorRegistry?: RAGFileExtractorRegistryLike;
|
|
20
|
-
metadata?: Record<string, unknown>;
|
|
21
|
-
retryAttempts?: number;
|
|
22
|
-
retryDelayMs?: number;
|
|
23
|
-
};
|
|
1
|
+
import type { RAGQueryResult } from "@absolutejs/ai";
|
|
2
|
+
export type { RAGLinkedConnectorSyncSourceOptions } from "../../types/sync";
|
|
24
3
|
export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGDocumentChunk, RAGDocumentChunkEmbeddingVariant, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDirectoryIngestInput, RAGDirectorySyncSourceOptions, RAGDocumentFileInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGLexicalQueryInput, RAGDocumentUrlInput, RAGDocumentUrlIngestInput, RAGEmailSyncAttachment, RAGEmailSyncClient, RAGEmailSyncListInput, RAGEmailSyncListResult, RAGEmailSyncMessage, RAGEmailSyncSourceOptions, RAGConnectorCheckpoint, RAGConnectorItem, RAGConnectorRuntime, RAGConnectorSyncInput, RAGConnectorSyncResult, RAGFeedSyncInput, RAGFeedSyncSourceOptions, RAGGitHubRepoSyncInput, RAGGitHubSyncSourceOptions, RAGSitemapSyncInput, RAGSitemapSyncSourceOptions, RAGSiteDiscoveryInput, RAGSiteDiscoverySyncSourceOptions, RAGStorageSyncClient, RAGStorageSyncFile, RAGStorageSyncListInput, RAGStorageSyncListResult, RAGStorageSyncObject, RAGStorageSyncSourceOptions, RAGOCRProvider, RAGOCRResult, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGSearchRequest, RAGSyncManager, RAGSyncRunOptions, RAGSyncSchedule, RAGSyncScheduler, RAGSyncResponse, RAGSyncStateStore, RAGSyncSourceContext, RAGSyncSourceDefinition, RAGSyncSourceRecord, RAGSyncSourceRunResult, RAGUrlSyncSourceOptions, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGAnswerGroundingEvaluationCase, RAGAnswerGroundingEvaluationCaseDifficultyEntry, RAGAnswerGroundingCaseDifficultyDiffEntry, RAGAnswerGroundingCaseDifficultyHistory, RAGAnswerGroundingCaseDifficultyHistoryStore, RAGAnswerGroundingCaseDifficultyRun, RAGAnswerGroundingCaseDifficultyRunDiff, RAGAnswerGroundingEvaluationCaseDiff, RAGAnswerGroundingEvaluationCaseResult, RAGAnswerGroundingEvaluationHistory, RAGAnswerGroundingEvaluationLeaderboardEntry, RAGAnswerGroundingEvaluationHistoryStore, RAGAnswerGroundingEvaluationInput, RAGAnswerGroundingEvaluationResponse, RAGAnswerGroundingEvaluationRun, RAGAnswerGroundingEvaluationRunDiff, RAGAnswerGroundingEvaluationSummary, RAGEvaluationCase, RAGEvaluationCaseDiff, RAGEvaluationHistory, RAGEvaluationHistoryStore, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationRunDiff, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, } from "@absolutejs/ai";
|
|
25
|
-
export type InternalRAGStoredChunk
|
|
26
|
-
|
|
27
|
-
sourceId: string;
|
|
28
|
-
};
|
|
29
|
-
export type { RAGUpsertInput as RAGDocumentBatch };
|
|
30
|
-
export type { RAGQueryInput as RAGQueryParams };
|
|
31
|
-
export type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig, } from "./embeddingProviders";
|
|
4
|
+
export type { InternalRAGStoredChunk, RAGDocumentBatch, RAGQueryParams, } from "../../types/core";
|
|
5
|
+
export type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig, } from "../../types/providers";
|
|
32
6
|
export type { RAGReranker, RAGRerankerCandidate, RAGRerankerComparison, RAGRerankerComparisonEntry, RAGRerankerComparisonSummary, RAGRerankerInput, RAGRerankerProvider, RAGRerankerProviderLike, } from "@absolutejs/ai";
|
|
33
7
|
export declare const buildRAGContext: (hits: RAGQueryResult[]) => string;
|
|
@@ -206,7 +206,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
206
206
|
persistTrace?: boolean | undefined;
|
|
207
207
|
traceGroupKey?: string | undefined;
|
|
208
208
|
traceTags?: string[] | undefined;
|
|
209
|
-
}) => Promise<import("
|
|
209
|
+
}) => Promise<import("../client").RAGDetailedSearchResponse>;
|
|
210
210
|
setResults: import("react").Dispatch<import("react").SetStateAction<import("@absolutejs/ai").RAGSource[]>>;
|
|
211
211
|
trace: import("@absolutejs/ai").RAGRetrievalTrace | undefined;
|
|
212
212
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RAGSearchRequest, RAGSource } from "@absolutejs/ai";
|
|
2
|
-
import {
|
|
2
|
+
import type { RAGDetailedSearchResponse } from "../../types/client";
|
|
3
3
|
type SearchRequest = Omit<RAGSearchRequest, "includeTrace">;
|
|
4
4
|
export declare const useRAGSearch: (path: string) => {
|
|
5
5
|
error: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AIMessage } from "@absolutejs/ai";
|
|
2
|
-
import { type RAGStreamProgress } from "
|
|
2
|
+
import { type RAGStreamProgress } from "../rag/workflowState";
|
|
3
3
|
export declare const useRAGStreamProgress: (params: {
|
|
4
4
|
error: string | null;
|
|
5
5
|
isStreaming: boolean;
|
|
@@ -208,7 +208,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
208
208
|
persistTrace?: boolean | undefined;
|
|
209
209
|
traceGroupKey?: string | undefined;
|
|
210
210
|
traceTags?: string[] | undefined;
|
|
211
|
-
}) => Promise<import("
|
|
211
|
+
}) => Promise<import("../client").RAGDetailedSearchResponse>;
|
|
212
212
|
trace: import("svelte/store").Writable<import("@absolutejs/ai").RAGRetrievalTrace | undefined>;
|
|
213
213
|
};
|
|
214
214
|
sources: {
|
|
@@ -245,7 +245,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
245
245
|
isStreaming: import("svelte/store").Readable<boolean>;
|
|
246
246
|
latestAssistantMessage: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage | undefined>;
|
|
247
247
|
messages: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage[]>;
|
|
248
|
-
progress: import("svelte/store").Readable<import("
|
|
248
|
+
progress: import("svelte/store").Readable<import("../rag/presentation").RAGStreamProgress>;
|
|
249
249
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
250
250
|
retrieval: import("svelte/store").Readable<import("@absolutejs/ai").RAGRetrievedState | null>;
|
|
251
251
|
sourceGroups: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceGroup[]>;
|
|
@@ -274,7 +274,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
274
274
|
isStreaming: import("svelte/store").Readable<boolean>;
|
|
275
275
|
latestAssistantMessage: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage | undefined>;
|
|
276
276
|
messages: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage[]>;
|
|
277
|
-
progress: import("svelte/store").Readable<import("
|
|
277
|
+
progress: import("svelte/store").Readable<import("../rag/presentation").RAGStreamProgress>;
|
|
278
278
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
279
279
|
retrieval: import("svelte/store").Readable<import("@absolutejs/ai").RAGRetrievedState | null>;
|
|
280
280
|
sourceGroups: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceGroup[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RAGSearchRequest, RAGSource } from "@absolutejs/ai";
|
|
2
|
-
import {
|
|
2
|
+
import type { RAGDetailedSearchResponse } from "../../types/client";
|
|
3
3
|
type SearchRequest = Omit<RAGSearchRequest, "includeTrace">;
|
|
4
4
|
export declare const createRAGSearch: (path: string) => {
|
|
5
5
|
error: import("svelte/store").Writable<string | null>;
|
|
@@ -13,7 +13,7 @@ export declare const createRAGStream: (path: string, conversationId?: string) =>
|
|
|
13
13
|
isStreaming: import("svelte/store").Readable<boolean>;
|
|
14
14
|
latestAssistantMessage: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage | undefined>;
|
|
15
15
|
messages: import("svelte/store").Readable<import("@absolutejs/ai").AIMessage[]>;
|
|
16
|
-
progress: import("svelte/store").Readable<import("
|
|
16
|
+
progress: import("svelte/store").Readable<import("../rag/presentation").RAGStreamProgress>;
|
|
17
17
|
query: (content: string, attachments?: AIAttachment[]) => void;
|
|
18
18
|
retrieval: import("svelte/store").Readable<import("@absolutejs/ai").RAGRetrievedState | null>;
|
|
19
19
|
sourceGroups: import("svelte/store").Readable<import("@absolutejs/ai").RAGSourceGroup[]>;
|