langchain/templates/anthropic-iterative-search/main.py

13 lines
332 B
Python
Raw Normal View History

2023-10-27 02:44:30 +00:00
from anthropic_iterative_search import final_chain
if __name__ == "__main__":
2023-10-27 02:44:30 +00:00
query = (
"Which movie came out first: Oppenheimer, or "
"Are You There God It's Me Margaret?"
)
print(
final_chain.with_config(configurable={"chain": "retrieve"}).invoke(
{"query": query}
)
)