Skip to content

Commit 2344576

Browse files
Fix structure to work after install
1 parent 0f8f889 commit 2344576

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

benchmark/benchmark_llm_rag_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
sys.path.append(".")
4747
from guardrails import Guard
48-
from validator.prompts.prompts import (
48+
from validator.prompts import (
4949
Ml3RagContextEvalBasePrompt,
5050
RagContextUsefulnessPrompt,
5151
)

tests/test_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44

55
sys.path.append(".")
6-
from validator.prompts.prompts import RagContextUsefulnessPrompt
6+
from validator.prompts import RagContextUsefulnessPrompt
77

88
from validator.main import MLcubeRagContextValidator
99

validator/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
register_validator,
99
)
1010
import litellm
11-
from validator.prompts.prompts import (
11+
from .prompts import (
1212
Ml3RagContextEvalBasePrompt,
1313
)
14-
from validator.models import RagRatingResponse
14+
from .models import RagRatingResponse
1515
from langchain import chat_models
1616

1717
logger = logging.getLogger(__name__)
File renamed without changes.

validator/prompts/prompts.py renamed to validator/prompts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from abc import ABC, abstractmethod
2-
from validator.enums import TextLanguage
3-
from validator.prompts.prompt_hub import (
2+
from .enums import TextLanguage
3+
from .prompt_hub import (
44
RAG_CONTEXT_RELEVANCE_PROMPT,
55
RAG_CONTEXT_USEFULNESS_PROMPT,
66
)

validator/prompts/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)