-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated async and custom output processor testcase for metamodel #58
Conversation
Signed-off-by: sachintendulkar576123 <[email protected]>
object_name="BaseRetriever", | ||
method="invoke", | ||
wrapper=task_wrapper, | ||
output_processor=["entities.json"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this entities.json loaded from ? if consumer wants to provide a different path, how can he do so ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added entities.json from test folder
Signed-off-by: sachintendulkar576123 <[email protected]>
@@ -190,11 +191,18 @@ async def allm_wrapper(tracer, to_wrap, wrapped, instance, args, kwargs): | |||
else: | |||
name = f"langchain.task.{instance.__class__.__name__}" | |||
with tracer.start_as_current_span(name) as span: | |||
update_llm_endpoint(curr_span=span, instance=instance) | |||
if 'haystack.components.retrievers' in to_wrap['package'] and 'haystack.retriever' in span.name: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this code new or just showing new in diff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no this not new code just same same as llm_wrapper but for allm_wrapper
Looks like this PR reverts changes made in previous PR, can you check that? |
Signed-off-by: sachintendulkar576123 <[email protected]>
Signed-off-by: sachintendulkar576123 <[email protected]>
Proposed changes
This PR :
Added the custom output processor testcase for metamodel.
Added async testcase for metamodel
Types of changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...