0.1.23 • Published 1 year ago
rivus-frontend v0.1.23
Rivus is built upon two main types of data:
ConversationData: {
conversationId: string
messages: {
role: 'user' | 'assistant',
content: string,
}[]
}
ConversationMetadata<OptionalMetadataObjectType>: {
conversationId: string
userId: string
title: string
createdAt: number
updatedAt: number
optionalData?: OptionalMetadataObjectType
}
The conversationId
is meant to be a unique, but relational, identifier used to store pairs of data made up of ConversationData
and ConversationMetadata
. The way this was originally done was using MongoDB with two collections, one for each type of data. The frontend fetches the metadata using a userId, and then fetches individual conversation data using a conversationId from the array of fetched metadata.
ENV VARIABLES:
RIVUS_API_URL
: The URL that Rivus will use in fetch calls to your backend. AddNEXT_PUBLIC_
to the beginning of this if you are using Next.
0.1.23
1 year ago
0.1.22
1 year ago
0.1.21
1 year ago
0.1.20
1 year ago
0.1.19
1 year ago
0.1.18
1 year ago
0.1.17
1 year ago
0.1.16
1 year ago
0.1.15
1 year ago
0.1.14
1 year ago
0.1.13
1 year ago
0.1.12
1 year ago
0.1.11
1 year ago
0.1.10
1 year ago
0.1.9
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago