From 81c176cfbdb0d17a41c54419f3bcab0f34d90eda Mon Sep 17 00:00:00 2001 From: MIDORIBIN Date: Sun, 23 Jul 2023 21:54:53 +0900 Subject: [PATCH] fix: sample output --- .gitignore | 1 + sample/sequential_chain_sample.py | 1 + sample/simple_chain_sample.py | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 2dc53ca..44bbb13 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,4 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. .idea/ +.vscode/ diff --git a/sample/sequential_chain_sample.py b/sample/sequential_chain_sample.py index 356ae0d..a28ee37 100644 --- a/sample/sequential_chain_sample.py +++ b/sample/sequential_chain_sample.py @@ -29,6 +29,7 @@ def main(): ) print(simple_sequential_chain("tokyo")) + # {'input': 'tokyo', 'output': 'The train route from Tokyo Station to the Tokyo Skytree is:\n\n1. Take the JR Yamanote Line or the Keihin-Tohoku Line from Tokyo Station to Ueno Station.\n\n2. Transfer to the Tokyo Metro Hibiya Line at Ueno Station and take the train towards Kita-senju.\n\n3. Get off at Oshiage Station, which is the closest station to the Tokyo Skytree.\n\nThe journey takes approximately 20-25 minutes and costs around 240-280 yen depending on the train line and time of day.'} if __name__ == "__main__": diff --git a/sample/simple_chain_sample.py b/sample/simple_chain_sample.py index d5b289b..d2d2299 100644 --- a/sample/simple_chain_sample.py +++ b/sample/simple_chain_sample.py @@ -17,6 +17,7 @@ def main(): ) chain = LLMChain(llm=llm, prompt=prompt_template) print(chain("tokyo")) + # {'location': 'tokyo', 'text': 'Tokyo has many amazing tourist attractions, but one of the most popular is the Tokyo Tower. Standing at 333 meters tall, it offers stunning views of the city skyline. Additionally, the historic Meiji Shrine and the bustling and vibrant neighborhood of Shibuya with its famous scramble crossing are also top attractions.'} if __name__ == "__main__":