LLM-as-judge and Embedding Metrics
Supported LLM and model services
OpenAI
from openai import OpenAI
from dbnl.eval.llm import OpenAILLMClient
from dbnl.eval.embedding_clients import OpenAIEmbeddingClient
# create client for LLM-as-judge metrics
base_oai_client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
eval_llm_client = OpenAILLMClient.from_existing_client(
base_oai_client, llm_model="gpt-3.5-turbo-0125"
)
embd_client = OpenAIEmbeddingClient.from_existing_client(
base_oai_client, embedding_model="text-embedding-ada-002"
)Azure OpenAI
TogetherAI (or other OpenAI compatible service / endpoints)
Missing Metric Values
Throughput and Rate Limits
Was this helpful?

