add chunk limiter
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
namespace App\Controller\Admin;
|
||||
|
||||
use App\Index\IndexMetaManager;
|
||||
use App\Ingest\IngestFlow;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
@@ -20,7 +21,7 @@ final class DashboardController extends AbstractController
|
||||
public function dashboard(IndexMetaManager $metaManager): Response
|
||||
{
|
||||
$chunkCount = $metaManager->getRuntimeChunkCount();
|
||||
$limit = 120000;
|
||||
$limit = IngestFlow::CHUNK_LIMIT_HARD;
|
||||
|
||||
return $this->render('admin/dashboard/index.html.twig', [
|
||||
'chunkCount' => $chunkCount,
|
||||
|
||||
@@ -374,6 +374,7 @@ class DocumentController extends AbstractController
|
||||
@unlink($params->get('mto.knowledge.vector_index'));
|
||||
@unlink($params->get('mto.knowledge.vector_index_meta'));
|
||||
@unlink($params->get('mto.knowledge.index_meta'));
|
||||
@unlink($params->get('mto.runtime.meta'));
|
||||
exec('rm -rf ' . $params->get('mto.knowledge.upload'));
|
||||
|
||||
$sql = '
|
||||
|
||||
Reference in New Issue
Block a user