Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anisbhsl committed Oct 12, 2023
1 parent 1a03ec7 commit 534a418
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<your_search_text>"
..... #other params
# other params
#perform a search query operation
# perform a search query operation
results=sinequa.search_query(params)
```

Expand Down

0 comments on commit 534a418

Please sign in to comment.