Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Azure-Samples/rag-postgres-openai-python
/ answer_formatter
Function
answer_formatter
evals/generate_ground_truth.py:72–73 ·
view source on GitHub ↗
(answer, source)
Source
from the content-addressed store, hash-verified
70
71
72
def
answer_formatter(answer, source) -> str:
73
return
f
"{answer} [{source['id']}]"
74
75
76
def
get_openai_client() -> tuple[OpenAI, str]:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected