LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
cleaned context removed (#1275)
Jaseem Jase50423101aa8
diff --git a/prompt-service/src/unstract/prompt_service/constants.py b/prompt-service/src/unstract/prompt_service/constants.pyindex b49aec238..b8660eb4f 100644--- a/prompt-service/src/unstract/prompt_service/constants.py+++ b/prompt-service/src/unstract/prompt_service/constants.py@@ -66,7 +66,6 @@ class PromptServiceConstants:EPILOGUE = "epilogue"PLATFORM_POSTAMBLE = "platform_postamble"HIGHLIGHT_DATA_PLUGIN = "highlight-data"- CLEAN_CONTEXT = "clean-context"SUMMARIZE_AS_SOURCE = "summarize_as_source"VARIABLE_MAP = "variable_map"RECORD = "record"diff --git a/prompt-service/src/unstract/prompt_service/helpers/plugin.py b/prompt-service/src/unstract/prompt_service/helpers/plugin.pyindex 48147d5ae..8cd6e9aba 100644--- a/prompt-service/src/unstract/prompt_service/helpers/plugin.py+++ b/prompt-service/src/unstract/prompt_service/helpers/plugin.py@@ -5,8 +5,6 @@ from typing import Anyfrom flask import Flask-from unstract.prompt_service.constants import PromptServiceConstants as PSKeys-class PluginManager:_instance = None@@ -74,13 +72,6 @@ class PluginManager:"""Get the plugin metadata by name."""return self.plugins.get(name, {})- def get_cleaned_context(self, context: set[str]) -> list[str]:- """Returns cleaned context from the clean context plugin."""- clean_context_plugin = self.get_plugin(PSKeys.CLEAN_CONTEXT)- if clean_context_plugin:- return clean_context_plugin["entrypoint_cls"].run(context=context)- return list(context)-def plugin_loader(app: Flask) -> None:manager = PluginManager(app)