public record UpsertPipelineRequest()

in spring-ai-alibaba-core/src/main/java/com/alibaba/cloud/ai/dashscope/api/DashScopeApi.java [502:575]


	public record UpsertPipelineRequest(@JsonProperty("name") String name,
			@JsonProperty("pipeline_type") String pipelineType,
			@JsonProperty("pipeline_description") String pipelineDescription,
			@JsonProperty("data_type") String dataType, @JsonProperty("config_model") String configModel,
			@JsonProperty("configured_transformations") List transformations,
			@JsonProperty("data_sources") List<DataSourcesConfig> dataSources,
			@JsonProperty("data_sinks") List<DataSinksConfig> dataSinks) {

		@JsonInclude(JsonInclude.Include.NON_NULL)
		public record DataSinksConfig(@JsonProperty("sink_type") String sinkType,
				@JsonProperty("component") DataSinksComponent component) {

			@JsonInclude(JsonInclude.Include.NON_NULL)
			public record DataSinksComponent() {
			}
		}

		@JsonInclude(JsonInclude.Include.NON_NULL)
		public record DataSourcesConfig(@JsonProperty("source_type") String sourceType,
				@JsonProperty("component") DataSourcesComponent component) {

			@JsonInclude(JsonInclude.Include.NON_NULL)
			public record DataSourcesComponent(@JsonProperty("doc_ids") List<String> docIds) {

			}

		}

		@JsonInclude(JsonInclude.Include.NON_NULL)
		public record ParserConfiguredTransformations(
				@JsonProperty("configurable_transformation_type") String transformationType,
				@JsonProperty("component") ParserComponent component) {
			@JsonInclude(JsonInclude.Include.NON_NULL)
			public record ParserComponent(@JsonProperty("chunk_size") Integer chunkSize,
					@JsonProperty("overlap_size") Integer overlapSize, @JsonProperty("input_type") String inputType,
					@JsonProperty("separator") String separator, @JsonProperty("language") String language) {

			}
		}

		@JsonInclude(JsonInclude.Include.NON_NULL)
		public record EmbeddingConfiguredTransformations(
				@JsonProperty("configurable_transformation_type") String transformationType,
				@JsonProperty("component") EmbeddingComponent component) {

			@JsonInclude(JsonInclude.Include.NON_NULL)
			public record EmbeddingComponent(@JsonProperty("model_name") String modelName) {

			}
		}

		@JsonInclude(JsonInclude.Include.NON_NULL)
		public record RetrieverConfiguredTransformations(
				@JsonProperty("configurable_transformation_type") String transformationType,
				@JsonProperty("component") RetrieverComponent component) {
			@JsonInclude(JsonInclude.Include.NON_NULL)
			public record RetrieverComponent(@JsonProperty("enable_rewrite") boolean enableRewrite,
					@JsonProperty("rewrite") List<CommonModelComponent> rewriteComponents,
					@JsonProperty("sparse_similarity_top_k") int sparseSimilarityTopK,
					@JsonProperty("dense_similarity_top_k") int denseSimilarityTopK,
					@JsonProperty("enable_reranking") boolean enableRerank,
					@JsonProperty("rerank") List<CommonModelComponent> rerankComponents,
					@JsonProperty("rerank_min_score") float rerankMinScore,
					@JsonProperty("rerank_top_n") int rerankTopN,
					@JsonProperty("search_filters") List<Map<String, Object>> searchFilters) {

			}

			@JsonInclude(JsonInclude.Include.NON_NULL)
			public record CommonModelComponent(@JsonProperty("model_name") String modelName) {
			}
		}

	}