feat:add summary

This commit is contained in:
aries_ckt 2023-11-15 14:10:10 +08:00
parent cdcfe7faf1
commit 8be43c5e24

View File

@ -461,8 +461,8 @@ class KnowledgeService:
summary = await self._mapreduce_extract_summary( summary = await self._mapreduce_extract_summary(
docs=texts, docs=texts,
model_name=model_name, model_name=model_name,
max_iteration=space_context["summary"]["max_iteration"], max_iteration=int(space_context["summary"]["max_iteration"]),
concurrency_limit=space_context["summary"]["concurrency_limit"], concurrency_limit=int(space_context["summary"]["concurrency_limit"]),
) )
else: else:
summary = await self._mapreduce_extract_summary( summary = await self._mapreduce_extract_summary(