import { Module, forwardRef } from '@nestjs/common';
import { RagService } from './rag.service';
import { ElasticsearchModule } from '../elasticsearch/elasticsearch.module';
import { EmbeddingService } from '../knowledge-base/embedding.service';
import { ModelConfigModule } from '../model-config/model-config.module';
import { UserSettingModule } from '../user-setting/user-setting.module';

import { RerankService } from './rerank.service';

@Module({
  imports: [
    forwardRef(() => ElasticsearchModule),
    ModelConfigModule,
    UserSettingModule,
  ],
  providers: [RagService, EmbeddingService, RerankService],
  exports: [RagService],
})
export class RagModule { }
