Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ def __init__(self, real_call): # DO NOT ADD TYPEHINT PROMPT FLOW WILL SCREAM AT
# are known to throw at this, mash them into kwargs, and then pass them into the real call.
async def __call__(
self, *, query=None, response=None, context=None, conversation=None, ground_truth=None,
tool_call=None, tool_definitions=None, messages=None, **kwargs
tool_call=None, tool_definitions=None, messages=None, retrieval_ground_truth=None,
retrieved_documents=None,**kwargs
):
if conversation is not None:
kwargs["conversation"] = conversation
Expand All @@ -515,5 +516,9 @@ async def __call__(
kwargs["tool_definitions"] = tool_definitions
if messages is not None:
kwargs["messages"] = messages
if retrieval_ground_truth is not None:
kwargs["retrieval_ground_truth"] = retrieval_ground_truth
if retrieved_documents is not None:
kwargs["retrieved_documents"] = retrieved_documents

return await self._real_call(**kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------

from ._document_retrieval import DocumentRetrievalEvaluator, RetrievalGroundTruthDocument, RetrievedDocument

__all__ = [
"DocumentRetrievalEvaluator",
"RetrievalGroundTruthDocument",
"RetrievedDocument"
]
Loading