From 534a418827141b9675fb2c79ebc877bb0ec8e1de Mon Sep 17 00:00:00 2001 From: anisbhsl Date: Thu, 12 Oct 2023 11:37:06 -0500 Subject: [PATCH] updated docs --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c954236..6f95cf9 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,23 @@ config = { "query_name": "" } -#initialize a Sinequa connector instance +# initialize a Sinequa connector instance sinequa=pynequa.Sinequa.from_config(config) +# OR +# you can directly instantiate Sinequa using +sinequa = pynequa.Sinequa( + access_token: config["access_token"], + base_url: config["base_url"], + app_name: config["app_name"], + query_name: config["query_name"], +) + params = QueryParams() params.search_text = "" -..... #other params +# other params -#perform a search query operation +# perform a search query operation results=sinequa.search_query(params) ```