Skip to content

Conversation

@samanta-sc
Copy link

Description:

Replaced the deprecated LLMChain class with the recommended prompt | llm
RunnableSequence to align with the current LangChain API. This removes the
runtime LangChainDeprecationWarning and ensures forward compatibility as
LLMChain is scheduled for removal in LangChain 1.0.

Changes:

  • Remove deprecated LLMChain
  • Add prompt | llm
  • Update llm and prompt variable extraction
  • Kept full backward compatibility

Issue:

N/A (no linked issue)

Dependencies:

No new dependencies added. No changes to pyproject.toml or optional packages.

Lint and test:

All checks passed locally with:

  • make format
  • make lint
  • make test

Replace deprecated LLMChain with prompt | llm to follow LangChain's
RunnableSequence API.

Changes:
- Remove deprecated LLMChain
- Add prompt | llm
- Update llm and prompt variable extraction
- Kept full backward compatibility

Reason:
LLMChain was deprecated in LangChain 0.1.17 and will be removed in 1.0.
This change prevents future breakage and removes warnings.

Impact:
No behavior change. Fully backward-compatible.

Let me know if any adjustments are needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant