Skip to content
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

Fix incorrect variable name in RetrieverTool #16242

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

GICodeWarrior
Copy link
Contributor

@GICodeWarrior GICodeWarrior commented Sep 27, 2024

Description

This change fixes a pydantic serialization error when using both RetrieverTool and phoenix/llamatrace.

input is referencing the python built-in rather than the desired query input.

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

To reproduce, setup llamatrace on a project and use the retriever tool. Note that pydantic serialization exceptions are logged by the openinference handler.
https://github.com/Arize-ai/openinference/blob/main/python/instrumentation/openinference-instrumentation-llama-index/src/openinference/instrumentation/llama_index/_handler.py#L249-L254

  • I stared at the code and made sure it makes sense

Suggested Checklist:

  • I have performed a self-review of my own code

This change fixes a pydantic serialization error when using both RetrieverTool and phoenix/llamatrace.

`input` is referencing the python built-in rather than the desired query input.
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Sep 27, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 27, 2024
@logan-markewich logan-markewich merged commit 746bdce into run-llama:main Sep 27, 2024
10 checks passed
raspawar pushed a commit to raspawar/llama_index that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants