RAGConfiguration constructor

const RAGConfiguration({
  1. required String embeddingModelPath,
  2. required String llmModelPath,
  3. int embeddingDimension = 384,
  4. int topK = 3,
  5. double similarityThreshold = 0.3,
  6. int maxContextTokens = 2048,
  7. int chunkSize = 512,
  8. int chunkOverlap = 50,
  9. String? promptTemplate,
  10. String? embeddingConfigJSON,
  11. String? llmConfigJSON,
})

Implementation

const RAGConfiguration({
  required this.embeddingModelPath,
  required this.llmModelPath,
  this.embeddingDimension = 384,
  this.topK = 3,
  this.similarityThreshold = 0.3,
  this.maxContextTokens = 2048,
  this.chunkSize = 512,
  this.chunkOverlap = 50,
  this.promptTemplate,
  this.embeddingConfigJSON,
  this.llmConfigJSON,
});