feat(server): workspace file embedding & ignored docs model impl (#11804)

fix AI-30
fix AI-31
This commit is contained in:
darkskygit
2025-04-21 05:34:10 +00:00
parent 93b7c288cb
commit f2adb9f72c
7 changed files with 473 additions and 22 deletions

View File

@@ -105,3 +105,17 @@ export type FileChunkSimilarity = ChunkSimilarity & {
export type DocChunkSimilarity = ChunkSimilarity & {
docId: string;
};
export const CopilotWorkspaceFileSchema = z.object({
fileName: z.string(),
mimeType: z.string(),
size: z.number(),
});
export type CopilotWorkspaceFile = z.infer<
typeof CopilotWorkspaceFileSchema
> & {
workspaceId: string;
fileId: string;
createdAt: Date;
};