Skip to content

Commit

Permalink
add dbrx_inst
Browse files Browse the repository at this point in the history
  • Loading branch information
phtvo committed May 15, 2024
1 parent 1015a82 commit 59a1c6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions clarifai_model_utils/llm_eval/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

BGE_BASE_EMBED_MODEL = "https://clarifai.com/clarifai/main/models/BAAI-bge-base-en-v15"


@dataclass
class JUDGE_LLMS:
GPT3_5_TURBO = "https://clarifai.com/openai/chat-completion/models/GPT-3_5-turbo"
LLAMA2_CHAT_70B = "https://clarifai.com/meta/Llama-2/models/llama2-70b-chat"
GPT4 = "https://clarifai.com/openai/chat-completion/models/GPT-4"
DBRX_INSTRUCT = "https://clarifai.com/databricks/drbx/models/dbrx-instruct"
3 changes: 0 additions & 3 deletions clarifai_model_utils/llm_eval/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,6 @@ def evaluate(self,
generate_qa=generate_qa)
elif isinstance(dataset, pd.DataFrame): # local data
df = dataset
#assert dataset_id or app_id, ValueError(
# f"`dataset_id` or `app_id` is empty when using local dataset. Please pass them to kwargs"
#)
elif isinstance(dataset, HFDataset):
df = dataset.to_pandas(batched=False)
elif template in HARNESS_EVAL_TASK_MANAGER.all_tasks:
Expand Down
2 changes: 1 addition & 1 deletion examples/ragas_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
out = evaluator.evaluate(
template="ragas",
upload=False,
judge_llm_url=JUDGE_LLMS.GPT3_5_TURBO, # use GPT3.5 in RAGAS
judge_llm_url=JUDGE_LLMS.DBRX_INSTRUCT, # use databricks/DBRX-Instruct in RAGAS
dataset=df,
)

Expand Down

0 comments on commit 59a1c6f

Please sign in to comment.