Streamline EmbeddingOptions

* Add model and dimensions to option abstraction
* Use abstraction in Observations directly instead of dedicated implementation
* Clean-up the merge of runtime and default embedding options in OpenAI

Relates to #gh-1148

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
This commit is contained in:
Thomas Vitale
2024-08-07 15:16:17 +02:00
committed by Christian Tzolov
parent 17ba1fc3ba
commit 08ccc10a16
29 changed files with 352 additions and 249 deletions

View File

@@ -28,6 +28,7 @@ import org.springframework.ai.postgresml.PostgresMlEmbeddingModel.VectorType;
/**
* @author Christian Tzolov
* @author Thomas Vitale
*/
@JsonInclude(Include.NON_NULL)
public class PostgresMlEmbeddingOptions implements EmbeddingOptions {
@@ -130,4 +131,14 @@ public class PostgresMlEmbeddingOptions implements EmbeddingOptions {
this.metadataMode = metadataMode;
}
@Override
public String getModel() {
return null;
}
@Override
public Integer getDimensions() {
return null;
}
}