Skip to content

Commit 5f6e328

Browse files
committed
filter rag messages
1 parent 8312cc4 commit 5f6e328

File tree

1 file changed

+1
-0
lines changed
  • src/main/kotlin/dev/storozhenko/familybot/feature/talking/services/rag

1 file changed

+1
-0
lines changed

src/main/kotlin/dev/storozhenko/familybot/feature/talking/services/rag/RagService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class RagService(
3434
val text = context.message.text ?: return
3535
if (text.isBlank()) return
3636
if (text.length <= 3) return
37+
if (text.startsWith("/")) return
3738
if (context.message.messageId == null) return
3839
val embeddings = getEmbedding(text)
3940
log.info { "Adding new message to rag" }

0 commit comments

Comments
 (0)