Skip to content

Commit

Permalink
cleanup: temporarily remove subtrace for new builds to work
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev authored and densumesh committed Nov 25, 2024
1 parent 21c0d3e commit 0102754
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 19 deletions.
44 changes: 35 additions & 9 deletions clients/ts-sdk/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"name": "BSL",
"url": "https://github.com/devflowinc/trieve/blob/main/LICENSE.txt"
},
"version": "0.12.1"
"version": "0.13.0"
},
"servers": [
{
Expand Down Expand Up @@ -7569,9 +7569,6 @@
},
{
"$ref": "#/components/schemas/ContentChunkMetadata"
},
{
"$ref": "#/components/schemas/QdrantChunkMetadata"
}
]
},
Expand Down Expand Up @@ -11359,9 +11356,6 @@
},
{
"$ref": "#/components/schemas/ContentChunkMetadata"
},
{
"$ref": "#/components/schemas/QdrantChunkMetadata"
}
]
},
Expand Down Expand Up @@ -11851,14 +11845,20 @@
"QdrantChunkMetadata": {
"type": "object",
"required": [
"qdrant_point_id"
"qdrant_point_id",
"dataset_id",
"weight"
],
"properties": {
"chunk_html": {
"type": "string",
"nullable": true
},
"images_urls": {
"dataset_id": {
"type": "string",
"format": "uuid"
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
Expand All @@ -11869,9 +11869,22 @@
"type": "string",
"nullable": true
},
"location": {
"allOf": [
{
"$ref": "#/components/schemas/GeoInfo"
}
],
"nullable": true
},
"metadata": {
"nullable": true
},
"num_value": {
"type": "number",
"format": "double",
"nullable": true
},
"qdrant_point_id": {
"type": "string",
"format": "uuid"
Expand All @@ -11882,6 +11895,19 @@
"type": "string"
},
"nullable": true
},
"time_stamp": {
"type": "string",
"format": "date-time",
"nullable": true
},
"tracking_id": {
"type": "string",
"nullable": true
},
"weight": {
"type": "number",
"format": "double"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion clients/ts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"files": [
"dist"
],
"version": "0.0.33",
"version": "0.0.34",
"license": "MIT",
"scripts": {
"lint": "eslint 'src/**/*.ts'",
Expand Down
12 changes: 9 additions & 3 deletions clients/ts-sdk/src/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export type ChunkMetadataStringTagSet = {
weight: number;
};

export type ChunkMetadataTypes = SlimChunkMetadata | ChunkMetadataStringTagSet | ContentChunkMetadata | QdrantChunkMetadata;
export type ChunkMetadataTypes = SlimChunkMetadata | ChunkMetadataStringTagSet | ContentChunkMetadata;

export type ChunkMetadataWithPosition = {
chunk: ChunkMetadata;
Expand Down Expand Up @@ -1786,7 +1786,7 @@ export type MultiQuery = {
weight: number;
};

export type NewChunkMetadataTypes = SlimChunkMetadataWithArrayTagSet | ChunkMetadata | ContentChunkMetadata | QdrantChunkMetadata;
export type NewChunkMetadataTypes = SlimChunkMetadataWithArrayTagSet | ChunkMetadata | ContentChunkMetadata;

export type Organization = {
created_at: string;
Expand Down Expand Up @@ -1910,11 +1910,17 @@ export type PublicPageTheme = 'light' | 'dark';

export type QdrantChunkMetadata = {
chunk_html?: (string) | null;
images_urls?: Array<(string)> | null;
dataset_id: string;
image_urls?: Array<(string)> | null;
link?: (string) | null;
location?: ((GeoInfo) | null);
metadata?: unknown;
num_value?: (number) | null;
qdrant_point_id: string;
tag_set?: Array<(string)> | null;
time_stamp?: (string) | null;
tracking_id?: (string) | null;
weight: number;
};

/**
Expand Down
3 changes: 1 addition & 2 deletions server/Dockerfile.ingestion-worker
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ RUN apt-get update -y; \
redis-tools \
;

RUN curl -fsSL https://github.com/subtrace/subtrace/releases/download/b134/subtrace-linux-amd64 -o /app/subtrace && chmod +x /app/subtrace
COPY ./migrations/ /app/migrations
COPY --from=builder /app/target/release/ingestion-worker /app/ingestion-worker


EXPOSE 8090
ENTRYPOINT ["/app/subtrace", "run", "--tls-false", "--", "/app/ingestion-worker"]
ENTRYPOINT ["/app/ingestion-worker"]
6 changes: 2 additions & 4 deletions server/Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM rust:1.81-slim-bookworm AS chef
# it will be cached from the second build onwards
RUN apt-get update -y && apt-get -y install pkg-config libssl-dev libpq-dev g++ curl
RUN cargo install cargo-chef
WORKDIR app
WORKDIR /app

FROM chef AS planner
COPY . .
Expand Down Expand Up @@ -31,12 +31,10 @@ RUN apt-get update -y; \
redis-tools \
;

RUN curl -fsSL https://github.com/subtrace/subtrace/releases/download/b134/subtrace-linux-amd64 -o /app/subtrace && chmod +x /app/subtrace

COPY ./migrations/ /app/migrations
COPY ./ch_migrations /app/ch_migrations
COPY ./src/public/ /app/src/public
COPY --from=builder /app/target/release/trieve-server /app/trieve-server

EXPOSE 8090
ENTRYPOINT ["/app/subtrace", "run", "--tls-false", "--", "/app/trieve-server"]
ENTRYPOINT ["/app/trieve-server"]

0 comments on commit 0102754

Please sign in to comment.