@crewdle/web-sdk-types 1.0.19 → 1.0.21

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.
@@ -1,4 +1,3 @@
1
- import { IVectorDatabaseSearchResult } from '../vector-database';
2
1
  import { IJobParameters, IJobResult } from '../job';
3
2
  /**
4
3
  * The AI prompt source Enum
@@ -29,6 +28,37 @@ export interface IPromptHistory {
29
28
  */
30
29
  message: string;
31
30
  }
31
+ /**
32
+ * The AI prompt function parameters Interface
33
+ * Represents the parameters for a prompt function.
34
+ * @category AI
35
+ */
36
+ export interface IPromptFunctionParams {
37
+ [key: string]: {
38
+ type: 'string' | 'number' | 'boolean';
39
+ };
40
+ }
41
+ /**
42
+ * The AI prompt function Interface
43
+ * Represents a function that can be called by the LLM.
44
+ * @category AI
45
+ */
46
+ export interface IPromptFunction {
47
+ /**
48
+ * The function description.
49
+ */
50
+ description: string;
51
+ /**
52
+ * The function parameters.
53
+ */
54
+ params?: IPromptFunctionParams;
55
+ /**
56
+ * The function callback.
57
+ */
58
+ callback: (params?: {
59
+ [key: string]: string | number | boolean;
60
+ }) => string | Promise<string>;
61
+ }
32
62
  /**
33
63
  * The AI prompt options Interface
34
64
  * Represents the options for an AI prompt.
@@ -51,6 +81,10 @@ export interface IPromptOptions {
51
81
  * The temperature for the LLM.
52
82
  */
53
83
  temperature?: number;
84
+ /**
85
+ * The functions that can be called by the LLM.
86
+ */
87
+ functions?: Map<string, IPromptFunction>;
54
88
  }
55
89
  /**
56
90
  * The AI prompt type text
@@ -73,7 +107,7 @@ export interface IPromptResult {
73
107
  /**
74
108
  * The relevant context used by the AI job.
75
109
  */
76
- context?: IVectorDatabaseSearchResult[];
110
+ context?: ISearchResult[];
77
111
  /**
78
112
  * The tokens used by the AI job.
79
113
  */
@@ -105,3 +139,40 @@ export interface IJobResultAI extends IJobResult, IPromptResult {
105
139
  */
106
140
  index?: number;
107
141
  }
142
+ /**
143
+ * Represents a search result.
144
+ * @category AI
145
+ */
146
+ export interface ISearchResult {
147
+ /**
148
+ * The content of the search result.
149
+ */
150
+ content: string;
151
+ /**
152
+ * The relevance of the search result.
153
+ * The relevance is a number between 0 and 1, where 1 is the most relevant.
154
+ */
155
+ relevance: number;
156
+ /**
157
+ * The path name of the document containing the search result.
158
+ */
159
+ pathName: string;
160
+ }
161
+ /**
162
+ * Represents a content index.
163
+ * @category AI
164
+ */
165
+ export interface IIndex {
166
+ /**
167
+ * The content of the index.
168
+ */
169
+ content: string;
170
+ /**
171
+ * The start index of the content.
172
+ */
173
+ start: number;
174
+ /**
175
+ * The length of the content.
176
+ */
177
+ length: number;
178
+ }
@@ -5,7 +5,9 @@ import { IJobParametersAI, IJobResultAI } from './GenerativeAI';
5
5
  * @category AI
6
6
  */
7
7
  export declare enum GenerativeAIModelInputType {
8
- Text = "text"
8
+ Text = "text",
9
+ Audio = "audio",
10
+ Image = "image"
9
11
  }
10
12
  /**
11
13
  * The generative AI model output types.
@@ -13,7 +15,51 @@ export declare enum GenerativeAIModelInputType {
13
15
  */
14
16
  export declare enum GenerativeAIModelOutputType {
15
17
  Text = "text",
16
- Vector = "vector"
18
+ Audio = "audio",
19
+ Image = "image",
20
+ Vector = "vector",
21
+ Entity = "entity"
22
+ }
23
+ /**
24
+ * The generative AI task types.
25
+ * @category AI
26
+ */
27
+ export declare enum GenerativeAITaskType {
28
+ TextGeneration = "text-generation",
29
+ Embeddings = "embeddings",
30
+ FillMask = "fill-mask",
31
+ QuestionAnswering = "question-answering",
32
+ SentenceSimilarity = "sentence-similarity",
33
+ Summarization = "summarization",
34
+ TextClassification = "text-classification",
35
+ SentimentAnalysis = "sentiment-analysis",
36
+ TokenClassification = "token-classification",
37
+ NamedEntityRecognition = "ner",
38
+ Translation = "translation",
39
+ ZeroShotClassification = "zero-shot-classification",
40
+ FeatureExtraction = "feature-extraction",
41
+ DepthEstimation = "depth-estimation",
42
+ ImageClassification = "image-classification",
43
+ ImageSegmentation = "image-segmentation",
44
+ ImageToImage = "image-to-image",
45
+ ObjectDetection = "object-detection",
46
+ ImageFeatureExtraction = "image-feature-extraction",
47
+ AudioClassification = "audio-classification",
48
+ AutomaticSpeechRecognition = "automatic-speech-recognition",
49
+ TextToSpeech = "text-to-speech",
50
+ DocumentQuestionAnswering = "document-question-answering",
51
+ ImageToText = "image-to-text",
52
+ ZeroShotAudioClassification = "zero-shot-audio-classification",
53
+ ZeroShotImageClassification = "zero-shot-image-classification",
54
+ ZeroShotObjectDetection = "zero-shot-object-detection"
55
+ }
56
+ /**
57
+ * The generative AI engine types.
58
+ * @category AI
59
+ */
60
+ export declare enum GenerativeAIEngineType {
61
+ Llamacpp = "llamacpp",
62
+ Transformers = "transformers"
17
63
  }
18
64
  /**
19
65
  * The generative AI model interface.
@@ -21,9 +67,12 @@ export declare enum GenerativeAIModelOutputType {
21
67
  */
22
68
  export interface IGenerativeAIModel {
23
69
  id: string;
70
+ engineType: GenerativeAIEngineType;
71
+ taskType: GenerativeAITaskType;
24
72
  inputType: GenerativeAIModelInputType;
25
73
  outputType: GenerativeAIModelOutputType;
26
74
  sourceUrl: string;
75
+ pathName?: string;
27
76
  }
28
77
  /**
29
78
  * The generative AI worker options.
@@ -43,12 +92,17 @@ export interface IGenerativeAIWorkerConnector extends IJobWorkerConnector<IJobPa
43
92
  * @param models A map of model IDs and pathnames.
44
93
  * @returns A promise that resolves when the model has been initialized.
45
94
  */
46
- initialize(workflowId: string, models: Map<string, string>): Promise<void>;
95
+ initialize(workflowId: string, models: Map<string, IGenerativeAIModel>): Promise<void>;
47
96
  /**
48
97
  * Close the machine learning model.
49
98
  * @returns A promise that resolves when the model has been closed.
50
99
  */
51
100
  close(): Promise<void>;
101
+ /**
102
+ * Get the engine type.
103
+ * @returns The engine type.
104
+ */
105
+ getEngineType(): GenerativeAIEngineType;
52
106
  /**
53
107
  * Process a job.
54
108
  * @param parameters The job parameters.
@@ -5,6 +5,8 @@
5
5
  export var GenerativeAIModelInputType;
6
6
  (function (GenerativeAIModelInputType) {
7
7
  GenerativeAIModelInputType["Text"] = "text";
8
+ GenerativeAIModelInputType["Audio"] = "audio";
9
+ GenerativeAIModelInputType["Image"] = "image";
8
10
  })(GenerativeAIModelInputType || (GenerativeAIModelInputType = {}));
9
11
  /**
10
12
  * The generative AI model output types.
@@ -13,5 +15,51 @@ export var GenerativeAIModelInputType;
13
15
  export var GenerativeAIModelOutputType;
14
16
  (function (GenerativeAIModelOutputType) {
15
17
  GenerativeAIModelOutputType["Text"] = "text";
18
+ GenerativeAIModelOutputType["Audio"] = "audio";
19
+ GenerativeAIModelOutputType["Image"] = "image";
16
20
  GenerativeAIModelOutputType["Vector"] = "vector";
21
+ GenerativeAIModelOutputType["Entity"] = "entity";
17
22
  })(GenerativeAIModelOutputType || (GenerativeAIModelOutputType = {}));
23
+ /**
24
+ * The generative AI task types.
25
+ * @category AI
26
+ */
27
+ export var GenerativeAITaskType;
28
+ (function (GenerativeAITaskType) {
29
+ GenerativeAITaskType["TextGeneration"] = "text-generation";
30
+ GenerativeAITaskType["Embeddings"] = "embeddings";
31
+ GenerativeAITaskType["FillMask"] = "fill-mask";
32
+ GenerativeAITaskType["QuestionAnswering"] = "question-answering";
33
+ GenerativeAITaskType["SentenceSimilarity"] = "sentence-similarity";
34
+ GenerativeAITaskType["Summarization"] = "summarization";
35
+ GenerativeAITaskType["TextClassification"] = "text-classification";
36
+ GenerativeAITaskType["SentimentAnalysis"] = "sentiment-analysis";
37
+ GenerativeAITaskType["TokenClassification"] = "token-classification";
38
+ GenerativeAITaskType["NamedEntityRecognition"] = "ner";
39
+ GenerativeAITaskType["Translation"] = "translation";
40
+ GenerativeAITaskType["ZeroShotClassification"] = "zero-shot-classification";
41
+ GenerativeAITaskType["FeatureExtraction"] = "feature-extraction";
42
+ GenerativeAITaskType["DepthEstimation"] = "depth-estimation";
43
+ GenerativeAITaskType["ImageClassification"] = "image-classification";
44
+ GenerativeAITaskType["ImageSegmentation"] = "image-segmentation";
45
+ GenerativeAITaskType["ImageToImage"] = "image-to-image";
46
+ GenerativeAITaskType["ObjectDetection"] = "object-detection";
47
+ GenerativeAITaskType["ImageFeatureExtraction"] = "image-feature-extraction";
48
+ GenerativeAITaskType["AudioClassification"] = "audio-classification";
49
+ GenerativeAITaskType["AutomaticSpeechRecognition"] = "automatic-speech-recognition";
50
+ GenerativeAITaskType["TextToSpeech"] = "text-to-speech";
51
+ GenerativeAITaskType["DocumentQuestionAnswering"] = "document-question-answering";
52
+ GenerativeAITaskType["ImageToText"] = "image-to-text";
53
+ GenerativeAITaskType["ZeroShotAudioClassification"] = "zero-shot-audio-classification";
54
+ GenerativeAITaskType["ZeroShotImageClassification"] = "zero-shot-image-classification";
55
+ GenerativeAITaskType["ZeroShotObjectDetection"] = "zero-shot-object-detection";
56
+ })(GenerativeAITaskType || (GenerativeAITaskType = {}));
57
+ /**
58
+ * The generative AI engine types.
59
+ * @category AI
60
+ */
61
+ export var GenerativeAIEngineType;
62
+ (function (GenerativeAIEngineType) {
63
+ GenerativeAIEngineType["Llamacpp"] = "llamacpp";
64
+ GenerativeAIEngineType["Transformers"] = "transformers";
65
+ })(GenerativeAIEngineType || (GenerativeAIEngineType = {}));
@@ -1,3 +1,17 @@
1
+ /**
2
+ * Represents the types of entities that can be extracted.
3
+ * @category AI
4
+ */
5
+ export interface INLPEntityTypes {
6
+ ner: boolean;
7
+ noun: boolean;
8
+ propn: boolean;
9
+ verb: boolean;
10
+ }
11
+ /**
12
+ * Represents a natural language processing library connector.
13
+ * @category Connector
14
+ */
1
15
  export interface INLPLibraryConnector {
2
16
  /**
3
17
  * Splits the text into sentences.
@@ -8,7 +22,15 @@ export interface INLPLibraryConnector {
8
22
  /**
9
23
  * Extracts the entities from the text.
10
24
  * @param text The text to extract from.
25
+ * @param types The types of entities to extract.
11
26
  * @returns A promise that resolves with the entities.
12
27
  */
13
- getEntities(text: string): Promise<string[]>;
28
+ getEntities(text: string, types: INLPEntityTypes): Promise<string[]>;
29
+ /**
30
+ * Extracts the similarity between two texts.
31
+ * @param text1 The first text.
32
+ * @param text2 The second text.
33
+ * @returns A promise that resolves with the similarity between the texts. The value is between 0 and 1.
34
+ */
35
+ getSimilarity(text1: string, text2: string): Promise<number>;
14
36
  }
@@ -1,2 +1,6 @@
1
1
  import { INLPLibraryConnector } from './NLPLibraryConnector';
2
+ /**
3
+ * Represents a natural language processing library connector constructor.
4
+ * @category AI
5
+ */
2
6
  export type NLPLibraryConnectorConstructor = new () => INLPLibraryConnector;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Represents a search result.
3
+ * @category AI
4
+ */
5
+ export interface ISearchConnectorResult {
6
+ /**
7
+ * The title of the search result.
8
+ */
9
+ title: string;
10
+ /**
11
+ * The snippet of the search result.
12
+ */
13
+ snippet: string;
14
+ /**
15
+ * The URL of the search result.
16
+ */
17
+ url: string;
18
+ }
19
+ /**
20
+ * Represents a search connector.
21
+ * @category Connector
22
+ */
23
+ export interface ISearchConnector {
24
+ /**
25
+ * Searches for the query.
26
+ * @param query The query to search for.
27
+ * @param apiKey The API key to use for the search.
28
+ * @param engineId The engine ID to use for the search.
29
+ * @returns A promise that resolves with the search results.
30
+ */
31
+ search(query: string, apiKey: string, engineId: string): Promise<ISearchConnectorResult[]>;
32
+ }
@@ -0,0 +1,6 @@
1
+ import { ISearchConnector } from './SearchConnector';
2
+ /**
3
+ * Represents a search connector constructor.
4
+ * @category AI
5
+ */
6
+ export type SearchConnectorConstructor = new () => ISearchConnector;
@@ -0,0 +1 @@
1
+ export {};
@@ -5,3 +5,5 @@ export * from './GenerativeAIWorkerConnector';
5
5
  export * from './GenerativeAIWorkerConnectorConstructor';
6
6
  export * from './NLPLibraryConnector';
7
7
  export * from './NLPLibraryConnectorConstructor';
8
+ export * from './SearchConnector';
9
+ export * from './SearchConnectorConstructor';
package/dist/ai/index.js CHANGED
@@ -5,3 +5,5 @@ export * from './GenerativeAIWorkerConnector';
5
5
  export * from './GenerativeAIWorkerConnectorConstructor';
6
6
  export * from './NLPLibraryConnector';
7
7
  export * from './NLPLibraryConnectorConstructor';
8
+ export * from './SearchConnector';
9
+ export * from './SearchConnectorConstructor';
@@ -50,6 +50,19 @@ export interface IAgentCapacity {
50
50
  */
51
51
  available: number;
52
52
  };
53
+ /**
54
+ * The agent's VRAM capacity.
55
+ */
56
+ vram: {
57
+ /**
58
+ * The total VRAM available.
59
+ */
60
+ total: number;
61
+ /**
62
+ * The available VRAM.
63
+ */
64
+ available: number;
65
+ };
53
66
  /**
54
67
  * The agent's storage capacity.
55
68
  */
@@ -2,7 +2,7 @@ import { KeyValueDatabaseConnectorConstructor } from '../../key-value-database';
2
2
  import { ILoggingConnector } from '.';
3
3
  import { DocumentParserConnectorConstructor, ObjectStoreConnectorConstructor } from '../../object-storage';
4
4
  import { PeerConnectionConnectorConstructor } from '../connection';
5
- import { GenerativeAIWorkerConnectorConstructor, NLPLibraryConnectorConstructor } from '../../ai';
5
+ import { GenerativeAIWorkerConnectorConstructor, NLPLibraryConnectorConstructor, SearchConnectorConstructor } from '../../ai';
6
6
  import { VectorDatabaseConnectorConstructor } from '../../vector-database';
7
7
  import { GraphDatabaseConnectorConstructor } from '../../graph-database';
8
8
  /**
@@ -32,15 +32,19 @@ export interface ISDKOptions {
32
32
  * If not provided, the default key-value database connector is IndexedDB.
33
33
  */
34
34
  keyValueDatabaseConnector?: KeyValueDatabaseConnectorConstructor;
35
+ /**
36
+ * The custom logging database connector to use for storing Job logs.
37
+ */
38
+ loggingDatabaseConnector?: KeyValueDatabaseConnectorConstructor;
35
39
  /**
36
40
  * The custom peer connection connector to use for creating peer connections.
37
41
  * If not provided, the default peer connection connector is WebRTC in browser.
38
42
  */
39
43
  peerConnectionConnector?: PeerConnectionConnectorConstructor;
40
44
  /**
41
- * The custom generative AI worker connector to use for generative AI tasks.
45
+ * The custom generative AI worker connectors to use for generative AI tasks.
42
46
  */
43
- generativeAIWorkerConnector?: GenerativeAIWorkerConnectorConstructor;
47
+ generativeAIWorkerConnectors?: GenerativeAIWorkerConnectorConstructor[];
44
48
  /**
45
49
  * The custom vector database connector to use for vector database tasks.
46
50
  */
@@ -57,6 +61,10 @@ export interface ISDKOptions {
57
61
  * The custom natural language processing connector to use for natural language processing tasks.
58
62
  */
59
63
  nlpLibraryConnector?: NLPLibraryConnectorConstructor;
64
+ /**
65
+ * The custom search connector to use for searching the web.
66
+ */
67
+ searchConnector?: SearchConnectorConstructor;
60
68
  /**
61
69
  * The maximum number of outgoing subscriptions.
62
70
  */
@@ -1,3 +1,4 @@
1
+ import { IIndex } from '../ai';
1
2
  import { IDataStream } from '../core';
2
3
  /**
3
4
  * The interface for the graph database.
@@ -18,9 +19,12 @@ export interface IGraphDatabase extends IDataStream {
18
19
  close(): void;
19
20
  /**
20
21
  * Add a node to the database.
22
+ * @param name The name of the content.
23
+ * @param content The content.
24
+ * @param index The index of the node.
21
25
  * @param node The node to add.
22
26
  */
23
- addNode(node: string): void;
27
+ addNode(name: string, content: string, index: IIndex[], node: string): void;
24
28
  /**
25
29
  * Add an edge to the database.
26
30
  * @param from The node to add the edge from.
@@ -28,8 +32,13 @@ export interface IGraphDatabase extends IDataStream {
28
32
  */
29
33
  addEdge(from: string, to: string): void;
30
34
  /**
31
- * Get the neighbors of a node.
32
- * @param node The node to get the neighbors of.
35
+ * Get the content of the nodes and their neighbors.
36
+ * @param nodes The nodes to get the content of.
37
+ * @param maxDepth The maximum depth to search (default 1).
38
+ * @param contentSize The size of the content to return (content +/- contentSize, default 0).
39
+ * @returns The content of the nodes and their neighbors.
33
40
  */
34
- getNeighbors(node: string): string[];
41
+ getContent(nodes: string[], maxDepth?: number, contentSize?: number): {
42
+ [key: string]: string[];
43
+ };
35
44
  }
@@ -1,3 +1,4 @@
1
+ import { IIndex } from '../ai';
1
2
  /**
2
3
  * The graph database connector interface.
3
4
  * @category Connector
@@ -5,9 +6,12 @@
5
6
  export interface IGraphDatabaseConnector {
6
7
  /**
7
8
  * Add a node to the database.
9
+ * @param name The name of the content.
10
+ * @param content The content.
11
+ * @param index The index of the node.
8
12
  * @param node The node to add.
9
13
  */
10
- addNode(node: string): void;
14
+ addNode(name: string, content: string, index: IIndex[], node: string): void;
11
15
  /**
12
16
  * Add an edge to the database.
13
17
  * @param from The node to add the edge from.
@@ -15,10 +19,15 @@ export interface IGraphDatabaseConnector {
15
19
  */
16
20
  addEdge(from: string, to: string): void;
17
21
  /**
18
- * Get the neighbors of a node.
19
- * @param node The node to get the neighbors of.
22
+ * Get the content of the nodes and their neighbors.
23
+ * @param nodes The nodes to get the content of.
24
+ * @param maxDepth The maximum depth to search (default 1).
25
+ * @param contentSize The size of the content to return (content +/- contentSize, default 0).
26
+ * @returns The content of the nodes and their neighbors.
20
27
  */
21
- getNeighbors(node: string): string[];
28
+ getContent(nodes: string[], maxDepth?: number, contentSize?: number): {
29
+ [key: string]: string[];
30
+ };
22
31
  /**
23
32
  * Get the size of the database
24
33
  * @returns The size of the database.
@@ -1,5 +1,5 @@
1
+ import { IIndex, ISearchResult } from '../ai';
1
2
  import { IDataStream } from '../core';
2
- import { IVectorDatabaseSearchResult } from './VectorDatabaseSearchResult';
3
3
  /**
4
4
  * The interface for the vector database.
5
5
  * @category Vector Database
@@ -21,18 +21,19 @@ export interface IVectorDatabase extends IDataStream {
21
21
  * Search for the k nearest vectors.
22
22
  * @param vector The vector to search for.
23
23
  * @param k The number of nearest vectors to return.
24
- * @param minRelevance The minimum relevance of the vectors.
25
- * @param contentSize The size of the content to return (vector +/- contentSize, default 0).
24
+ * @param minRelevance The minimum relevance of the vectors (default 0).
25
+ * @param contentSize The size of the content to return (content +/- contentSize, default 0).
26
26
  * @returns An array of search results.
27
27
  */
28
- search(vector: number[], k: number, minRelevance?: number, contentSize?: number): IVectorDatabaseSearchResult[];
28
+ search(vector: number[], k: number, minRelevance?: number, contentSize?: number): ISearchResult[];
29
29
  /**
30
30
  * Insert vectors into the database.
31
31
  * @param name The name of the content.
32
- * @param content The content of the vectors.
32
+ * @param content The content.
33
+ * @param index The index of the vectors.
33
34
  * @param vectors The vectors to insert.
34
35
  */
35
- insert(name: string, content: string[], vectors: number[][]): void;
36
+ insert(name: string, content: string, index: IIndex[], vectors: number[][]): void;
36
37
  /**
37
38
  * Remove vectors from the database.
38
39
  * @param name The name of the content.
@@ -1,4 +1,4 @@
1
- import { IVectorDatabaseSearchResult } from './VectorDatabaseSearchResult';
1
+ import { IIndex, ISearchResult } from '../ai';
2
2
  /**
3
3
  * The vector database connector interface.
4
4
  * @category Connector
@@ -8,18 +8,19 @@ export interface IVectorDatabaseConnector {
8
8
  * Search for the k nearest vectors.
9
9
  * @param vector The vector to search for.
10
10
  * @param k The number of nearest vectors to return.
11
- * @param minRelevance The minimum relevance of the vectors.
12
- * @param contentSize The size of the content to return (vector +/- contentSize, default 0).
11
+ * @param minRelevance The minimum relevance of the vectors (default 0).
12
+ * @param contentSize The size of the content to return (content +/- contentSize, default 0).
13
13
  * @returns An array of search results.
14
14
  */
15
- search(vector: number[], k: number, minRelevance?: number, contentSize?: number): IVectorDatabaseSearchResult[];
15
+ search(vector: number[], k: number, minRelevance?: number, contentSize?: number): ISearchResult[];
16
16
  /**
17
17
  * Insert vectors into the database.
18
18
  * @param name The name of the content.
19
- * @param content The content of the vectors.
19
+ * @param content The content.
20
+ * @param index The index of the vectors.
20
21
  * @param vectors The vectors to insert.
21
22
  */
22
- insert(name: string, content: string[], vectors: number[][]): void;
23
+ insert(name: string, content: string, index: IIndex[], vectors: number[][]): void;
23
24
  /**
24
25
  * Remove vectors from the database.
25
26
  * @param name The name of the content.
@@ -1,4 +1,3 @@
1
1
  export * from './VectorDatabase';
2
2
  export * from './VectorDatabaseConnector';
3
3
  export * from './VectorDatabaseConnectorConstructor';
4
- export * from './VectorDatabaseSearchResult';
@@ -1,4 +1,3 @@
1
1
  export * from './VectorDatabase';
2
2
  export * from './VectorDatabaseConnector';
3
3
  export * from './VectorDatabaseConnectorConstructor';
4
- export * from './VectorDatabaseSearchResult';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewdle/web-sdk-types",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "The Crewdle Mist Web SDK public types and interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,19 +0,0 @@
1
- /**
2
- * Represents a search result from the vector database.
3
- * @category Vector Database
4
- */
5
- export interface IVectorDatabaseSearchResult {
6
- /**
7
- * The content of the search result.
8
- */
9
- content: string;
10
- /**
11
- * The relevance of the search result.
12
- * The relevance is a number between 0 and 1, where 1 is the most relevant.
13
- */
14
- relevance: number;
15
- /**
16
- * The path name of the document containing the search result.
17
- */
18
- pathName: string;
19
- }