graphlit-client 1.0.20240509002 → 1.0.20240515001
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.
@@ -652,6 +652,11 @@ exports.GetContent = (0, graphql_tag_1.default) `
|
|
652
652
|
id
|
653
653
|
name
|
654
654
|
}
|
655
|
+
related {
|
656
|
+
id
|
657
|
+
name
|
658
|
+
}
|
659
|
+
relation
|
655
660
|
occurrences {
|
656
661
|
type
|
657
662
|
confidence
|
@@ -1019,6 +1024,11 @@ exports.QueryContents = (0, graphql_tag_1.default) `
|
|
1019
1024
|
id
|
1020
1025
|
name
|
1021
1026
|
}
|
1027
|
+
related {
|
1028
|
+
id
|
1029
|
+
name
|
1030
|
+
}
|
1031
|
+
relation
|
1022
1032
|
occurrences {
|
1023
1033
|
type
|
1024
1034
|
confidence
|
@@ -1243,6 +1253,11 @@ exports.QueryContentsFacets = (0, graphql_tag_1.default) `
|
|
1243
1253
|
id
|
1244
1254
|
name
|
1245
1255
|
}
|
1256
|
+
related {
|
1257
|
+
id
|
1258
|
+
name
|
1259
|
+
}
|
1260
|
+
relation
|
1246
1261
|
occurrences {
|
1247
1262
|
type
|
1248
1263
|
confidence
|
@@ -1316,6 +1331,7 @@ exports.QueryContentsGraph = (0, graphql_tag_1.default) `
|
|
1316
1331
|
edges {
|
1317
1332
|
from
|
1318
1333
|
to
|
1334
|
+
relation
|
1319
1335
|
}
|
1320
1336
|
}
|
1321
1337
|
}
|
@@ -1558,6 +1574,18 @@ exports.PromptConversation = (0, graphql_tag_1.default) `
|
|
1558
1574
|
}
|
1559
1575
|
}
|
1560
1576
|
}
|
1577
|
+
graph {
|
1578
|
+
nodes {
|
1579
|
+
id
|
1580
|
+
type
|
1581
|
+
metadata
|
1582
|
+
}
|
1583
|
+
edges {
|
1584
|
+
from
|
1585
|
+
to
|
1586
|
+
relation
|
1587
|
+
}
|
1588
|
+
}
|
1561
1589
|
}
|
1562
1590
|
}
|
1563
1591
|
`;
|
@@ -2769,6 +2797,7 @@ exports.LookupCredits = (0, graphql_tag_1.default) `
|
|
2769
2797
|
exports.LookupUsage = (0, graphql_tag_1.default) `
|
2770
2798
|
query LookupUsage($correlationId: String!) {
|
2771
2799
|
lookupUsage(correlationId: $correlationId) {
|
2800
|
+
id
|
2772
2801
|
correlationId
|
2773
2802
|
date
|
2774
2803
|
credits
|
@@ -2793,6 +2822,8 @@ exports.LookupUsage = (0, graphql_tag_1.default) `
|
|
2793
2822
|
completionTokens
|
2794
2823
|
tokens
|
2795
2824
|
count
|
2825
|
+
operation
|
2826
|
+
operationType
|
2796
2827
|
request
|
2797
2828
|
variables
|
2798
2829
|
response
|
@@ -2819,6 +2850,7 @@ exports.QueryCredits = (0, graphql_tag_1.default) `
|
|
2819
2850
|
exports.QueryUsage = (0, graphql_tag_1.default) `
|
2820
2851
|
query QueryUsage($startDate: DateTime!, $duration: TimeSpan!) {
|
2821
2852
|
usage(startDate: $startDate, duration: $duration) {
|
2853
|
+
id
|
2822
2854
|
correlationId
|
2823
2855
|
date
|
2824
2856
|
credits
|
@@ -2843,6 +2875,8 @@ exports.QueryUsage = (0, graphql_tag_1.default) `
|
|
2843
2875
|
completionTokens
|
2844
2876
|
tokens
|
2845
2877
|
count
|
2878
|
+
operation
|
2879
|
+
operationType
|
2846
2880
|
request
|
2847
2881
|
variables
|
2848
2882
|
response
|
@@ -3088,6 +3122,14 @@ exports.GetSpecification = (0, graphql_tag_1.default) `
|
|
3088
3122
|
rerankingStrategy {
|
3089
3123
|
serviceType
|
3090
3124
|
}
|
3125
|
+
graphStrategy {
|
3126
|
+
type
|
3127
|
+
}
|
3128
|
+
revisionStrategy {
|
3129
|
+
type
|
3130
|
+
customRevision
|
3131
|
+
count
|
3132
|
+
}
|
3091
3133
|
openAI {
|
3092
3134
|
tokenLimit
|
3093
3135
|
completionTokenLimit
|
@@ -3218,6 +3260,14 @@ exports.QuerySpecifications = (0, graphql_tag_1.default) `
|
|
3218
3260
|
rerankingStrategy {
|
3219
3261
|
serviceType
|
3220
3262
|
}
|
3263
|
+
graphStrategy {
|
3264
|
+
type
|
3265
|
+
}
|
3266
|
+
revisionStrategy {
|
3267
|
+
type
|
3268
|
+
customRevision
|
3269
|
+
count
|
3270
|
+
}
|
3221
3271
|
openAI {
|
3222
3272
|
tokenLimit
|
3223
3273
|
completionTokenLimit
|
@@ -3346,6 +3396,7 @@ exports.CreateWorkflow = (0, graphql_tag_1.default) `
|
|
3346
3396
|
contentTypes
|
3347
3397
|
fileTypes
|
3348
3398
|
extractedTypes
|
3399
|
+
extractedCount
|
3349
3400
|
azureText {
|
3350
3401
|
confidenceThreshold
|
3351
3402
|
enablePII
|
@@ -3484,6 +3535,7 @@ exports.GetWorkflow = (0, graphql_tag_1.default) `
|
|
3484
3535
|
contentTypes
|
3485
3536
|
fileTypes
|
3486
3537
|
extractedTypes
|
3538
|
+
extractedCount
|
3487
3539
|
azureText {
|
3488
3540
|
confidenceThreshold
|
3489
3541
|
enablePII
|
@@ -3595,6 +3647,7 @@ exports.QueryWorkflows = (0, graphql_tag_1.default) `
|
|
3595
3647
|
contentTypes
|
3596
3648
|
fileTypes
|
3597
3649
|
extractedTypes
|
3650
|
+
extractedCount
|
3598
3651
|
azureText {
|
3599
3652
|
confidenceThreshold
|
3600
3653
|
enablePII
|
@@ -3702,6 +3755,7 @@ exports.UpdateWorkflow = (0, graphql_tag_1.default) `
|
|
3702
3755
|
contentTypes
|
3703
3756
|
fileTypes
|
3704
3757
|
extractedTypes
|
3758
|
+
extractedCount
|
3705
3759
|
azureText {
|
3706
3760
|
confidenceThreshold
|
3707
3761
|
enablePII
|
@@ -1375,7 +1375,7 @@ export type ContentResults = {
|
|
1375
1375
|
__typename?: 'ContentResults';
|
1376
1376
|
/** The content facets. */
|
1377
1377
|
facets?: Maybe<Array<Maybe<ContentFacet>>>;
|
1378
|
-
/** The knowledge graph generated from the
|
1378
|
+
/** The knowledge graph generated from the retrieved contents. */
|
1379
1379
|
graph?: Maybe<Graph>;
|
1380
1380
|
/** The content H3 facets. */
|
1381
1381
|
h3?: Maybe<H3Facets>;
|
@@ -2140,6 +2140,8 @@ export type EntityExtractionConnector = {
|
|
2140
2140
|
azureText?: Maybe<AzureTextExtractionProperties>;
|
2141
2141
|
/** The content types to allow for entity extraction. */
|
2142
2142
|
contentTypes?: Maybe<Array<ContentTypes>>;
|
2143
|
+
/** The maximum number of observable entities to be extracted, per entity type. Defaults to 25. */
|
2144
|
+
extractedCount?: Maybe<Scalars['Int']['output']>;
|
2143
2145
|
/** The observable entity types to be extracted, defaults to all observables. */
|
2144
2146
|
extractedTypes?: Maybe<Array<ObservableTypes>>;
|
2145
2147
|
/** The file types to allow for entity extraction. */
|
@@ -2159,6 +2161,8 @@ export type EntityExtractionConnectorInput = {
|
|
2159
2161
|
azureText?: InputMaybe<AzureTextExtractionPropertiesInput>;
|
2160
2162
|
/** The content types to allow for entity extraction. */
|
2161
2163
|
contentTypes?: InputMaybe<Array<ContentTypes>>;
|
2164
|
+
/** The maximum number of observable entities to be extracted, per entity type. Defaults to 25. */
|
2165
|
+
extractedCount?: InputMaybe<Scalars['Int']['input']>;
|
2162
2166
|
/** The observable entity types to be extracted, defaults to all observables. */
|
2163
2167
|
extractedTypes?: InputMaybe<Array<ObservableTypes>>;
|
2164
2168
|
/** The file types to allow for entity extraction. */
|
@@ -3054,6 +3058,8 @@ export type GraphEdge = {
|
|
3054
3058
|
__typename?: 'GraphEdge';
|
3055
3059
|
/** The source node identifier of the knowledge graph edge. */
|
3056
3060
|
from: Scalars['ID']['output'];
|
3061
|
+
/** The edge relationship between the nodes, i.e. A 'relates-to' B. */
|
3062
|
+
relation?: Maybe<Scalars['String']['output']>;
|
3057
3063
|
/** The destination node identifier of the knowledge graph edge. */
|
3058
3064
|
to: Scalars['ID']['output'];
|
3059
3065
|
};
|
@@ -3069,6 +3075,31 @@ export type GraphNode = {
|
|
3069
3075
|
/** The knowledge graph node type. */
|
3070
3076
|
type: EntityTypes;
|
3071
3077
|
};
|
3078
|
+
/** Represents a GraphRAG strategy. */
|
3079
|
+
export type GraphStrategy = {
|
3080
|
+
__typename?: 'GraphStrategy';
|
3081
|
+
/** The GraphRAG strategy type. */
|
3082
|
+
type: GraphStrategyTypes;
|
3083
|
+
};
|
3084
|
+
/** Represents a GraphRAG strategy. */
|
3085
|
+
export type GraphStrategyInput = {
|
3086
|
+
/** The GraphRAG strategy type. */
|
3087
|
+
type?: InputMaybe<GraphStrategyTypes>;
|
3088
|
+
};
|
3089
|
+
/** GraphRAG strategies */
|
3090
|
+
export declare enum GraphStrategyTypes {
|
3091
|
+
/** Extract named entities from prompt, and assign as observations filter */
|
3092
|
+
ExtractEntitiesFilter = "EXTRACT_ENTITIES_FILTER",
|
3093
|
+
/** Extract named entities from prompt, and aggregate vector search and graph query results */
|
3094
|
+
ExtractEntitiesGraph = "EXTRACT_ENTITIES_GRAPH",
|
3095
|
+
/** Use standard RAG */
|
3096
|
+
None = "NONE"
|
3097
|
+
}
|
3098
|
+
/** Represents a GraphRAG strategy. */
|
3099
|
+
export type GraphStrategyUpdateInput = {
|
3100
|
+
/** The GraphRAG strategy type. */
|
3101
|
+
type?: InputMaybe<GraphStrategyTypes>;
|
3102
|
+
};
|
3072
3103
|
/** Represents Groq model properties. */
|
3073
3104
|
export type GroqModelProperties = {
|
3074
3105
|
__typename?: 'GroqModelProperties';
|
@@ -4915,6 +4946,10 @@ export type Observation = {
|
|
4915
4946
|
occurrences?: Maybe<Array<Maybe<ObservationOccurrence>>>;
|
4916
4947
|
/** The owner of the observation. */
|
4917
4948
|
owner: Owner;
|
4949
|
+
/** The related entity, optional. */
|
4950
|
+
related?: Maybe<NamedEntityReference>;
|
4951
|
+
/** The relationship between the observed entity and related entity, optional. */
|
4952
|
+
relation?: Maybe<Scalars['String']['output']>;
|
4918
4953
|
/** The state of the observation (i.e. created, finished). */
|
4919
4954
|
state: EntityState;
|
4920
4955
|
/** The observed entity type. */
|
@@ -4947,6 +4982,10 @@ export type ObservationInput = {
|
|
4947
4982
|
observable: NamedEntityReferenceInput;
|
4948
4983
|
/** The observation occurrences. */
|
4949
4984
|
occurrences: Array<ObservationOccurrenceInput>;
|
4985
|
+
/** The related entity, optional. */
|
4986
|
+
related?: InputMaybe<NamedEntityReferenceInput>;
|
4987
|
+
/** The relationship between the observed entity and related entity, optional. */
|
4988
|
+
relation?: InputMaybe<Scalars['String']['input']>;
|
4950
4989
|
/** The observed entity type. */
|
4951
4990
|
type: ObservableTypes;
|
4952
4991
|
};
|
@@ -4998,6 +5037,10 @@ export type ObservationUpdateInput = {
|
|
4998
5037
|
observable?: InputMaybe<NamedEntityReferenceInput>;
|
4999
5038
|
/** The observation occurrences. */
|
5000
5039
|
occurrences?: InputMaybe<Array<ObservationOccurrenceInput>>;
|
5040
|
+
/** The related entity, optional. */
|
5041
|
+
related?: InputMaybe<NamedEntityReferenceInput>;
|
5042
|
+
/** The relationship between the observed entity and related entity, optional. */
|
5043
|
+
relation?: InputMaybe<Scalars['String']['input']>;
|
5001
5044
|
/** The observed entity type. */
|
5002
5045
|
type?: InputMaybe<ObservableTypes>;
|
5003
5046
|
};
|
@@ -5124,6 +5167,10 @@ export declare enum OpenAiModels {
|
|
5124
5167
|
Custom = "CUSTOM",
|
5125
5168
|
/** GPT-4 (Latest version) */
|
5126
5169
|
Gpt4 = "GPT4",
|
5170
|
+
/** GPT-4o 128k (latest version) */
|
5171
|
+
Gpt4O_128K = "GPT4O_128K",
|
5172
|
+
/** GPT-4o 128k (2024-05-13 version) */
|
5173
|
+
Gpt4O_128K_20240513 = "GPT4O_128K_20240513",
|
5127
5174
|
/** GPT-4 (0613 version) */
|
5128
5175
|
Gpt4_0613 = "GPT4_0613",
|
5129
5176
|
/** GPT-4 32k (Latest version) */
|
@@ -5168,6 +5215,12 @@ export declare enum OpenAiVisionDetailLevels {
|
|
5168
5215
|
/** Low */
|
5169
5216
|
Low = "LOW"
|
5170
5217
|
}
|
5218
|
+
export declare enum OperationTypes {
|
5219
|
+
/** GraphQL Mutation */
|
5220
|
+
Mutation = "MUTATION",
|
5221
|
+
/** GraphQL Query */
|
5222
|
+
Query = "QUERY"
|
5223
|
+
}
|
5171
5224
|
/** Order by type */
|
5172
5225
|
export declare enum OrderByTypes {
|
5173
5226
|
/** Order by creation date */
|
@@ -6278,7 +6331,7 @@ export type ProjectUpdateInput = {
|
|
6278
6331
|
/** The default content workflow. */
|
6279
6332
|
workflow?: InputMaybe<EntityReferenceInput>;
|
6280
6333
|
};
|
6281
|
-
/** Represents a
|
6334
|
+
/** Represents a usage record. */
|
6282
6335
|
export type ProjectUsageRecord = {
|
6283
6336
|
__typename?: 'ProjectUsageRecord';
|
6284
6337
|
/** The LLM completion, if billable metric is 'Tokens'. */
|
@@ -6288,7 +6341,7 @@ export type ProjectUsageRecord = {
|
|
6288
6341
|
/** The content type, if content usage record. */
|
6289
6342
|
contentType?: Maybe<ContentTypes>;
|
6290
6343
|
/** The tenant correlation identifier. */
|
6291
|
-
correlationId?: Maybe<Scalars['
|
6344
|
+
correlationId?: Maybe<Scalars['ID']['output']>;
|
6292
6345
|
/** The count of processed units. */
|
6293
6346
|
count?: Maybe<Scalars['Int']['output']>;
|
6294
6347
|
/** The credits used. */
|
@@ -6303,6 +6356,8 @@ export type ProjectUsageRecord = {
|
|
6303
6356
|
entityType?: Maybe<EntityTypes>;
|
6304
6357
|
/** The file type, if content usage record. */
|
6305
6358
|
fileType?: Maybe<FileTypes>;
|
6359
|
+
/** The usage record identifier. */
|
6360
|
+
id?: Maybe<Scalars['ID']['output']>;
|
6306
6361
|
/** The billable metric type of the usage record, i.e. 'Tokens' or 'Units'. */
|
6307
6362
|
metric?: Maybe<BillableMetrics>;
|
6308
6363
|
/** For LLM operations, the LLM model name. Or, for transcription operations, the transcription model name. */
|
@@ -6311,6 +6366,10 @@ export type ProjectUsageRecord = {
|
|
6311
6366
|
modelService?: Maybe<Scalars['String']['output']>;
|
6312
6367
|
/** Descriptive name associated with the usage record, i.e. 'Prompt completion' or 'Search entities'. */
|
6313
6368
|
name: Scalars['String']['output'];
|
6369
|
+
/** The GraphQL operation name, if billable metric is 'Request'. */
|
6370
|
+
operation?: Maybe<Scalars['String']['output']>;
|
6371
|
+
/** The GraphQL operation type, if billable metric is 'Request'. */
|
6372
|
+
operationType?: Maybe<OperationTypes>;
|
6314
6373
|
/** The tenant identifier associated with the usage record. */
|
6315
6374
|
ownerId: Scalars['ID']['output'];
|
6316
6375
|
/** The service name when processing by external APIs. */
|
@@ -6353,6 +6412,8 @@ export type PromptConversation = {
|
|
6353
6412
|
conversation?: Maybe<EntityReference>;
|
6354
6413
|
/** The content facets referenced by the completed conversation message. */
|
6355
6414
|
facets?: Maybe<Array<Maybe<ContentFacet>>>;
|
6415
|
+
/** The knowledge graph generated from the retrieved contents. */
|
6416
|
+
graph?: Maybe<Graph>;
|
6356
6417
|
/** The completed conversation message. */
|
6357
6418
|
message?: Maybe<ConversationMessage>;
|
6358
6419
|
/** The conversation message count, after completion. */
|
@@ -7142,6 +7203,43 @@ export type RetrievalStrategyUpdateInput = {
|
|
7142
7203
|
/** The retrieval strategy type. */
|
7143
7204
|
type?: InputMaybe<RetrievalStrategyTypes>;
|
7144
7205
|
};
|
7206
|
+
/** Represents a revision strategy. */
|
7207
|
+
export type RevisionStrategy = {
|
7208
|
+
__typename?: 'RevisionStrategy';
|
7209
|
+
/** The number of times LLM should revise the completion, defaults to 1. */
|
7210
|
+
count?: Maybe<Scalars['Int']['output']>;
|
7211
|
+
/** The custom revision prompt, if using custom strategy type. */
|
7212
|
+
customRevision?: Maybe<Scalars['String']['output']>;
|
7213
|
+
/** The revision strategy type. */
|
7214
|
+
type: RevisionStrategyTypes;
|
7215
|
+
};
|
7216
|
+
/** Represents a revision strategy. */
|
7217
|
+
export type RevisionStrategyInput = {
|
7218
|
+
/** The number of times LLM should revise the completion, defaults to 1. */
|
7219
|
+
count?: InputMaybe<Scalars['Int']['input']>;
|
7220
|
+
/** The custom revision prompt, if using custom strategy type. */
|
7221
|
+
customRevision?: InputMaybe<Scalars['String']['input']>;
|
7222
|
+
/** The revision strategy type. */
|
7223
|
+
type?: InputMaybe<RevisionStrategyTypes>;
|
7224
|
+
};
|
7225
|
+
/** Revision strategies */
|
7226
|
+
export declare enum RevisionStrategyTypes {
|
7227
|
+
/** Provide custom prompt for LLM to revise completion, and provide updated response */
|
7228
|
+
Custom = "CUSTOM",
|
7229
|
+
/** Use LLM completion */
|
7230
|
+
None = "NONE",
|
7231
|
+
/** Prompt LLM to revise completion, and provide updated response */
|
7232
|
+
Revise = "REVISE"
|
7233
|
+
}
|
7234
|
+
/** Represents a revision strategy. */
|
7235
|
+
export type RevisionStrategyUpdateInput = {
|
7236
|
+
/** The number of times LLM should revise the completion, defaults to 1. */
|
7237
|
+
count?: InputMaybe<Scalars['Int']['input']>;
|
7238
|
+
/** The custom revision prompt, if using custom strategy type. */
|
7239
|
+
customRevision?: InputMaybe<Scalars['String']['input']>;
|
7240
|
+
/** The revision strategy type. */
|
7241
|
+
type?: InputMaybe<RevisionStrategyTypes>;
|
7242
|
+
};
|
7145
7243
|
/** Search query type */
|
7146
7244
|
export declare enum SearchQueryTypes {
|
7147
7245
|
/** Full (Lucene syntax) */
|
@@ -7561,6 +7659,8 @@ export type Specification = {
|
|
7561
7659
|
customGuidance?: Maybe<Scalars['String']['output']>;
|
7562
7660
|
/** Custom instructions which are injected into the LLM conversation prompt. */
|
7563
7661
|
customInstructions?: Maybe<Scalars['String']['output']>;
|
7662
|
+
/** The strategy for GraphRAG retrieval. */
|
7663
|
+
graphStrategy?: Maybe<GraphStrategy>;
|
7564
7664
|
/** The Groq model properties. */
|
7565
7665
|
groq?: Maybe<GroqModelProperties>;
|
7566
7666
|
/** The ID of the specification. */
|
@@ -7585,6 +7685,8 @@ export type Specification = {
|
|
7585
7685
|
rerankingStrategy?: Maybe<RerankingStrategy>;
|
7586
7686
|
/** The strategy for retrieving the relevant content for the RAG conversation. */
|
7587
7687
|
retrievalStrategy?: Maybe<RetrievalStrategy>;
|
7688
|
+
/** The strategy for revising the LLM completion during a RAG conversation. */
|
7689
|
+
revisionStrategy?: Maybe<RevisionStrategy>;
|
7588
7690
|
/** The content search type. */
|
7589
7691
|
searchType?: Maybe<ConversationSearchTypes>;
|
7590
7692
|
/** The LLM service type. */
|
@@ -7637,6 +7739,8 @@ export type SpecificationInput = {
|
|
7637
7739
|
customGuidance?: InputMaybe<Scalars['String']['input']>;
|
7638
7740
|
/** Custom instructions which are injected into the LLM conversation prompt. */
|
7639
7741
|
customInstructions?: InputMaybe<Scalars['String']['input']>;
|
7742
|
+
/** The strategy for GraphRAG retrieval. */
|
7743
|
+
graphStrategy?: InputMaybe<GraphStrategyInput>;
|
7640
7744
|
/** The Groq model properties. */
|
7641
7745
|
groq?: InputMaybe<GroqModelPropertiesInput>;
|
7642
7746
|
/** The Mistral model properties. */
|
@@ -7655,6 +7759,8 @@ export type SpecificationInput = {
|
|
7655
7759
|
rerankingStrategy?: InputMaybe<RerankingStrategyInput>;
|
7656
7760
|
/** The strategy for retrieving the relevant content for the RAG conversation. */
|
7657
7761
|
retrievalStrategy?: InputMaybe<RetrievalStrategyInput>;
|
7762
|
+
/** The strategy for revising the LLM completion during a RAG conversation. */
|
7763
|
+
revisionStrategy?: InputMaybe<RevisionStrategyInput>;
|
7658
7764
|
/** The content search type. */
|
7659
7765
|
searchType?: InputMaybe<ConversationSearchTypes>;
|
7660
7766
|
/** The LLM service type. */
|
@@ -7693,6 +7799,8 @@ export type SpecificationUpdateInput = {
|
|
7693
7799
|
customGuidance?: InputMaybe<Scalars['String']['input']>;
|
7694
7800
|
/** Custom instructions which are injected into the LLM conversation prompt. */
|
7695
7801
|
customInstructions?: InputMaybe<Scalars['String']['input']>;
|
7802
|
+
/** The strategy for GraphRAG retrieval. */
|
7803
|
+
graphStrategy?: InputMaybe<GraphStrategyUpdateInput>;
|
7696
7804
|
/** The Groq model properties. */
|
7697
7805
|
groq?: InputMaybe<GroqModelPropertiesUpdateInput>;
|
7698
7806
|
/** The ID of the specification to update. */
|
@@ -7713,6 +7821,8 @@ export type SpecificationUpdateInput = {
|
|
7713
7821
|
rerankingStrategy?: InputMaybe<RerankingStrategyUpdateInput>;
|
7714
7822
|
/** The strategy for retrieving the relevant content for the RAG conversation. */
|
7715
7823
|
retrievalStrategy?: InputMaybe<RetrievalStrategyUpdateInput>;
|
7824
|
+
/** The strategy for revising the LLM completion during a RAG conversation. */
|
7825
|
+
revisionStrategy?: InputMaybe<RevisionStrategyUpdateInput>;
|
7716
7826
|
/** The content search type. */
|
7717
7827
|
searchType?: InputMaybe<ConversationSearchTypes>;
|
7718
7828
|
/** The LLM service type. */
|
@@ -9046,12 +9156,18 @@ export type GetContentQuery = {
|
|
9046
9156
|
__typename?: 'Observation';
|
9047
9157
|
id: string;
|
9048
9158
|
type: ObservableTypes;
|
9159
|
+
relation?: string | null;
|
9049
9160
|
state: EntityState;
|
9050
9161
|
observable: {
|
9051
9162
|
__typename?: 'NamedEntityReference';
|
9052
9163
|
id: string;
|
9053
9164
|
name?: string | null;
|
9054
9165
|
};
|
9166
|
+
related?: {
|
9167
|
+
__typename?: 'NamedEntityReference';
|
9168
|
+
id: string;
|
9169
|
+
name?: string | null;
|
9170
|
+
} | null;
|
9055
9171
|
occurrences?: Array<{
|
9056
9172
|
__typename?: 'ObservationOccurrence';
|
9057
9173
|
type?: OccurrenceTypes | null;
|
@@ -9457,12 +9573,18 @@ export type QueryContentsQuery = {
|
|
9457
9573
|
__typename?: 'Observation';
|
9458
9574
|
id: string;
|
9459
9575
|
type: ObservableTypes;
|
9576
|
+
relation?: string | null;
|
9460
9577
|
state: EntityState;
|
9461
9578
|
observable: {
|
9462
9579
|
__typename?: 'NamedEntityReference';
|
9463
9580
|
id: string;
|
9464
9581
|
name?: string | null;
|
9465
9582
|
};
|
9583
|
+
related?: {
|
9584
|
+
__typename?: 'NamedEntityReference';
|
9585
|
+
id: string;
|
9586
|
+
name?: string | null;
|
9587
|
+
} | null;
|
9466
9588
|
occurrences?: Array<{
|
9467
9589
|
__typename?: 'ObservationOccurrence';
|
9468
9590
|
type?: OccurrenceTypes | null;
|
@@ -9713,12 +9835,18 @@ export type QueryContentsFacetsQuery = {
|
|
9713
9835
|
__typename?: 'Observation';
|
9714
9836
|
id: string;
|
9715
9837
|
type: ObservableTypes;
|
9838
|
+
relation?: string | null;
|
9716
9839
|
state: EntityState;
|
9717
9840
|
observable: {
|
9718
9841
|
__typename?: 'NamedEntityReference';
|
9719
9842
|
id: string;
|
9720
9843
|
name?: string | null;
|
9721
9844
|
};
|
9845
|
+
related?: {
|
9846
|
+
__typename?: 'NamedEntityReference';
|
9847
|
+
id: string;
|
9848
|
+
name?: string | null;
|
9849
|
+
} | null;
|
9722
9850
|
occurrences?: Array<{
|
9723
9851
|
__typename?: 'ObservationOccurrence';
|
9724
9852
|
type?: OccurrenceTypes | null;
|
@@ -9807,6 +9935,7 @@ export type QueryContentsGraphQuery = {
|
|
9807
9935
|
__typename?: 'GraphEdge';
|
9808
9936
|
from: string;
|
9809
9937
|
to: string;
|
9938
|
+
relation?: string | null;
|
9810
9939
|
} | null> | null;
|
9811
9940
|
} | null;
|
9812
9941
|
} | null;
|
@@ -10108,6 +10237,21 @@ export type PromptConversationMutation = {
|
|
10108
10237
|
} | null;
|
10109
10238
|
} | null;
|
10110
10239
|
} | null> | null;
|
10240
|
+
graph?: {
|
10241
|
+
__typename?: 'Graph';
|
10242
|
+
nodes?: Array<{
|
10243
|
+
__typename?: 'GraphNode';
|
10244
|
+
id: string;
|
10245
|
+
type: EntityTypes;
|
10246
|
+
metadata?: string | null;
|
10247
|
+
} | null> | null;
|
10248
|
+
edges?: Array<{
|
10249
|
+
__typename?: 'GraphEdge';
|
10250
|
+
from: string;
|
10251
|
+
to: string;
|
10252
|
+
relation?: string | null;
|
10253
|
+
} | null> | null;
|
10254
|
+
} | null;
|
10111
10255
|
} | null;
|
10112
10256
|
};
|
10113
10257
|
export type PublishConversationMutationVariables = Exact<{
|
@@ -11629,6 +11773,7 @@ export type LookupUsageQuery = {
|
|
11629
11773
|
__typename?: 'Query';
|
11630
11774
|
lookupUsage?: Array<{
|
11631
11775
|
__typename?: 'ProjectUsageRecord';
|
11776
|
+
id?: string | null;
|
11632
11777
|
correlationId?: string | null;
|
11633
11778
|
date: any;
|
11634
11779
|
credits?: any | null;
|
@@ -11653,6 +11798,8 @@ export type LookupUsageQuery = {
|
|
11653
11798
|
completionTokens?: number | null;
|
11654
11799
|
tokens?: number | null;
|
11655
11800
|
count?: number | null;
|
11801
|
+
operation?: string | null;
|
11802
|
+
operationType?: OperationTypes | null;
|
11656
11803
|
request?: string | null;
|
11657
11804
|
variables?: string | null;
|
11658
11805
|
response?: string | null;
|
@@ -11687,6 +11834,7 @@ export type QueryUsageQuery = {
|
|
11687
11834
|
__typename?: 'Query';
|
11688
11835
|
usage?: Array<{
|
11689
11836
|
__typename?: 'ProjectUsageRecord';
|
11837
|
+
id?: string | null;
|
11690
11838
|
correlationId?: string | null;
|
11691
11839
|
date: any;
|
11692
11840
|
credits?: any | null;
|
@@ -11711,6 +11859,8 @@ export type QueryUsageQuery = {
|
|
11711
11859
|
completionTokens?: number | null;
|
11712
11860
|
tokens?: number | null;
|
11713
11861
|
count?: number | null;
|
11862
|
+
operation?: string | null;
|
11863
|
+
operationType?: OperationTypes | null;
|
11714
11864
|
request?: string | null;
|
11715
11865
|
variables?: string | null;
|
11716
11866
|
response?: string | null;
|
@@ -12029,6 +12179,16 @@ export type GetSpecificationQuery = {
|
|
12029
12179
|
__typename?: 'RerankingStrategy';
|
12030
12180
|
serviceType: RerankingModelServiceTypes;
|
12031
12181
|
} | null;
|
12182
|
+
graphStrategy?: {
|
12183
|
+
__typename?: 'GraphStrategy';
|
12184
|
+
type: GraphStrategyTypes;
|
12185
|
+
} | null;
|
12186
|
+
revisionStrategy?: {
|
12187
|
+
__typename?: 'RevisionStrategy';
|
12188
|
+
type: RevisionStrategyTypes;
|
12189
|
+
customRevision?: string | null;
|
12190
|
+
count?: number | null;
|
12191
|
+
} | null;
|
12032
12192
|
openAI?: {
|
12033
12193
|
__typename?: 'OpenAIModelProperties';
|
12034
12194
|
tokenLimit?: number | null;
|
@@ -12182,6 +12342,16 @@ export type QuerySpecificationsQuery = {
|
|
12182
12342
|
__typename?: 'RerankingStrategy';
|
12183
12343
|
serviceType: RerankingModelServiceTypes;
|
12184
12344
|
} | null;
|
12345
|
+
graphStrategy?: {
|
12346
|
+
__typename?: 'GraphStrategy';
|
12347
|
+
type: GraphStrategyTypes;
|
12348
|
+
} | null;
|
12349
|
+
revisionStrategy?: {
|
12350
|
+
__typename?: 'RevisionStrategy';
|
12351
|
+
type: RevisionStrategyTypes;
|
12352
|
+
customRevision?: string | null;
|
12353
|
+
count?: number | null;
|
12354
|
+
} | null;
|
12185
12355
|
openAI?: {
|
12186
12356
|
__typename?: 'OpenAIModelProperties';
|
12187
12357
|
tokenLimit?: number | null;
|
@@ -12340,6 +12510,7 @@ export type CreateWorkflowMutation = {
|
|
12340
12510
|
contentTypes?: Array<ContentTypes> | null;
|
12341
12511
|
fileTypes?: Array<FileTypes> | null;
|
12342
12512
|
extractedTypes?: Array<ObservableTypes> | null;
|
12513
|
+
extractedCount?: number | null;
|
12343
12514
|
azureText?: {
|
12344
12515
|
__typename?: 'AzureTextExtractionProperties';
|
12345
12516
|
confidenceThreshold?: number | null;
|
@@ -12517,6 +12688,7 @@ export type GetWorkflowQuery = {
|
|
12517
12688
|
contentTypes?: Array<ContentTypes> | null;
|
12518
12689
|
fileTypes?: Array<FileTypes> | null;
|
12519
12690
|
extractedTypes?: Array<ObservableTypes> | null;
|
12691
|
+
extractedCount?: number | null;
|
12520
12692
|
azureText?: {
|
12521
12693
|
__typename?: 'AzureTextExtractionProperties';
|
12522
12694
|
confidenceThreshold?: number | null;
|
@@ -12660,6 +12832,7 @@ export type QueryWorkflowsQuery = {
|
|
12660
12832
|
contentTypes?: Array<ContentTypes> | null;
|
12661
12833
|
fileTypes?: Array<FileTypes> | null;
|
12662
12834
|
extractedTypes?: Array<ObservableTypes> | null;
|
12835
|
+
extractedCount?: number | null;
|
12663
12836
|
azureText?: {
|
12664
12837
|
__typename?: 'AzureTextExtractionProperties';
|
12665
12838
|
confidenceThreshold?: number | null;
|
@@ -12797,6 +12970,7 @@ export type UpdateWorkflowMutation = {
|
|
12797
12970
|
contentTypes?: Array<ContentTypes> | null;
|
12798
12971
|
fileTypes?: Array<FileTypes> | null;
|
12799
12972
|
extractedTypes?: Array<ObservableTypes> | null;
|
12973
|
+
extractedCount?: number | null;
|
12800
12974
|
azureText?: {
|
12801
12975
|
__typename?: 'AzureTextExtractionProperties';
|
12802
12976
|
confidenceThreshold?: number | null;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.YouTubeTypes = exports.UnitTypes = exports.TimedPolicyRecurrenceTypes = exports.TimeIntervalTypes = exports.TextTypes = exports.TextRoles = exports.SummarizationTypes = exports.SpecificationTypes = exports.SoftwareFacetTypes = exports.SiteTypes = exports.SharePointAuthenticationTypes = exports.SearchTypes = exports.SearchQueryTypes = exports.RetrievalStrategyTypes = exports.ResourceConnectorTypes = exports.RerankingModelServiceTypes = exports.RepoFacetTypes = exports.ReplicateModels = exports.RenditionTypes = exports.PromptStrategyTypes = exports.ProductFacetTypes = exports.PolicyTimeTypes = exports.PlaceFacetTypes = exports.PersonFacetTypes = exports.OrientationTypes = exports.OrganizationFacetTypes = exports.OrderDirectionTypes = exports.OrderByTypes = exports.OpenAiVisionDetailLevels = void 0;
|
3
|
+
exports.OccurrenceTypes = exports.ObservableTypes = exports.NotionTypes = exports.ModelServiceTypes = exports.MistralModels = exports.MetadataTypes = exports.MailSensitivity = exports.MailPriority = exports.MailImportance = exports.LinkTypes = exports.LabelFacetTypes = exports.IntegrationServiceTypes = exports.ImageProjectionTypes = exports.H3ResolutionTypes = exports.GroqModels = exports.GraphStrategyTypes = exports.FileTypes = exports.FilePreparationServiceTypes = exports.FeedTypes = exports.FeedServiceTypes = exports.FeedListingTypes = exports.FeedConnectorTypes = exports.FacetValueTypes = exports.EventFacetTypes = exports.EnvironmentTypes = exports.EntityTypes = exports.EntityState = exports.EntityExtractionServiceTypes = exports.EntityEnrichmentServiceTypes = exports.EmailListingTypes = exports.ElevenLabsModels = exports.DeviceTypes = exports.DeepgramModels = exports.ConversationTypes = exports.ConversationStrategyTypes = exports.ConversationSearchTypes = exports.ConversationRoleTypes = exports.ContentTypes = exports.ContentPublishingServiceTypes = exports.ContentPublishingFormats = exports.ContentFacetTypes = exports.CollectionTypes = exports.CohereModels = exports.CategoryFacetTypes = exports.BillableMetrics = exports.AzureOpenAiModels = exports.AzureDocumentIntelligenceModels = exports.ApplyPolicy = exports.AnthropicModels = exports.AlertTypes = void 0;
|
4
|
+
exports.YouTubeTypes = exports.UnitTypes = exports.TimedPolicyRecurrenceTypes = exports.TimeIntervalTypes = exports.TextTypes = exports.TextRoles = exports.SummarizationTypes = exports.SpecificationTypes = exports.SoftwareFacetTypes = exports.SiteTypes = exports.SharePointAuthenticationTypes = exports.SearchTypes = exports.SearchQueryTypes = exports.RevisionStrategyTypes = exports.RetrievalStrategyTypes = exports.ResourceConnectorTypes = exports.RerankingModelServiceTypes = exports.RepoFacetTypes = exports.ReplicateModels = exports.RenditionTypes = exports.PromptStrategyTypes = exports.ProductFacetTypes = exports.PolicyTimeTypes = exports.PlaceFacetTypes = exports.PersonFacetTypes = exports.OrientationTypes = exports.OrganizationFacetTypes = exports.OrderDirectionTypes = exports.OrderByTypes = exports.OperationTypes = exports.OpenAiVisionDetailLevels = exports.OpenAiModels = void 0;
|
5
5
|
/** Alert type */
|
6
6
|
var AlertTypes;
|
7
7
|
(function (AlertTypes) {
|
@@ -614,6 +614,16 @@ var FileTypes;
|
|
614
614
|
/** Video file */
|
615
615
|
FileTypes["Video"] = "VIDEO";
|
616
616
|
})(FileTypes || (exports.FileTypes = FileTypes = {}));
|
617
|
+
/** GraphRAG strategies */
|
618
|
+
var GraphStrategyTypes;
|
619
|
+
(function (GraphStrategyTypes) {
|
620
|
+
/** Extract named entities from prompt, and assign as observations filter */
|
621
|
+
GraphStrategyTypes["ExtractEntitiesFilter"] = "EXTRACT_ENTITIES_FILTER";
|
622
|
+
/** Extract named entities from prompt, and aggregate vector search and graph query results */
|
623
|
+
GraphStrategyTypes["ExtractEntitiesGraph"] = "EXTRACT_ENTITIES_GRAPH";
|
624
|
+
/** Use standard RAG */
|
625
|
+
GraphStrategyTypes["None"] = "NONE";
|
626
|
+
})(GraphStrategyTypes || (exports.GraphStrategyTypes = GraphStrategyTypes = {}));
|
617
627
|
/** Groq model type */
|
618
628
|
var GroqModels;
|
619
629
|
(function (GroqModels) {
|
@@ -888,6 +898,10 @@ var OpenAiModels;
|
|
888
898
|
OpenAiModels["Custom"] = "CUSTOM";
|
889
899
|
/** GPT-4 (Latest version) */
|
890
900
|
OpenAiModels["Gpt4"] = "GPT4";
|
901
|
+
/** GPT-4o 128k (latest version) */
|
902
|
+
OpenAiModels["Gpt4O_128K"] = "GPT4O_128K";
|
903
|
+
/** GPT-4o 128k (2024-05-13 version) */
|
904
|
+
OpenAiModels["Gpt4O_128K_20240513"] = "GPT4O_128K_20240513";
|
891
905
|
/** GPT-4 (0613 version) */
|
892
906
|
OpenAiModels["Gpt4_0613"] = "GPT4_0613";
|
893
907
|
/** GPT-4 32k (Latest version) */
|
@@ -933,6 +947,13 @@ var OpenAiVisionDetailLevels;
|
|
933
947
|
/** Low */
|
934
948
|
OpenAiVisionDetailLevels["Low"] = "LOW";
|
935
949
|
})(OpenAiVisionDetailLevels || (exports.OpenAiVisionDetailLevels = OpenAiVisionDetailLevels = {}));
|
950
|
+
var OperationTypes;
|
951
|
+
(function (OperationTypes) {
|
952
|
+
/** GraphQL Mutation */
|
953
|
+
OperationTypes["Mutation"] = "MUTATION";
|
954
|
+
/** GraphQL Query */
|
955
|
+
OperationTypes["Query"] = "QUERY";
|
956
|
+
})(OperationTypes || (exports.OperationTypes = OperationTypes = {}));
|
936
957
|
/** Order by type */
|
937
958
|
var OrderByTypes;
|
938
959
|
(function (OrderByTypes) {
|
@@ -1083,6 +1104,16 @@ var RetrievalStrategyTypes;
|
|
1083
1104
|
/** Section-level retrieval, or page-level or segment-level retrieval, if no sections */
|
1084
1105
|
RetrievalStrategyTypes["Section"] = "SECTION";
|
1085
1106
|
})(RetrievalStrategyTypes || (exports.RetrievalStrategyTypes = RetrievalStrategyTypes = {}));
|
1107
|
+
/** Revision strategies */
|
1108
|
+
var RevisionStrategyTypes;
|
1109
|
+
(function (RevisionStrategyTypes) {
|
1110
|
+
/** Provide custom prompt for LLM to revise completion, and provide updated response */
|
1111
|
+
RevisionStrategyTypes["Custom"] = "CUSTOM";
|
1112
|
+
/** Use LLM completion */
|
1113
|
+
RevisionStrategyTypes["None"] = "NONE";
|
1114
|
+
/** Prompt LLM to revise completion, and provide updated response */
|
1115
|
+
RevisionStrategyTypes["Revise"] = "REVISE";
|
1116
|
+
})(RevisionStrategyTypes || (exports.RevisionStrategyTypes = RevisionStrategyTypes = {}));
|
1086
1117
|
/** Search query type */
|
1087
1118
|
var SearchQueryTypes;
|
1088
1119
|
(function (SearchQueryTypes) {
|