feat: Add async knowledge re-parse API and examples

This commit is contained in:
begoniezhao
2026-02-10 12:15:21 +08:00
parent 10b6c98078
commit bce968833e
7 changed files with 299 additions and 11 deletions
+2 -1
View File
@@ -27,6 +27,8 @@ RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate
# Copy go mod and sum files
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/go/pkg/mod go mod download
COPY cmd/download cmd/download
RUN go run cmd/download/duckdb/duckdb.go
COPY . .
# Get version and commit info for build injection
@@ -42,7 +44,6 @@ ENV BUILD_TIME=${BUILD_TIME_ARG}
ENV GO_VERSION=${GO_VERSION_ARG}
# Build the application with version info
RUN --mount=type=cache,target=/go/pkg/mod make download_spatial
RUN --mount=type=cache,target=/go/pkg/mod make build-prod
RUN --mount=type=cache,target=/go/pkg/mod cp -r /go/pkg/mod/github.com/yanyiwu/ /app/yanyiwu/