langchain/templates/anthropic-iterative-search/anthropic_iterative_search/__init__.py

12 lines
337 B
Python
Raw Normal View History

from langchain.schema.runnable import ConfigurableField
2023-10-27 02:44:30 +00:00
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,
)