mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat(server): get full content for doc embedding (#11138)
This commit is contained in:
@@ -159,7 +159,7 @@ export class CopilotContextDocJob implements OnModuleInit {
|
||||
if (!this.supportEmbedding) return;
|
||||
|
||||
try {
|
||||
const content = await this.doc.getDocContent(workspaceId, docId);
|
||||
const content = await this.doc.getFullDocContent(workspaceId, docId);
|
||||
if (content) {
|
||||
// no need to check if embeddings is empty, will throw internally
|
||||
const embeddings = await this.embeddingClient.getFileEmbeddings(
|
||||
|
||||
Reference in New Issue
Block a user