From 8a6b15b01f258428c38656ae29a9eebf55c87f50 Mon Sep 17 00:00:00 2001 From: "DESKTOP-BT28C5N\\FL_LPT-789" Date: Mon, 29 Sep 2025 13:01:15 +0530 Subject: [PATCH] removing unused evaluation code --- evaluation/Dockerfile | 26 ------------------------ evaluation/eval.py | 14 ------------- evaluation/fargate_evaluation.Dockerfile | 26 ------------------------ evaluation/requirements.txt | 12 ----------- 4 files changed, 78 deletions(-) delete mode 100644 evaluation/Dockerfile delete mode 100644 evaluation/eval.py delete mode 100644 evaluation/fargate_evaluation.Dockerfile delete mode 100644 evaluation/requirements.txt diff --git a/evaluation/Dockerfile b/evaluation/Dockerfile deleted file mode 100644 index 9c1d1a7f..00000000 --- a/evaluation/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -# Use the official AWS Lambda Python 3.9 runtime base image -FROM public.ecr.aws/lambda/python:3.9 - -# Create and set the working directory inside the container -WORKDIR /var/task - -# Copy the requirements file to the working directory -COPY evaluation/requirements.txt . - -# Install dependencies into the /var/task directory (where Lambda expects them) -RUN pip install --no-cache-dir -r requirements.txt --target . - -# Copy the necessary files and directories -COPY baseclasses/ baseclasses/ -COPY config/ config/ -COPY core/ core/ -COPY evaluation/ evaluation/ -COPY util/ util/ -COPY lambda_handlers/evaluation_handler.py . - -# Set environment variables -ENV PYTHONPATH=/var/task -ENV PYTHONUNBUFFERED=1 - -# Lambda runtime will look for the handler function here -CMD ["evaluation_handler.lambda_handler"] diff --git a/evaluation/eval.py b/evaluation/eval.py deleted file mode 100644 index f2b8febc..00000000 --- a/evaluation/eval.py +++ /dev/null @@ -1,14 +0,0 @@ -from config.experimental_config import ExperimentalConfig -from typing import List, Dict, Optional -import logging -from core.processors import EvalProcessor - -logger = logging.getLogger(__name__) - - -def evaluate(experiment_config: ExperimentalConfig): - try: - EvalProcessor(experiment_config).evaluate() - except Exception as e: - logger.error(f"Error during evaluation: {e}") - raise \ No newline at end of file diff --git a/evaluation/fargate_evaluation.Dockerfile b/evaluation/fargate_evaluation.Dockerfile deleted file mode 100644 index 9241c9eb..00000000 --- a/evaluation/fargate_evaluation.Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -# Use the official AWS Lambda Python 3.9 runtime base image -FROM --platform=linux/amd64 python:3.9-slim - -# Create and set the working directory inside the container -WORKDIR /var/task - -# Copy the requirements file to the working directory -COPY indexing/requirements.txt . - -# Install dependencies into the /var/task directory (where Lambda expects them) -RUN pip install --no-cache-dir -r requirements.txt --target . - -# Copy the necessary files and directories -COPY baseclasses/ baseclasses/ -COPY config/ config/ -COPY core/ core/ -COPY evaluation/ evaluation/ -COPY util/ util/ -COPY handlers/task_processor.py . -COPY handlers/fargate_eval_handler.py . - -# Set environment variables -ENV PYTHONPATH=/var/task -ENV PYTHONUNBUFFERED=1 - -CMD ["python", "fargate_eval_handler.py"] \ No newline at end of file diff --git a/evaluation/requirements.txt b/evaluation/requirements.txt deleted file mode 100644 index 9f27fa74..00000000 --- a/evaluation/requirements.txt +++ /dev/null @@ -1,12 +0,0 @@ -boto3==1.35.87 -botocore==1.35.87 -fastapi==0.115.5 -langchain_community==0.3.7 -opensearch_py==2.7.1 -pydantic==2.9.2 -python-dotenv==1.0.1 -uvicorn==0.32.0 -ragas==0.2.13 -RapidFuzz==3.10.1 -rouge_score==0.1.2 -langchain_aws==0.2.7 \ No newline at end of file