Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

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.py
index 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.py
index 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 Any
from 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)