Andrea Cosentino created CAMEL-24719:
----------------------------------------

             Summary: camel-weaviate: VECTOR_FIELD_NAME header value has 
inconsistent casing (CamelweaviateVectorFieldName)
                 Key: CAMEL-24719
                 URL: https://issues.apache.org/jira/browse/CAMEL-24719
             Project: Camel
          Issue Type: Bug
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino


The WeaviateVectorDbHeaders.VECTOR_FIELD_NAME constant is declared as 
"CamelweaviateVectorFieldName" (lowercase w), while every other camel-weaviate 
header uses the CamelWeaviate prefix (capital W): CamelWeaviateAction, 
CamelWeaviateTextFieldName, CamelWeaviateCollectionName, etc. Since CAMEL-24533 
wired the vector field name into WeaviateEmbeddingsDataTypeTransformer (it now 
reads this header), a user who sets the header by its convention-expected name 
CamelWeaviateVectorFieldName is silently ignored and the transformer falls back 
to the default field name "vector". Correct the header value to 
CamelWeaviateVectorFieldName for consistency with the other headers, update the 
deprecated WeaviateVectorDb duplicate, regenerate metadata, and note the header 
rename in the 4.23 upgrade guide.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to