LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
Remove the remote storage tool registry file (#895)
Gayathria079a9f54fb8
diff --git a/unstract/tool-registry/src/unstract/tool_registry/tool_registry.py b/unstract/tool-registry/src/unstract/tool_registry/tool_registry.pyindex 3de029420..4a060a3a0 100644--- a/unstract/tool-registry/src/unstract/tool_registry/tool_registry.py+++ b/unstract/tool-registry/src/unstract/tool_registry/tool_registry.py@@ -26,12 +26,8 @@ logger = logging.getLogger(__name__)class ToolRegistry:REGISTRY_FILE = "registry.yaml"- if check_feature_flag_status(FeatureFlag.REMOTE_FILE_STORAGE):- PRIVATE_TOOL_CONFIG_FILE = "private_tools_remote_storage.json"- PUBLIC_TOOL_CONFIG_FILE = "public_tools_remote_storage.json"- else:- PRIVATE_TOOL_CONFIG_FILE = "private_tools.json"- PUBLIC_TOOL_CONFIG_FILE = "public_tools.json"+ PRIVATE_TOOL_CONFIG_FILE = "private_tools.json"+ PUBLIC_TOOL_CONFIG_FILE = "public_tools.json"def __init__(self,diff --git a/unstract/tool-registry/tool_registry_config/public_tools_remote_storage.json b/unstract/tool-registry/tool_registry_config/public_tools_remote_storage.jsondeleted file mode 100644index 412549e8d..000000000--- a/unstract/tool-registry/tool_registry_config/public_tools_remote_storage.json+++ /dev/null@@ -1,198 +0,0 @@-{- "classify": {- "tool_uid": "classify",- "properties": {- "schemaVersion": "0.0.1",- "displayName": "File Classifier Remote Storage",- "functionName": "classify",- "toolVersion": "0.0.40",- "description": "Classifies a file into a bin based on its contents",- "input": {- "description": "File to be classified"- },- "output": {- "description": "Places the file into a folder (bin) that its classified into."- },- "result": {- "type": "JSON",- "description": "JSON response containing the bin to which the file was classified into",- "schema": {}- },- "adapter": {- "languageModels": [- {- "isEnabled": true,- "title": "Classifier LLM",- "isRequired": true,- "description": "LLM to use for classification"- }- ],- "embeddingServices": [- {- "isEnabled": false- }- ],- "vectorStores": [- {- "isEnabled": false- }- ],- "textExtractors": [- {- "isEnabled": true,- "adapterId": "textExtractorId",- "title": "Text Extraction Adapter",- "isRequired": true,- "description": "Choose extractor adapter to extract text"- }- ]- },- "ioCompatibility": {- "api": {- "sourceSupport": true,- "destinationSupport": true,- "additionalArgs": {- "sync": true- }- },- "file": {- "sourceSupport": true,- "destinationSupport": true,- "additionalArgs": {}- },- "db": {- "destinationSupport": true,- "additionalArgs": {}- }- },- "restrictions": {- "maxFileSize": "50MB",- "allowedFileTypes": [- "*"- ]- }- },- "spec": {- "title": "Document classifier tool settings",- "description": "Classify documents based on their content",- "type": "object",- "required": [- "classificationBins"- ],- "properties": {- "classificationBins": {- "type": "array",- "title": "Classification bins",- "description": "Specify at least two unique classification bins. 'unknown' and '__unstract_failed' are reserved bins. 'unknown' indicates the LLM can't determine the classification and `__unstract_failed` indicates a tool run failure for the given file.",- "items": {- "type": "string"- },- "minItems": 2,- "uniqueItems": true- },- "useCache": {- "type": "boolean",- "title": "Cache and use cached results",- "default": true,- "description": "Use cached results"- }- }- },- "variables": {- "title": "Runtime Variables",- "description": "Runtime Variables for classifier",- "type": "object",- "required": [],- "properties": {}- },- "icon": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg\n enable-background=\"new 0 0 20 20\"\n height=\"48\"\n viewBox=\"0 0 20 20\"\n width=\"48\"\n fill=\"#000000\"\n version=\"1.1\"\n id=\"svg8109\"\n sodipodi:docname=\"folder_copy_black_48dp.svg\"\n xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:svg=\"http://www.w3.org/2000/svg\">\n <defs\n id=\"defs8113\" />\n <sodipodi:namedview\n id=\"namedview8111\"\n pagecolor=\"#ffffff\"\n bordercolor=\"#000000\"\n borderopacity=\"0.25\"\n inkscape:showpageshadow=\"2\"\n inkscape:pageopacity=\"0.0\"\n inkscape:pagecheckerboard=\"0\"\n inkscape:deskcolor=\"#d1d1d1\"\n showgrid=\"false\" />\n <g\n id=\"g8099\">\n <rect\n fill=\"none\"\n height=\"20\"\n width=\"20\"\n x=\"0\"\n id=\"rect8097\"\n y=\"0\" />\n </g>\n <g\n id=\"g8107\"\n style=\"fill:#ff4d6d;fill-opacity:1\">\n <g\n id=\"g8105\"\n style=\"fill:#ff4d6d;fill-opacity:1\">\n <path\n d=\"M 2.5,5 H 1 V 15.5 C 1,16.33 1.67,17 2.5,17 H 15.68 V 15.5 H 2.5 Z\"\n id=\"path8101\"\n style=\"fill:#ff4d6d;fill-opacity:1\" />\n <path\n d=\"M 16.5,4 H 11 L 9,2 H 5.5 C 4.67,2 4,2.67 4,3.5 v 9 C 4,13.33 4.67,14 5.5,14 h 11 c 0.83,0 1.5,-0.67 1.5,-1.5 v -7 C 18,4.67 17.33,4 16.5,4 Z m 0,8.5 h -11 v -9 h 2.88 l 2,2 h 6.12 z\"\n id=\"path8103\"\n style=\"fill:#ff4d6d;fill-opacity:1\" />\n </g>\n </g>\n</svg>\n",- "image_url": "docker:unstract/tool-classifier:0.0.40",- "image_name": "unstract/tool-classifier",- "image_tag": "0.0.40"- },- "text_extractor": {- "tool_uid": "text_extractor",- "properties": {- "schemaVersion": "0.0.1",- "displayName": "Text Extractor Remote Storage",- "functionName": "text_extractor",- "toolVersion": "0.0.39",- "description": "The Text Extractor is a powerful tool designed to convert documents to its text form or Extract texts from documents",- "input": {- "description": "Document"- },- "output": {- "description": "structured json output"- },- "result": {- "type": "TXT",- "description": "Text format of input",- "schema": {}- },- "adapter": {- "textExtractors": [- {- "isEnabled": true,- "adapterId": "extractorId",- "title": "Text Extraction Adapter",- "isRequired": true,- "description": "Adapter to extract"- }- ]- },- "ioCompatibility": {- "api": {- "sourceSupport": true,- "destinationSupport": true,- "additionalArgs": {- "sync": true- }- },- "file": {- "sourceSupport": true,- "destinationSupport": true,- "additionalArgs": {}- },- "db": {- "destinationSupport": true,- "additionalArgs": {}- }- },- "restrictions": {- "maxFileSize": "10MB",- "allowedFileTypes": [- "*"- ]- }- },- "spec": {- "title": "Text Extractor tool settings",- "description": "Text extraction from documents",- "type": "object",- "required": [],- "properties": {}- },- "variables": {- "title": "Runtime Variables",- "description": "Runtime Variables for text extractor",- "type": "object",- "required": [],- "properties": {- "X2TEXT_HOST": {- "type": "string",- "title": "X2Text service host",- "description": "The host where the x2text service is running"- },- "X2TEXT_PORT": {- "type": "string",- "title": "X2Text service port",- "description": "The port where the x2text service is running"- }- }- },- "icon": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<svg\n enable-background=\"new 0 0 20 20\"\n height=\"48\"\n viewBox=\"0 0 20 20\"\n width=\"48\"\n fill=\"#000000\"\n version=\"1.1\"\n id=\"svg8109\"\n sodipodi:docname=\"folder_copy_black_48dp.svg\"\n xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:svg=\"http://www.w3.org/2000/svg\">\n <defs\n id=\"defs8113\" />\n <sodipodi:namedview\n id=\"namedview8111\"\n pagecolor=\"#ffffff\"\n bordercolor=\"#000000\"\n borderopacity=\"0.25\"\n inkscape:showpageshadow=\"2\"\n inkscape:pageopacity=\"0.0\"\n inkscape:pagecheckerboard=\"0\"\n inkscape:deskcolor=\"#d1d1d1\"\n showgrid=\"false\" />\n <g\n id=\"g8099\">\n <rect\n fill=\"none\"\n height=\"20\"\n width=\"20\"\n x=\"0\"\n id=\"rect8097\"\n y=\"0\" />\n </g>\n <g\n id=\"g8107\"\n style=\"fill:#ff4d6d;fill-opacity:1\">\n <g\n id=\"g8105\"\n style=\"fill:#ff4d6d;fill-opacity:1\">\n <path\n d=\"M 2.5,5 H 1 V 15.5 C 1,16.33 1.67,17 2.5,17 H 15.68 V 15.5 H 2.5 Z\"\n id=\"path8101\"\n style=\"fill:#ff4d6d;fill-opacity:1\" />\n <path\n d=\"M 16.5,4 H 11 L 9,2 H 5.5 C 4.67,2 4,2.67 4,3.5 v 9 C 4,13.33 4.67,14 5.5,14 h 11 c 0.83,0 1.5,-0.67 1.5,-1.5 v -7 C 18,4.67 17.33,4 16.5,4 Z m 0,8.5 h -11 v -9 h 2.88 l 2,2 h 6.12 z\"\n id=\"path8103\"\n style=\"fill:#ff4d6d;fill-opacity:1\" />\n </g>\n </g>\n</svg>\n",- "image_url": "docker:unstract/tool-text-extractor:0.0.39",- "image_name": "unstract/tool-text-extractor",- "image_tag": "0.0.39"- }-}