Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 2.1 KB

README.md

File metadata and controls

49 lines (32 loc) · 2.1 KB

Query

(rag.query)

Available Operations

  • query - Query using RAG Search

query

Query across your connected data sources using RAG Search

Example Usage

from panora_sdk import Panora

s = Panora(
    api_key="<YOUR_API_KEY_HERE>",
)


res = s.rag.query.query(x_connection_token="<value>", query_body={
    "query": "When does Panora incorporated?",
    "top_k": 3,
})

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
x_connection_token str ✔️ The connection token
query_body models.QueryBody ✔️ N/A
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.QueryResponseBody

Errors

Error Object Status Code Content Type
models.SDKError 4xx-5xx /