Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ metrics:
report:
screens:
- title: Answer-Correctness
scores:
columns:
unitxt.answer_correctness.llmaaj_llama_mean: AC
chart:
type: bar
title: Answer-correctness
- title: Match@K
scores:
columns:
unitxt.context_correctness.retrieval_at_k.match_at_1_mean: M@1
unitxt.context_correctness.retrieval_at_k.match_at_3_mean: M@3
unitxt.context_correctness.retrieval_at_k.match_at_5_mean: M@5
Expand All @@ -53,7 +53,7 @@ report:
type: line
title: Match@K
- title: MAP & MRR
scores:
columns:
unitxt.context_correctness.mrr_mean: MRR
unitxt.context_correctness.map_mean: MAP
chart:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import traceback
from typing import Any

from ragworkbench.boards.board_model import CacheMode

from openrag_sdk import ContentEvent, DoneEvent, OpenRAGClient, SourcesEvent
from openrag_sdk.models import SettingsUpdateOptions
from pydantic import BaseModel, Field
Expand Down Expand Up @@ -50,6 +52,7 @@ def __init__(
self,
params: OpenRAGInferenceParams,
cache_dir: str | None = None,
cache_mode : CacheMode = CacheMode.ON,
) -> None:
"""
Initialize OpenRAG inference pipeline.
Expand All @@ -58,7 +61,7 @@ def __init__(
params: OpenRAG inference parameters
cache_dir: Optional directory for caching generation results
"""
super().__init__(params, cache_dir=cache_dir)
super().__init__(params, cache_dir=cache_dir, cache_mode=cache_mode)
self.params: OpenRAGInferenceParams = params
self._ingest_artifact: OpenRAGIngestArtifact | None = None

Expand Down
Loading