orpiske commented on code in PR #19153: URL: https://github.com/apache/camel/pull/19153#discussion_r2343889891
########## components/camel-ai/camel-langchain4j-embeddingstore/src/main/java/org/apache/camel/component/langchain4j/embeddingstore/LangChain4jEmbeddingStore.java: ########## @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.component.langchain4j.embeddingstore; + +import org.apache.camel.spi.Metadata; + +/** + * Constants and header definitions for LangChain4j embedding store component. + * + * <p> + * This class defines the component scheme, default values, and message headers used for embedding store operations. + * </p> + */ +public class LangChain4jEmbeddingStore { + /** Component URI scheme for embedding store endpoints */ + public static final String SCHEME = "langchain4j-embeddingstore"; + + /** Default dimension for embedding vectors (typically used by MiniLM models) */ + public static final int DEFAULT_COLLECTION_DIMENSION = 384; + + /** Default maximum number of results returned by search operations */ + public static final String DEFAULT_MAX_RESULTS = "5"; + + private LangChain4jEmbeddingStore() { + } + + /** + * Message headers used by the embedding store component. + * + * <p> + * These headers control the behavior of embedding store operations and provide additional parameters for search and + * filter operations. + * </p> + */ + public static class Headers { Review Comment: Recently I had a chat with @davsclaus where we discussed about keeping these headers separately. I ended up reporting CAMEL-22334 for this, so I think it would be good to avoid introducing more of this, so it makes fixing the existing ones a bit easier. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org