Skip to main content

Interface: MakeRagGenerateUserPromptParams

Properties

findContent

findContent: FindContentFunc

Find content based on the user's message and preprocessing.

Defined in

packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:20


Optional makeReferenceLinks: MakeReferenceLinksFunc

If not specified, uses makeDefaultReferenceLinks.

Defined in

packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:25


makeUserMessage

makeUserMessage: MakeUserMessageFunc

Construct user message which is sent to the LLM and stored in the database.

Defined in

packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:37


maxChunkContextTokens

Optional maxChunkContextTokens: number

Number of tokens from the found context to send to the makeUserMessage function. All chunks that exceed this threshold are discarded. If not specified, uses DEFAULT_MAX_CONTEXT_TOKENS.

Defined in

packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:32


queryPreprocessor

Optional queryPreprocessor: QueryPreprocessorFunc

Transform the user's message before sending it to the findContent function.

Defined in

packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:15