Skip to content

Commit

Permalink
Losen langchain dependency version, add input to ragas recall, it's n…
Browse files Browse the repository at this point in the history
…ecessary
  • Loading branch information
rogeriochaves committed Nov 28, 2024
1 parent a49d1b6 commit b9346a8
Show file tree
Hide file tree
Showing 27 changed files with 2,853 additions and 2,573 deletions.
2 changes: 1 addition & 1 deletion evaluators/aws/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/aws/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-aws"
version = "0.1.6"
version = "0.1.7"
description = "LangEvals integration for AWS APIs evaluators"
authors = ["Rogerio Chaves <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/azure/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/azure/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-azure"
version = "0.1.8"
version = "0.1.9"
description = "LangEvals Azure Content Safety evaluator for LLM outputs."
authors = ["Rogerio Chaves <[email protected]>", "Yevhenii Budnyk <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/example/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/example/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-example"
version = "0.1.7"
version = "0.1.8"
description = "LangEvals boilerplate example evaluator for LLMs."
authors = ["Your Name <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/google_cloud/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/google_cloud/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-google-cloud"
version = "0.1.7"
version = "0.1.8"
description = "LangEvals integration for Google Cloud APIs evaluators"
authors = ["Rogerio Chaves <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/haystack/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/haystack/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-haystack"
version = "0.1.3"
version = "0.1.4"
description = "LangEvals Haystack evaluator"
authors = ["Rogerio Chaves <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/huggingface/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/huggingface/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-huggingface"
version = "0.1.6"
version = "0.1.7"
description = "Evaluators based on models available on huggingface."
authors = [
"Rogerio Chaves <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion evaluators/langevals/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/langevals/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-langevals"
version = "0.1.7"
version = "0.1.8"
description = "LangEvals core evaluators."
authors = ["Rogerio Chaves <[email protected]>", "Yevhenii Budnyk <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/lingua/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/lingua/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-lingua"
version = "0.1.6"
version = "0.1.7"
description = "LangEvals lingua evaluator for language detection."
authors = ["Rogerio Chaves <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/openai/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/openai/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-openai"
version = "0.1.7"
version = "0.1.8"
description = "LangEvals OpenAI moderation evaluator for LLM outputs."
authors = ["Rogerio Chaves <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion evaluators/presidio/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion evaluators/presidio/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langevals-presidio"
version = "0.1.1"
version = "0.1.2"
description = "LangEvals integration for Presidio"
authors = ["Rogerio Chaves <[email protected]>"]
license = "MIT"
Expand Down
3 changes: 3 additions & 0 deletions evaluators/ragas/langevals_ragas/context_recall.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


class RagasContextRecallEntry(EvaluatorEntry):
input: str
contexts: list[str]
expected_output: str

Expand All @@ -35,9 +36,11 @@ class RagasContextRecallEvaluator(
is_guardrail = False

def evaluate(self, entry: RagasContextRecallEntry) -> SingleEvaluationResult:
input = entry.input or ""
return evaluate_ragas(
evaluator=self,
metric="context_recall",
question=input,
contexts=entry.contexts,
ground_truth=entry.expected_output,
settings=self.settings,
Expand Down
Loading

0 comments on commit b9346a8

Please sign in to comment.