Revert "feat: Go knowledge compiler with scheduler-driven dataset compilation" (#17897)

Reverts infiniflow/ragflow#17881
This commit is contained in:
Jin Hai
2026-08-05 21:50:28 +08:00
committed by GitHub
parent eaf553320f
commit cf13082a1a
165 changed files with 3172 additions and 6959 deletions

View File

@@ -10,7 +10,7 @@ import {
} from '@/interfaces/request/knowledge';
import api from '@/utils/api';
import nextRequest from '@/utils/next-request';
import registerServer, { registerNextServer } from '@/utils/register-server';
import registerServer from '@/utils/register-server';
import request from '@/utils/request';
const {
@@ -287,20 +287,6 @@ export const runIndex = (datasetId: string, indexType: string) =>
export const traceIndex = (datasetId: string, indexType: string) =>
request.get(api.traceIndex(datasetId, indexType));
// getDatasetCompilationStatus reads the Go scheduler compile-status contract
// (GET /datasets/:id/compilation/status), used by API_PROXY_SCHEME=go/hybrid to
// replace the legacy traceIndex task-progress endpoint. Route it through the
// service-layer proxy (registerNextServer -> next-request) like the rest of the
// *-service.ts HTTP proxies.
const compilationStatusProxy = registerNextServer({
getDatasetCompilationStatus: {
url: (datasetId: string) => api.compilationStatus(datasetId),
method: 'get',
},
} as const);
export const getDatasetCompilationStatus = (datasetId: string) =>
compilationStatusProxy.getDatasetCompilationStatus(datasetId);
// Using RESTful API: GET /api/v1/datasets/{dataset_id}/documents
export const listDocument = (
params?: IFetchKnowledgeListRequestParams,