Merge pull request #5080 from s-h-a-d-o-w/patch-2

docs: Update vector dimensions in custom-code-rag.mdx
This commit is contained in:
Patrick Erichsen 2025-04-09 21:02:43 -07:00 • committed by GitHub
commit 2d698a9783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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