-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mongodb atlas for bedrock kb #37220
base: main
Are you sure you want to change the base?
Add mongodb atlas for bedrock kb #37220
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @tubone24 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
"endpoint": schema.StringAttribute{ | ||
Required: true, | ||
}, | ||
"vectorIndexName": schema.StringAttribute{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be vector_index_name
"vectorIndexName" at schema path "storage_configuration.mongodb_atlas_configuration.vectorIndexName" is an invalid attribute/block name. Names must only contain lowercase alphanumeric characters (a-z, 0-9) and underscores (_).
"vectorIndexName": schema.StringAttribute{ | ||
Required: true, | ||
}, | ||
"endpointServiceName": schema.StringAttribute{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be endpoint_service_name
"endpointServiceName" at schema path "storage_configuration.mongodb_atlas_configuration.endpointServiceName" is an invalid attribute/block name. Names must only contain lowercase alphanumeric characters (a-z, 0-9) and underscores (_)
endpoint types.String `tfsdk:"endpoint"` | ||
vectorIndexName types.String `tfsdk:"vector_index_name"` | ||
endpointServiceName fwtypes.ARN `tfsdk:"endpoint_service_name"` | ||
FieldMapping fwtypes.ListNestedObjectValueOf[pineconeFieldMappingModel] `tfsdk:"field_mapping"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pineconeFieldMappingModel
should be mongoDBAtlasFieldMappingModel
@@ -642,6 +693,23 @@ type pineconeFieldMappingModel struct { | |||
TextField types.String `tfsdk:"text_field"` | |||
} | |||
|
|||
type mongoDBAtlasConfigurationModel struct { | |||
collectionName types.String `tfsdk:"connection_name"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attribute names need to be capitalized.
type mongoDBAtlasFieldMappingModel struct { | ||
MetadataField types.String `tfsdk:"metadata_field"` | ||
TextField types.String `tfsdk:"text_field"` | ||
vectorField types.String `tfsdk:"vector_field"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vectorField
-> VectorField
Thanks @tubone24! My first time commenting here; running |
Description
Relations
Closes #37253.
References
Output from Acceptance Testing