allow serverless accounts to have vector search embeddings (#1844)
This commit is contained in:
parent
ceeead8458
commit
19d1e0d1df
|
@ -15,7 +15,7 @@ export const ContainerVectorPolicyComponent: React.FC<ContainerVectorPolicyCompo
|
||||||
<Stack {...titleAndInputStackProps} styles={{ root: { position: "relative" } }}>
|
<Stack {...titleAndInputStackProps} styles={{ root: { position: "relative" } }}>
|
||||||
<EditorReact
|
<EditorReact
|
||||||
language={"json"}
|
language={"json"}
|
||||||
content={JSON.stringify(vectorEmbeddingPolicy, null, 4)}
|
content={JSON.stringify(vectorEmbeddingPolicy || {}, null, 4)}
|
||||||
isReadOnly={true}
|
isReadOnly={true}
|
||||||
wordWrap={"on"}
|
wordWrap={"on"}
|
||||||
ariaLabel={"Container vector policy"}
|
ariaLabel={"Container vector policy"}
|
||||||
|
|
|
@ -1312,7 +1312,7 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
||||||
}
|
}
|
||||||
|
|
||||||
private shouldShowVectorSearchParameters() {
|
private shouldShowVectorSearchParameters() {
|
||||||
return isVectorSearchEnabled() && this.shouldShowCollectionThroughputInput();
|
return isVectorSearchEnabled() && (isServerlessAccount() || this.shouldShowCollectionThroughputInput());
|
||||||
}
|
}
|
||||||
|
|
||||||
private parseUniqueKeys(): DataModels.UniqueKeyPolicy {
|
private parseUniqueKeys(): DataModels.UniqueKeyPolicy {
|
||||||
|
|
Loading…
Reference in New Issue