SourceRagService constructor

SourceRagService({
  1. required String dbPath,
  2. String? modelPath,
  3. int maxChunkChars = kDefaultMaxChunkChars,
  4. int overlapChars = kDefaultOverlapChars,
  5. String collectionId = defaultCollectionId,
})

Implementation

SourceRagService({
  required this.dbPath,
  this.modelPath,
  int maxChunkChars = kDefaultMaxChunkChars,
  int overlapChars = kDefaultOverlapChars,
  this.collectionId = defaultCollectionId,
}) : maxChunkChars = normalizeMaxChunkChars(
       maxChunkChars,
       context: 'SourceRagService',
     ),
     overlapChars = normalizeOverlapChars(
       overlapChars,
       context: 'SourceRagService',
     );