RAG API
Create a Collection
Learn how to create collections using the Wetrocloud API
At a glance:
This endpoint allows you to generate a unique collection_id
. You would use this collection_id
to insert, query and delete a resource.
What is a Collection?
A collection in the WetroCloud API acts as a container for resources such as text, files and the other supported types. Every collection is identified by a unique collection_id
.
How to Create a Collection
Before you begin!
Visit the Wetrocloud console to get your API key. If you have trouble obtaining it, refer to this guide.
To create a collection, make a POST
request to the /v1/collection/create/
endpoint. This operation is simple.
Required Parameters
Parameter | Type | Description |
---|---|---|
collection_id | String | The unique ID for collection. |
Request Example
Successful Response
If the request is valid, the response will include:
- A unique
collection_id
for your new collection. - A success confirmation.
Example Response
Related Operations
- Insert Resources: Add resources like websites, videos, and files to a collection.
- Query Resources: Access and retrieve insights from the indexed resources.
- Delete Collection: Remove collections and their resources when no longer needed.