diff --git a/docs/docs/customize/tutorials/custom-code-rag.md b/docs/docs/customize/tutorials/custom-code-rag.md index 5ae55ebd4..993da23be 100644 --- a/docs/docs/customize/tutorials/custom-code-rag.md +++ b/docs/docs/customize/tutorials/custom-code-rag.md @@ -37,6 +37,7 @@ With LanceDB, we can do steps 2 and 3 simultaneously, as demonstrated [in their ```python from lancedb.pydantic import LanceModel, Vector from lancedb.embeddings import get_registry +from typing import List db = lancedb.connect("/tmp/db") func = get_registry().get("openai").create( @@ -48,7 +49,7 @@ func = get_registry().get("openai").create( class CodeChunks(LanceModel): filename: str text: str = func.SourceField() - vector: Vector(func.ndims()) = func.VectorField() + vector: List[float] = func.VectorField() table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite") table.add([