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:
committed by
Christian Tzolov
parent
17ba1fc3ba
commit
08ccc10a16
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user