Interface: MakeGenerateConversationDataParams
Properties
apiBaseUrl
• Optional
apiBaseUrl: string
URL for the server you're evaluating.
Default
"http://localhost:3000/api/v1/"
Defined in
packages/mongodb-chatbot-eval/src/generate/generateConversationData.ts:24
conversations
• conversations: ConversationsService
Same ConversationsService
instance used in the chatbot.
The function uses the service to create conversations and add initial messages.
Defined in
packages/mongodb-chatbot-eval/src/generate/generateConversationData.ts:18
httpHeaders
• Optional
httpHeaders: Record
<string
, string
>
HTTP headers to include in the request to add a message to a conversation.
Example
{
"Authorization": "Bearer <some token>",
}
Defined in
packages/mongodb-chatbot-eval/src/generate/generateConversationData.ts:35
sleepMs
• Optional
sleepMs: number
Number of milliseconds to sleep between each conversation. This can be useful if there's a rate limit on some components of the chatbot. Often LLM APIs have a rate limit, for example.
Default
0
Defined in
packages/mongodb-chatbot-eval/src/generate/generateConversationData.ts:43