Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore(server): change the embedding params (#10994)

Brooooooklyn9a697dc9bb9a
diff --git a/packages/backend/server/src/plugins/copilot/context/embedding.ts b/packages/backend/server/src/plugins/copilot/context/embedding.ts
index 25a7bc3073..b03d468814 100644
--- a/packages/backend/server/src/plugins/copilot/context/embedding.ts
+++ b/packages/backend/server/src/plugins/copilot/context/embedding.ts
@@ -14,8 +14,7 @@ export class OpenAIEmbeddingClient extends EmbeddingClient {
const resp = await this.client.embeddings.create(
{
input,
- model: 'text-embedding-3-small',
- dimensions: 512,
+ model: 'text-embedding-3-large',
encoding_format: 'float',
},
{ signal }