feat: 添加AI问题生成功能,支持配置生成数量并在前端展示生成的问题

This commit is contained in:
wizardchen
2025-12-03 01:42:31 +08:00
parent 12497a2fea
commit 16562eebbb
21 changed files with 987 additions and 296 deletions
@@ -291,7 +291,7 @@ func (g *pgRepository) VectorRetrieve(ctx context.Context,
ORDER BY embedding::halfvec(%d) <=> $1::halfvec
LIMIT $%d
) AS candidates
WHERE distance < $%d
WHERE distance <= $%d
ORDER BY distance ASC
LIMIT $%d
`, dimension, whereClause, dimension, subqueryLimitParam, thresholdParam, finalLimitParam)