From e46f7e99e248f6f04bf302fdccabebfe356975e0 Mon Sep 17 00:00:00 2001 From: Andreas Opferkuch Date: Wed, 9 Apr 2025 22:11:29 +0200 Subject: [PATCH] docs: Update vector dimensions in custom-code-rag.mdx --- docs/docs/customize/tutorials/custom-code-rag.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/customize/tutorials/custom-code-rag.mdx b/docs/docs/customize/tutorials/custom-code-rag.mdx index f5e43dc8e..735e45655 100644 --- a/docs/docs/customize/tutorials/custom-code-rag.mdx +++ b/docs/docs/customize/tutorials/custom-code-rag.mdx @@ -51,8 +51,8 @@ func = get_registry().get("openai").create( class CodeChunks(LanceModel): filename: str text: str = func.SourceField() - # 1536 is the embedding dimension of the `voyage-code-3` model. - vector: Vector(1536) = func.VectorField() + # 1024 is the default dimension for `voyage-code-3`: https://docs.voyageai.com/docs/embeddings#model-choices + vector: Vector(1024) = func.VectorField() table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite") table.add([