langchain/templates/anthropic-iterative-search/main.py
Erick Friis 3a2eb6e12b
infra: add print rule to ruff (#16221)
Added noqa for existing prints. Can slowly remove / will prevent more
being intro'd
2024-02-09 16:13:30 -08:00

13 lines
346 B
Python

from anthropic_iterative_search import final_chain
if __name__ == "__main__":
query = (
"Which movie came out first: Oppenheimer, or "
"Are You There God It's Me Margaret?"
)
print( # noqa: T201
final_chain.with_config(configurable={"chain": "retrieve"}).invoke(
{"query": query}
)
)