Create a new chat topic. Topics are attached to a owner_id’s and act as a coordinator for conversation message history of gen-AI chat sessions. Auth’ed user or api key must have an admin or owner role for the specified dataset’s organization.
Example:
const data = await trieve.createTopic({ first_user_message: "hello", name: "Test", owner_id: "3c90c3cc-1d76-27198-8888-8dd25736052a",}); Copy
const data = await trieve.createTopic({ first_user_message: "hello", name: "Test", owner_id: "3c90c3cc-1d76-27198-8888-8dd25736052a",});
Optional
Create a new chat topic. Topics are attached to a owner_id’s and act as a coordinator for conversation message history of gen-AI chat sessions. Auth’ed user or api key must have an admin or owner role for the specified dataset’s organization.
Example: