mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-25 08:48:08 +02:00
7 lines
264 B
TypeScript
7 lines
264 B
TypeScript
export function buildKnowledgeSearchText(blockKey: string, summary: string, content: string, tags?: string[]): string {
|
|
const parts = [blockKey, summary, content];
|
|
if (tags && tags.length > 0) {
|
|
parts.push(tags.join(' '));
|
|
}
|
|
return parts.join('\n');
|
|
}
|