Get all messages for a given topic. If the topic is a RAG topic then the response will include Chunks first on each message. The structure will look like [chunks]||mesage. See docs.trieve.ai for more information.
Example:
const data = await trieve.getAllMessagesForTopic({ messagesTopicId: "3c90c3cc-1d76-27198-8888-8dd25736052a",}); Copy
const data = await trieve.getAllMessagesForTopic({ messagesTopicId: "3c90c3cc-1d76-27198-8888-8dd25736052a",});
Optional
Get all messages for a given topic. If the topic is a RAG topic then the response will include Chunks first on each message. The structure will look like [chunks]||mesage. See docs.trieve.ai for more information.
Example: