Learn how to query your collections in WetroCloud for both free text and structured responses.
query
endpoint allows you to retrieve information from a collection (your resources) via the WetroCloud API.json_schema
and json_schema_rules
.
Field | Description |
---|---|
collection_id | Collection Id. |
query | This is the prompt. |
model (optional) | Pass in the model you want. |
Field | Description |
---|---|
response | Conversational response to the query. |
tokens | Number of tokens used for processing. |
success | Indicates whether the query was successful. |