Learn how to chat with your data with Trieve
prompt
: This is the user’s question or response to the LLMchunk_ids
: This is the list of chunk IDs that you want to chat withprev_messages
: This is the list of previous messages in the conversation. This is useful when you want to continue a conversation from a previous point.prev_messages
field’s format is a list of dictionaries, where each dictionary has the following fields:content
: The message that was sentrole
: The sender of the message. This can be either user
or assistant
RAG
route, you need to instantiate a topic with Trieve to store all of the messages in the conversation. This is done through the create topic route.
first_user_message
: This is the first message that the user sends to the model. This is used to generate a name for the topic. If not provided, the model will use the name from the name field.name
: This is the name of the topic.owner_id
: This is the ID of the user that owns the topic. This is typically a browser fingerprint or your user’s id. It is used to group topics together for a user.topic_id
that is returned from the create-topic
route to use the create message route.
topic_id
: This is the ID of the topic that you want to chat withnew_message_content
: This is the new message that the user sends to the modelfilters
: This is the filters that you want to apply to the chunks that are searched. This is useful when you want to constrain the search to a specific subset of your data.