QuestionQ6

VerifiedBuilding an LLM Application using OCI Generative AI Service

Given this code:

chain = prompt | llm  

Which statement about LangChain Expression Language (LCEL) is correct?

Explanation

LCEL is LangChain’s declarative composition mechanism for connecting Runnable components into chains. The | operator composes the prompt and language model into a sequential Runnable chain, making LCEL the preferred approach for this style of chain composition.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!