curl --request POST \
--url http://127.0.0.1:9550/v2/update_job_scope \
--header 'Content-Type: application/json' \
--data '
{
"job_id": "<string>",
"job_scope": {
"local_vrkai": [
{
"vrkai": {
"metadata": {},
"resource": {
"Document": {
"created_datetime": "2023-12-25",
"data_tag_index": {
"index": {}
},
"distribution_info": {
"datetime": "2023-12-25",
"origin": {
"Uri": "<string>"
}
},
"embedding_model_used_string": "<string>",
"embeddings": [
{
"id": "<string>",
"vector": [
123
]
}
],
"keywords": {
"keyword_list": [
"<string>"
],
"keywords_embedding": {
"embedding": {
"id": "<string>",
"vector": [
123
]
},
"model_used": "<string>"
}
},
"last_written_datetime": "2023-12-25",
"metadata_index": {
"index": {}
},
"name": "<string>",
"node_count": 1,
"nodes": [
{
"content": {
"Text": "<string>"
},
"data_tag_names": [
"<string>"
],
"id": "<string>",
"last_written_datetime": "2023-12-25",
"merkle_hash": "<string>",
"metadata": {}
}
],
"resource_base_type": "Document",
"resource_embedding": {
"id": "<string>",
"vector": [
123
]
},
"resource_id": "<string>",
"source": {
"Standard": {
"FileRef": {
"file_name": "<string>",
"file_type": {
"Document": "Pdf"
},
"text_chunking_strategy": "V1"
}
}
},
"description": "<string>",
"merkle_root": "<string>"
}
},
"version": "V1",
"sfm": {
"map": {},
"source_files_count": 1
}
}
}
],
"local_vrpack": [
{
"vrpack": {
"embedding_models_used": {},
"folder_count": 1,
"metadata": {},
"name": "<string>",
"resource": {
"Document": {
"created_datetime": "2023-12-25",
"data_tag_index": {
"index": {}
},
"distribution_info": {
"datetime": "2023-12-25",
"origin": {
"Uri": "<string>"
}
},
"embedding_model_used_string": "<string>",
"embeddings": [
{
"id": "<string>",
"vector": [
123
]
}
],
"keywords": {
"keyword_list": [
"<string>"
],
"keywords_embedding": {
"embedding": {
"id": "<string>",
"vector": [
123
]
},
"model_used": "<string>"
}
},
"last_written_datetime": "2023-12-25",
"metadata_index": {
"index": {}
},
"name": "<string>",
"node_count": 1,
"nodes": [
{
"content": {
"Text": "<string>"
},
"data_tag_names": [
"<string>"
],
"id": "<string>",
"last_written_datetime": "2023-12-25",
"merkle_hash": "<string>",
"metadata": {}
}
],
"resource_base_type": "Document",
"resource_embedding": {
"id": "<string>",
"vector": [
123
]
},
"resource_id": "<string>",
"source": {
"Standard": {
"FileRef": {
"file_name": "<string>",
"file_type": {
"Document": "Pdf"
},
"text_chunking_strategy": "V1"
}
}
},
"description": "<string>",
"merkle_root": "<string>"
}
},
"version": "V1",
"vrkai_count": 1
}
}
],
"network_folders": [
{
"external_identity": {
"full_name": "<string>",
"node_name": "<string>",
"profile_name": "<string>",
"subidentity_name": "<string>",
"subidentity_type": "Agent"
},
"name": "<string>",
"path": {
"path_ids": [
"<string>"
]
}
}
],
"vector_fs_folders": [
{
"name": "<string>",
"path": {
"path_ids": [
"<string>"
]
}
}
],
"vector_fs_items": [
{
"name": "<string>",
"path": {
"path_ids": [
"<string>"
]
},
"source": {
"Standard": {
"FileRef": {
"file_name": "<string>",
"file_type": {
"Document": "Pdf"
},
"text_chunking_strategy": "V1"
}
}
}
}
]
}
}
'{
"code": 1,
"error": "<string>",
"message": "<string>"
}curl --request POST \
--url http://127.0.0.1:9550/v2/update_job_scope \
--header 'Content-Type: application/json' \
--data '
{
"job_id": "<string>",
"job_scope": {
"local_vrkai": [
{
"vrkai": {
"metadata": {},
"resource": {
"Document": {
"created_datetime": "2023-12-25",
"data_tag_index": {
"index": {}
},
"distribution_info": {
"datetime": "2023-12-25",
"origin": {
"Uri": "<string>"
}
},
"embedding_model_used_string": "<string>",
"embeddings": [
{
"id": "<string>",
"vector": [
123
]
}
],
"keywords": {
"keyword_list": [
"<string>"
],
"keywords_embedding": {
"embedding": {
"id": "<string>",
"vector": [
123
]
},
"model_used": "<string>"
}
},
"last_written_datetime": "2023-12-25",
"metadata_index": {
"index": {}
},
"name": "<string>",
"node_count": 1,
"nodes": [
{
"content": {
"Text": "<string>"
},
"data_tag_names": [
"<string>"
],
"id": "<string>",
"last_written_datetime": "2023-12-25",
"merkle_hash": "<string>",
"metadata": {}
}
],
"resource_base_type": "Document",
"resource_embedding": {
"id": "<string>",
"vector": [
123
]
},
"resource_id": "<string>",
"source": {
"Standard": {
"FileRef": {
"file_name": "<string>",
"file_type": {
"Document": "Pdf"
},
"text_chunking_strategy": "V1"
}
}
},
"description": "<string>",
"merkle_root": "<string>"
}
},
"version": "V1",
"sfm": {
"map": {},
"source_files_count": 1
}
}
}
],
"local_vrpack": [
{
"vrpack": {
"embedding_models_used": {},
"folder_count": 1,
"metadata": {},
"name": "<string>",
"resource": {
"Document": {
"created_datetime": "2023-12-25",
"data_tag_index": {
"index": {}
},
"distribution_info": {
"datetime": "2023-12-25",
"origin": {
"Uri": "<string>"
}
},
"embedding_model_used_string": "<string>",
"embeddings": [
{
"id": "<string>",
"vector": [
123
]
}
],
"keywords": {
"keyword_list": [
"<string>"
],
"keywords_embedding": {
"embedding": {
"id": "<string>",
"vector": [
123
]
},
"model_used": "<string>"
}
},
"last_written_datetime": "2023-12-25",
"metadata_index": {
"index": {}
},
"name": "<string>",
"node_count": 1,
"nodes": [
{
"content": {
"Text": "<string>"
},
"data_tag_names": [
"<string>"
],
"id": "<string>",
"last_written_datetime": "2023-12-25",
"merkle_hash": "<string>",
"metadata": {}
}
],
"resource_base_type": "Document",
"resource_embedding": {
"id": "<string>",
"vector": [
123
]
},
"resource_id": "<string>",
"source": {
"Standard": {
"FileRef": {
"file_name": "<string>",
"file_type": {
"Document": "Pdf"
},
"text_chunking_strategy": "V1"
}
}
},
"description": "<string>",
"merkle_root": "<string>"
}
},
"version": "V1",
"vrkai_count": 1
}
}
],
"network_folders": [
{
"external_identity": {
"full_name": "<string>",
"node_name": "<string>",
"profile_name": "<string>",
"subidentity_name": "<string>",
"subidentity_type": "Agent"
},
"name": "<string>",
"path": {
"path_ids": [
"<string>"
]
}
}
],
"vector_fs_folders": [
{
"name": "<string>",
"path": {
"path_ids": [
"<string>"
]
}
}
],
"vector_fs_items": [
{
"name": "<string>",
"path": {
"path_ids": [
"<string>"
]
},
"source": {
"Standard": {
"FileRef": {
"file_name": "<string>",
"file_type": {
"Document": "Pdf"
},
"text_chunking_strategy": "V1"
}
}
}
}
]
}
}
'{
"code": 1,
"error": "<string>",
"message": "<string>"
}Job's scope which includes both Local entries (vrkai stored locally only in job) and VecFS entries (source/vector resource stored in the FS, accessible to all jobs)
Show child attributes
Show child attributes
Represents a parsed VRKai file with a BaseVectorResource, and optional SourceFileMap.
To save as a file or transfer the VRKai, call one of the prepare_as_ methods. To parse from a file/transfer, use the from_ methods.
Show child attributes
The list of base/core VectorResource types which are fully composable within one another
Show child attributes
A VectorResource which uses an internal numbered/ordered list data model, thus providing an ideal interface for document-like content such as PDFs, epubs, web content, written works, and more.
Show child attributes
Info about where the source data was acquired from, and when it was originally distributed
Show child attributes
The origin where the original data was acquired from. Based on source file that was used to create the VR if one exists (ie. pdf/webpage), or based on the VR where/when it was released
Show child attributes
A struct which holds a Vector Resource's keywords/optional keywords embedding
Show child attributes
Struct which holds the embedding for a Vector Resource's keywords
Show child attributes
A struct that represents a Vector Embedding with an added string id.
x >= 0Show child attributes
Enum used for VectorResources to self-attest their base type.
CustomUnsupported(s) allows for devs to implement custom VectorResources that fulfill the trait,
but which aren't composable with any of the base resources (we are open to PRs for adding new base types as well).
Document Information about the source content a Vector Resource came from
Show child attributes
Type that acts as a reference to external file/content/data
Show child attributes
Show child attributes
What text chunking strategy was used to create this VR from the source file. This is required for performing content validation/that it matches the VR nodes. TODO: Think about how to make this more explicit/specific and future support
V1 V1 A map which stores SourceFiles based on VRPaths within a VectorResource. A SourceFile at root represents the single source file for the whole VR.
Show child attributes
Show child attributes
Struct which holds the data of a source file which a VR was generated from
Show child attributes
A standard source file that data was extracted from to create a VectorResource.
Show child attributes
Info about where the source data was acquired from, and when it was originally distributed
Show child attributes
The origin where the original data was acquired from. Based on source file that was used to create the VR if one exists (ie. pdf/webpage), or based on the VR where/when it was released
Show child attributes
x >= 0Show child attributes
Represents a parsed VRPack file, which contains a Map Vector Resource that holds a tree structure of folders & encoded VRKai nodes.
In other words, a .vrpack file is akin to a "compressed archive" of internally held VRKais with folder structure preserved.
Of note, VRPacks are not compressed at the top level because the VRKais held inside already are. This improves performance for large VRPacks.
To save as a file or transfer the VRPack, call one of the encode_as_ methods. To parse from a file/transfer, use the from_ methods.
Show child attributes
x >= 0The list of base/core VectorResource types which are fully composable within one another
Show child attributes
A VectorResource which uses an internal numbered/ordered list data model, thus providing an ideal interface for document-like content such as PDFs, epubs, web content, written works, and more.
Show child attributes
Info about where the source data was acquired from, and when it was originally distributed
Show child attributes
The origin where the original data was acquired from. Based on source file that was used to create the VR if one exists (ie. pdf/webpage), or based on the VR where/when it was released
Show child attributes
A struct which holds a Vector Resource's keywords/optional keywords embedding
Show child attributes
Struct which holds the embedding for a Vector Resource's keywords
Show child attributes
A struct that represents a Vector Embedding with an added string id.
x >= 0Show child attributes
Enum used for VectorResources to self-attest their base type.
CustomUnsupported(s) allows for devs to implement custom VectorResources that fulfill the trait,
but which aren't composable with any of the base resources (we are open to PRs for adding new base types as well).
Document Information about the source content a Vector Resource came from
Show child attributes
Type that acts as a reference to external file/content/data
Show child attributes
Show child attributes
Show child attributes
Pdf What text chunking strategy was used to create this VR from the source file. This is required for performing content validation/that it matches the VR nodes. TODO: Think about how to make this more explicit/specific and future support
V1 V1 x >= 0Show child attributes
Show child attributes
Agent, Device A path inside of a Vector Resource to a Node which exists somewhere in the hierarchy. Internally the path is made up of an ordered list of Node ids (Int-holding strings for Docs, any string for Maps).
Show child attributes
Show child attributes
A path inside of a Vector Resource to a Node which exists somewhere in the hierarchy. Internally the path is made up of an ordered list of Node ids (Int-holding strings for Docs, any string for Maps).
Show child attributes
Show child attributes
A path inside of a Vector Resource to a Node which exists somewhere in the hierarchy. Internally the path is made up of an ordered list of Node ids (Int-holding strings for Docs, any string for Maps).
Show child attributes
Information about the source content a Vector Resource came from
Show child attributes
Type that acts as a reference to external file/content/data
Show child attributes
Show child attributes
What text chunking strategy was used to create this VR from the source file. This is required for performing content validation/that it matches the VR nodes. TODO: Think about how to make this more explicit/specific and future support
V1 Successfully updated job scope
Was this page helpful?