Query collections
Free Text
Learn how to query your collections in WetroCloud for both free text
Free Text Response
Free text response provides natural, conversational-style answers to your queries. It is ideal for general Q&A and scenarios where a narrative or contextualized explanation is needed. This response format supports streaming
Parameter | Type | Description |
---|---|---|
collection_id (required) | String | The unique ID of the collection to query. obtained from the /collection/create/ endpoint. |
request_query (required) | String | The search term or query text. |
stream (optional) | Boolean | Enables streaming response if True, it’s False by default |
model (optional) | String | Specific model you desire to query response Check out our list of supported models here |
Request Example
Response Example: Free Text
Field | Description |
---|---|
response | Conversational response to the query. |
tokens | Number of tokens used for processing. |
success | Indicates whether the query was successful. |