From fb29bd287e9087d20ae2ab917941c3fb9450c81b Mon Sep 17 00:00:00 2001 From: Diptanu Gon Choudhury Date: Tue, 18 Jun 2024 14:50:59 -0700 Subject: [PATCH] update examples --- examples/getting_started/example2.py | 5 ++++- examples/getting_started/example3.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/getting_started/example2.py b/examples/getting_started/example2.py index b8e9ccad6..b18b391f3 100644 --- a/examples/getting_started/example2.py +++ b/examples/getting_started/example2.py @@ -27,7 +27,10 @@ content_id = client.upload_file("audiosummary", "sample.mp3") client.wait_for_extraction(content_id) -client.get_extracted_content(content_id) +print("transcription ----") +print(client.get_extracted_content(content_id, "audiosummary", "transcription")) +print("summary ----") +print(client.get_extracted_content(content_id, "audiosummary", "summarizer")) context = client.search_index(name="audiosummary.minilml6.embedding", query="President of America", top_k=1) diff --git a/examples/getting_started/example3.py b/examples/getting_started/example3.py index 72a97079b..e6012e3cf 100644 --- a/examples/getting_started/example3.py +++ b/examples/getting_started/example3.py @@ -18,7 +18,7 @@ content_id = client.upload_file("imageknowledgebase", "sample.jpg") client.wait_for_extraction(content_id) -client.get_extracted_content(content_id) +client.get_extracted_content(content_id, "imageknowledgebase", "object_detection") -print(client.sql_query("select * from imageknowledgebase where object_name='skateboard';")) +print(client.sql_query("select * from imageknowledgebase where object_name='person';"))