feat: implement RAG utility and chatbot service for AI-powered history assistance
Build and Release / release (push) Successful in 1m23s

This commit is contained in:
2026-06-04 01:13:19 +07:00
parent b9df8d33b3
commit e061b9da05
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -93,12 +93,12 @@ func (u *RagUtils) EmbedQuery(ctx context.Context, query string) ([]float32, err
if err != nil || len(vectors) == 0 {
return nil, err
}
vector := vectors[0]
if len(vector) > 1536 {
vector = vector[:1536]
}
return vector, nil
}