暂存
This commit is contained in:
@@ -72,7 +72,7 @@ class ArchiveAdminService
|
||||
}
|
||||
|
||||
$updates = [];
|
||||
foreach (['title', 'summary', 'author', 'source', 'series', 'content', 'raw'] as $field) {
|
||||
foreach (['title', 'summary', 'author', 'source', 'series'] as $field) {
|
||||
if (array_key_exists($field, $payload)) {
|
||||
$updates[$field] = $this->nullableText($payload[$field]);
|
||||
}
|
||||
@@ -134,8 +134,6 @@ class ArchiveAdminService
|
||||
{
|
||||
$data = $this->listItem($row);
|
||||
$data['metadata'] = $this->decodeJson($row->metadata ?? null, []);
|
||||
$data['content'] = $row->content;
|
||||
$data['raw'] = $row->raw;
|
||||
$data['chunks'] = $this->decodeJson($row->chunks ?? null, []);
|
||||
|
||||
return $data;
|
||||
|
||||
@@ -119,6 +119,14 @@ class MaintenanceScriptService
|
||||
'doc_name' => 'setup_opensearch.md',
|
||||
'args_hint' => '无参数',
|
||||
],
|
||||
'reembed_chunks' => [
|
||||
'name' => 'reembed_chunks',
|
||||
'file' => 'reembed_chunks.php',
|
||||
'label' => '重新生成向量',
|
||||
'description' => '对 chunks 重新执行 embedding,支持 resume 与 --reset。',
|
||||
'doc_name' => 'reembed_chunks.md',
|
||||
'args_hint' => '--archive_uid=01... 或 --reset',
|
||||
],
|
||||
'reindex_opensearch' => [
|
||||
'name' => 'reindex_opensearch',
|
||||
'file' => 'reindex_opensearch.php',
|
||||
@@ -127,14 +135,6 @@ class MaintenanceScriptService
|
||||
'doc_name' => 'reindex_opensearch.md',
|
||||
'args_hint' => '--archive_uid=01...',
|
||||
],
|
||||
'backfill_archive_content' => [
|
||||
'name' => 'backfill_archive_content',
|
||||
'file' => 'backfill_archive_content.php',
|
||||
'label' => '回填 archive content',
|
||||
'description' => '从 raw 或 chunks 回填 archives.content。',
|
||||
'doc_name' => 'backfill_archive_content.md',
|
||||
'args_hint' => '--archive_uid=01...',
|
||||
],
|
||||
'setup_admin_users' => [
|
||||
'name' => 'setup_admin_users',
|
||||
'file' => 'setup_admin_users.php',
|
||||
|
||||
Reference in New Issue
Block a user