Spaces:
Running
Running
chore: prevent local RAGAS embeddings by default
Browse files402 unmodified lines403404405406407408402 unmodified lines``ResponseRelevancy`` can compute cosine similarity between embeddings.The underlying ONNX model is cached globally and loads in <1 s."""try:from chromadb.utils import embedding_functions402 unmodified lines403404405406407408409410411402 unmodified lines``ResponseRelevancy`` can compute cosine similarity between embeddings.The underlying ONNX model is cached globally and loads in <1 s."""if os.getenv("OPENCODEREVIEW_ALLOW_LOCAL_EMBEDDINGS", "false").lower() not in {"1", "true", "yes"}:logger.info("Local RAGAS embeddings disabled; skipping answer relevancy")return Nonetry:from chromadb.utils import embedding_functions
eval_data/ragas_eval.py+3