Milvex.Collection.Dsl
(milvex v0.10.2)
Copy Markdown
Spark DSL extension for defining Milvus collection schemas.
This module provides the DSL entities and sections for declaring collection schemas in a declarative way.
Example
defmodule MyApp.Movies do
use Milvex.Collection
collection do
name "movies"
description "Movie embeddings collection"
enable_dynamic_field true
fields do
primary_key :id, :int64, auto_id: true
varchar :title, 512
scalar :year, :int32
vector :embedding, 128
end
end
end