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

Fixes to SelfQueryRetriever and LLMRouterChain deprecation warning #10617

Closed
wants to merge 2 commits into from

Conversation

RoderickVM
Copy link

@RoderickVM RoderickVM commented Sep 15, 2023

PS : This is my first PR ever, and I am far from being a pro Dev. So your feedback, comments and guidance are more than welcome!

@vercel
Copy link

vercel bot commented Sep 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Sep 15, 2023 4:22am

@dosubot dosubot bot added Ɑ: models Related to LLMs or chat model modules 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Sep 15, 2023
@RoderickVM RoderickVM changed the title Fix to SelfQueryRetriever deprecation warning Fix to SelfQueryRetriever and LLMRouterChain deprecation warning Sep 15, 2023
@RoderickVM RoderickVM changed the title Fix to SelfQueryRetriever and LLMRouterChain deprecation warning Fixes to SelfQueryRetriever and LLMRouterChain deprecation warning Sep 15, 2023
Copy link
Member

@efriis efriis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay on this one!

)
if self.llm_chain.prompt.output_parser is not None:
output = self.llm_chain.prompt.output_parser.parse(output)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the goal of deprecating predict_and_parse is actually to avoid storing the output parser on the prompt. Instead, can you update to store on the llm_chain instead?

@hwchase17 hwchase17 closed this Jan 30, 2024
@baskaryan baskaryan reopened this Jan 30, 2024
@baskaryan
Copy link
Collaborator

Apologies for the slow review! Pr has some merge conflicts, happy to re-review if you'd like to resolve

@ccurme ccurme added the langchain Related to the langchain package label Jun 21, 2024
@hwchase17 hwchase17 closed this Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature langchain Related to the langchain package Ɑ: models Related to LLMs or chat model modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants