Skip to content

Commit

Permalink
fix: milvus (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinleyGe authored Oct 22, 2024
1 parent 025facb commit 718108a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/service/common/vectorStore/milvus/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export class MilvusCtrl {

global.milvusClient = new MilvusClient({
address: MILVUS_ADDRESS,
token: MILVUS_TOKEN
token: MILVUS_TOKEN,
loaderOptions: {
longs: Function
}
});

addLog.info(`Milvus connected`);
Expand Down Expand Up @@ -326,10 +329,19 @@ export class MilvusCtrl {
id: string;
teamId: string;
datasetId: string;
int64: {
low: bigint;
high: bigint;
unsigned: boolean;
};
}[];

return rows.map((item) => ({
id: String(item.id),
id: String({
low: BigInt(item.int64.low),
high: BigInt(item.int64.high),
unsigned: item.int64.unsigned
}),
teamId: item.teamId,
datasetId: item.datasetId
}));
Expand Down

0 comments on commit 718108a

Please sign in to comment.