Merge pull request #2351 from steverhoades/fix-2349

Fix 2349
This commit is contained in:
Nate Sesti 2024-09-22 21:59:32 -07:00 • committed by GitHub
commit 82bdde5cad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,7 +48,8 @@ func = get_registry().get("openai").create(
class CodeChunks(LanceModel):
filename: str
text: str = func.SourceField()
vector: Vector(func.ndims()) = func.VectorField()
# 1536 is the embedding dimension of the `voyage-code-2` model.
vector: Vector(1536) = func.VectorField()
table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite")
table.add([