Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions python/cocoindex/targets/lancedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ def get_setup_state(
) -> _State:
if len(key_fields_schema) != 1:
raise ValueError("LanceDB only supports a single key field")
if index_options.vector_indexes is not None:
for vector_index in index_options.vector_indexes:
if vector_index.method is not None:
raise ValueError(
"Vector index method is not configurable for LanceDB yet"
)
return _State(
key_field_schema=key_fields_schema[0],
value_fields_schema=value_fields_schema,
Expand Down
3 changes: 3 additions & 0 deletions src/ops/targets/kuzu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,9 @@ impl TargetFactoryBase for Factory {
let data_coll_outputs: Vec<TypedExportDataCollectionBuildOutput<Self>> =
std::iter::zip(data_collections, analyzed_data_colls.into_iter())
.map(|(data_coll, analyzed)| {
if data_coll.index_options.vector_indexes.len() > 0 {
api_bail!("Vector indexes are not supported for Kuzu yet");
}
fn to_dep_table(
field_mapping: &AnalyzedGraphElementFieldMapping,
) -> Result<ReferencedNodeTable> {
Expand Down
3 changes: 3 additions & 0 deletions src/ops/targets/neo4j.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,9 @@ impl SetupState {
.map(|f| (f.name.as_str(), &f.value_type.typ))
.collect::<HashMap<_, _>>();
for index_def in index_options.vector_indexes.iter() {
if index_def.method.is_some() {
api_bail!("Vector index method is not configurable for Neo4j yet");
}
sub_components.push(ComponentState {
object_label: schema.elem_type.clone(),
index_def: IndexDef::from_vector_index_def(
Expand Down
3 changes: 3 additions & 0 deletions src/ops/targets/qdrant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ impl TargetFactoryBase for Factory {
} else {
api_bail!("Field `{}` specified more than once in vector index definition", vector_index.field_name);
}
if vector_index.method.is_some() {
api_bail!("Vector index method is not configurable for Qdrant yet");
}
}
None => {
if let Some(field) = d.value_fields_schema.iter().find(|f| f.name == vector_index.field_name) {
Expand Down
Loading