You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/templates/anthropic-iterative-search/anthropic_iterative_search/__init__.py

12 lines
337 B
Python

from langchain.schema.runnable import ConfigurableField
from .chain import chain
from .retriever_agent import executor
final_chain = chain.configurable_alternatives(
ConfigurableField(id="chain"),
default_key="response",
# This adds a new option, with name `openai` that is equal to `ChatOpenAI()`
retrieve=executor,
)