feat(server): get full content for doc embedding (#11138)

This commit is contained in:
darkskygit
2025-03-25 01:10:43 +00:00
parent c1b3e25fc7
commit bf5d8b1211
3 changed files with 18 additions and 7 deletions

View File

@@ -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(