@restnfeel/agentc-starter-kit
Version:
한국어 기업용 CMS 모듈 - Task Master AI와 함께 빠르게 웹사이트를 구현할 수 있는 재사용 가능한 컴포넌트 시스템
35 lines • 1.03 kB
TypeScript
export interface QueryProcessingConfig {
enableSpellCheck?: boolean;
enableSynonymExpansion?: boolean;
enableStopWordRemoval?: boolean;
minQueryLength?: number;
maxQueryLength?: number;
}
export interface ProcessedQuery {
original: string;
processed: string;
keywords: string[];
entities?: string[];
intent?: string;
language?: string;
}
export declare class QueryProcessor {
private config;
private stopWords;
private synonyms;
constructor(config?: QueryProcessingConfig);
processQuery(query: string): Promise<ProcessedQuery>;
private isValidQuery;
private normalizeText;
private removeStopWords;
private extractKeywords;
private expandWithSynonyms;
private detectLanguage;
private extractEntities;
private determineIntent;
private initializeStopWords;
private initializeSynonyms;
addSynonyms(word: string, synonyms: string[]): void;
addStopWords(words: string[]): void;
}
//# sourceMappingURL=query-processor.d.ts.map