mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
feat(server): impl context model (#11027)
This commit is contained in:
@@ -472,6 +472,7 @@ model AiWorkspaceEmbedding {
|
||||
snapshot Snapshot @relation(fields: [workspaceId, docId], references: [workspaceId, id], onDelete: Cascade)
|
||||
|
||||
@@id([workspaceId, docId])
|
||||
@@unique([workspaceId, docId, chunk])
|
||||
@@index([embedding], map: "ai_workspace_embeddings_idx")
|
||||
@@map("ai_workspace_embeddings")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user