@anvia/core 1.0.1 → 1.0.3
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/README.md +28 -0
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +5 -4
- package/dist/{agent-qRKa3ibC.d.ts → agent-DYfzP-n5.d.ts} +1 -1
- package/dist/chunk-4EWTDOLR.js +412 -0
- package/dist/chunk-4EWTDOLR.js.map +1 -0
- package/dist/{chunk-E2J7MLAB.js → chunk-5TIXGU5U.js} +8 -6
- package/dist/chunk-5TIXGU5U.js.map +1 -0
- package/dist/{chunk-GBCKSWQF.js → chunk-AR2K73CJ.js} +2 -1
- package/dist/chunk-AR2K73CJ.js.map +1 -0
- package/dist/{chunk-YFJ4NHV6.js → chunk-LZD36ZAP.js} +86 -1
- package/dist/chunk-LZD36ZAP.js.map +1 -0
- package/dist/{chunk-EO2GECYH.js → chunk-OIB3URVG.js} +2 -2
- package/dist/{chunk-IWJK7JB5.js → chunk-VSTJNHOZ.js} +2 -2
- package/dist/documents/index.d.ts +2 -0
- package/dist/documents/index.js +6 -335
- package/dist/documents/index.js.map +1 -1
- package/dist/evals/index.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -5
- package/dist/internal/agent.d.ts +2 -2
- package/dist/internal/agent.js +5 -4
- package/dist/internal/agent.js.map +1 -1
- package/dist/observability/index.d.ts +1 -1
- package/dist/observability/index.js +1 -1
- package/dist/pipeline/index.d.ts +2 -2
- package/dist/skills/index.js +4 -3
- package/dist/text-document-B-X7Vxq1.d.ts +32 -0
- package/dist/tool/index.js +3 -2
- package/dist/{types-CLCLFpAL.d.ts → types-BUEZMBhO.d.ts} +1 -0
- package/dist/vector-store/index.d.ts +25 -5
- package/dist/vector-store/index.js +6 -1
- package/package.json +1 -1
- package/dist/chunk-E2J7MLAB.js.map +0 -1
- package/dist/chunk-GBCKSWQF.js.map +0 -1
- package/dist/chunk-YFJ4NHV6.js.map +0 -1
- /package/dist/{chunk-EO2GECYH.js.map → chunk-OIB3URVG.js.map} +0 -0
- /package/dist/{chunk-IWJK7JB5.js.map → chunk-VSTJNHOZ.js.map} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { V as VectorMetadata, b as VectorMetadataValue, a as EmbeddedDocument } from '../types-Cr4uiYo5.js';
|
|
1
|
+
import { V as VectorMetadata, b as VectorMetadataValue, E as EmbeddingModel, a as EmbeddedDocument } from '../types-Cr4uiYo5.js';
|
|
2
2
|
import { T as Tool } from '../tool-BpqpoRSE.js';
|
|
3
|
-
import { V as VectorFilter, R as RetrieveDocumentsOptions, a as VectorSearchResult, f as RetrieveHybridDocumentsOptions,
|
|
3
|
+
import { V as VectorFilter, d as VectorStore, R as RetrieveDocumentsOptions, a as VectorSearchResult, f as RetrieveHybridDocumentsOptions, I as IndexStrategy, g as VectorStoreUpsertOptions, h as VectorSearchRequest, b as VectorInspectRequest, c as VectorInspectPage, i as VectorSearchToolOptions } from '../types-CXNE592e.js';
|
|
4
4
|
export { D as DenseVectorSearchToolOptions, j as HybridVectorSearchRequest, k as HybridVectorSearchToolOptions, H as HybridVectorStore, L as LshOptions, l as RetrieveDocumentsBaseOptions, e as VectorFusion, m as VectorInspectItem, n as VectorMetric, o as VectorSearchToolBaseOptions } from '../types-CXNE592e.js';
|
|
5
|
+
import { b as RetrySetting } from '../retry-CjvSlKGW.js';
|
|
6
|
+
import { J as JsonObject } from '../types-DgvozfPc.js';
|
|
7
|
+
import { T as TextDocument, b as TextDocumentChunkingOptions } from '../text-document-B-X7Vxq1.js';
|
|
5
8
|
import '../model-call-options-CZkSw_xN.js';
|
|
6
|
-
import '../retry-CjvSlKGW.js';
|
|
7
|
-
import '../types-DgvozfPc.js';
|
|
8
9
|
|
|
9
10
|
declare const vectorFilter: {
|
|
10
11
|
eq(key: string, value: VectorMetadataValue): VectorFilter;
|
|
@@ -15,6 +16,25 @@ declare const vectorFilter: {
|
|
|
15
16
|
};
|
|
16
17
|
declare function matchesVectorFilter(metadata: VectorMetadata | undefined, filter: VectorFilter | undefined): boolean;
|
|
17
18
|
|
|
19
|
+
type IngestVectorDocumentsOptions<Metadata extends VectorMetadata = VectorMetadata> = Readonly<{
|
|
20
|
+
store: VectorStore<TextDocument<Metadata>, Metadata>;
|
|
21
|
+
documents: readonly TextDocument<Metadata>[];
|
|
22
|
+
embeddingModel: EmbeddingModel;
|
|
23
|
+
chunking?: TextDocumentChunkingOptions | undefined;
|
|
24
|
+
retries?: RetrySetting | undefined;
|
|
25
|
+
concurrency?: number | undefined;
|
|
26
|
+
providerOptions?: JsonObject | undefined;
|
|
27
|
+
abortSignal?: AbortSignal | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
type IngestVectorTextOptions<Metadata extends VectorMetadata = VectorMetadata> = Omit<IngestVectorDocumentsOptions<Metadata>, "documents"> & Readonly<{
|
|
30
|
+
document: TextDocument<Metadata>;
|
|
31
|
+
}>;
|
|
32
|
+
type IngestVectorDocumentsResult<Metadata extends VectorMetadata = VectorMetadata> = Readonly<{
|
|
33
|
+
documents: readonly EmbeddedDocument<TextDocument<Metadata>, Metadata>[];
|
|
34
|
+
}>;
|
|
35
|
+
declare function ingestVectorText<Metadata extends VectorMetadata = VectorMetadata>(options: IngestVectorTextOptions<Metadata>): Promise<IngestVectorDocumentsResult<Metadata>>;
|
|
36
|
+
declare function ingestVectorDocuments<Metadata extends VectorMetadata = VectorMetadata>(options: IngestVectorDocumentsOptions<Metadata>): Promise<IngestVectorDocumentsResult<Metadata>>;
|
|
37
|
+
|
|
18
38
|
declare function retrieveDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(options: RetrieveDocumentsOptions<T, Metadata>): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
19
39
|
declare function retrieveDocuments<T, Metadata extends VectorMetadata = VectorMetadata>(options: RetrieveHybridDocumentsOptions<T, Metadata>): Promise<Array<VectorSearchResult<T, Metadata>>>;
|
|
20
40
|
|
|
@@ -55,4 +75,4 @@ declare function createVectorSearchTool<T, Metadata extends VectorMetadata>(opti
|
|
|
55
75
|
topK?: number;
|
|
56
76
|
}, Array<VectorSearchResult<T, Metadata>>>;
|
|
57
77
|
|
|
58
|
-
export { InMemoryVectorStore, type InMemoryVectorStoreFromDocumentsOptions, type InMemoryVectorStoreOptions, IndexStrategy, RetrieveDocumentsOptions, RetrieveHybridDocumentsOptions, VectorFilter, VectorInspectPage, VectorInspectRequest, VectorSearchRequest, VectorSearchResult, VectorSearchToolOptions, VectorStore, VectorStoreUpsertOptions, createVectorSearchTool, matchesVectorFilter, retrieveDocuments, vectorFilter };
|
|
78
|
+
export { InMemoryVectorStore, type InMemoryVectorStoreFromDocumentsOptions, type InMemoryVectorStoreOptions, IndexStrategy, type IngestVectorDocumentsOptions, type IngestVectorDocumentsResult, type IngestVectorTextOptions, RetrieveDocumentsOptions, RetrieveHybridDocumentsOptions, VectorFilter, VectorInspectPage, VectorInspectRequest, VectorSearchRequest, VectorSearchResult, VectorSearchToolOptions, VectorStore, VectorStoreUpsertOptions, createVectorSearchTool, ingestVectorDocuments, ingestVectorText, matchesVectorFilter, retrieveDocuments, vectorFilter };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InMemoryVectorStore,
|
|
3
3
|
createVectorSearchTool,
|
|
4
|
+
ingestVectorDocuments,
|
|
5
|
+
ingestVectorText,
|
|
4
6
|
matchesVectorFilter,
|
|
5
7
|
retrieveDocuments,
|
|
6
8
|
vectorFilter
|
|
7
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-LZD36ZAP.js";
|
|
10
|
+
import "../chunk-4EWTDOLR.js";
|
|
8
11
|
import "../chunk-K5L7R7XM.js";
|
|
9
12
|
import "../chunk-IZNOP6JG.js";
|
|
10
13
|
import "../chunk-QGX73TSQ.js";
|
|
@@ -13,6 +16,8 @@ import "../chunk-3RWESPUG.js";
|
|
|
13
16
|
export {
|
|
14
17
|
InMemoryVectorStore,
|
|
15
18
|
createVectorSearchTool,
|
|
19
|
+
ingestVectorDocuments,
|
|
20
|
+
ingestVectorText,
|
|
16
21
|
matchesVectorFilter,
|
|
17
22
|
retrieveDocuments,
|
|
18
23
|
vectorFilter
|