Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 865 Bytes

File metadata and controls

30 lines (20 loc) · 865 Bytes

Groundedness Evaluation

This is a flow leverage llm to eval groundedness: whether answer is stating facts that are all present in the given context.

Tools used in this flow:

  • python tool
  • built-in llm tool

0. Setup connection

Prepare your Azure Open AI resource follow this instruction and get your api_key if you don't have one.

# Override keys with --set to avoid yaml file changes
pf connection create --file ../../../connections/azure_openai.yml --set api_key=<your_api_key> api_base=<your_api_base>

1. Test flow/node

# test with default input value in flow.dag.yaml
pf flow test --flow .

2. create flow run with multi line data

pf run create --flow . --data ./data.jsonl --stream