From 57c00bddfef6ea2238262c1fb2ca06bf2df0d417 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Thu, 15 Jun 2023 09:59:49 +0900 Subject: [PATCH] Update example_segmentation.py --- example_segmentation.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/example_segmentation.py b/example_segmentation.py index 9af3427..96ef1f9 100644 --- a/example_segmentation.py +++ b/example_segmentation.py @@ -1,8 +1,3 @@ -""" -This example uses a nested object of Search and MultiSearch and -supports retries with tenacity. -""" - from openai_function_call import OpenAISchema from pydantic import Field from typing import List @@ -31,7 +26,7 @@ def segment(data: str) -> MultiSearch: messages=[ { "role": "system", - "content": "You must use the `MultiSearch` tool to search for multiple requests at once. You must response with a list of search queries", + "content": "You must use the tool given to response.", }, { "role": "user", @@ -49,6 +44,3 @@ if __name__ == "__main__": ) for query in queries.searches: print(query) - - # title='Video about investment case study from last week' query='investment case study video last week' - # title='Documents about GPDR policy' query='GPDR policy documents'