Skip to content

Commit 95d8318

Browse files
authored
Llama Index integration: optional RunConfig for evaluate() (#1085)
Fixes #1076, #1057?
1 parent 9fa33ac commit 95d8318

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ragas/integrations/llama_index.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from ragas.executor import Executor
1414
from ragas.llms import LlamaIndexLLMWrapper
1515
from ragas.validation import EVALMODE_TO_COLUMNS, validate_evaluation_modes
16+
from ragas.run_config import RunConfig
1617

1718
if t.TYPE_CHECKING:
1819
from llama_index.core.base.embeddings.base import (
@@ -48,6 +49,7 @@ def evaluate(
4849
embeddings: t.Optional[LlamaIndexEmbeddings] = None,
4950
raise_exceptions: bool = True,
5051
column_map: t.Optional[t.Dict[str, str]] = None,
52+
run_config: t.Optional[RunConfig] = None,
5153
) -> Result:
5254
column_map = column_map or {}
5355

@@ -67,6 +69,7 @@ def evaluate(
6769
desc="Running Query Engine",
6870
keep_progress_bar=True,
6971
raise_exceptions=raise_exceptions,
72+
run_config=run_config,
7073
)
7174

7275
# get query

0 commit comments

Comments
 (0)