Class MongoDbAtlasConfiguration

    • Method Detail

      • collectionName

        public final String collectionName()

        The collection name of the knowledge base in MongoDB Atlas.

        Returns:
        The collection name of the knowledge base in MongoDB Atlas.
      • credentialsSecretArn

        public final String credentialsSecretArn()

        The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that contains user credentials for your MongoDB Atlas cluster.

        Returns:
        The Amazon Resource Name (ARN) of the secret that you created in Secrets Manager that contains user credentials for your MongoDB Atlas cluster.
      • databaseName

        public final String databaseName()

        The database name in your MongoDB Atlas cluster for your knowledge base.

        Returns:
        The database name in your MongoDB Atlas cluster for your knowledge base.
      • endpoint

        public final String endpoint()

        The endpoint URL of your MongoDB Atlas cluster for your knowledge base.

        Returns:
        The endpoint URL of your MongoDB Atlas cluster for your knowledge base.
      • endpointServiceName

        public final String endpointServiceName()

        The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.

        Returns:
        The name of the VPC endpoint service in your account that is connected to your MongoDB Atlas cluster.
      • fieldMapping

        public final MongoDbAtlasFieldMapping fieldMapping()

        Contains the names of the fields to which to map information about the vector store.

        Returns:
        Contains the names of the fields to which to map information about the vector store.
      • vectorIndexName

        public final String vectorIndexName()

        The name of the MongoDB Atlas vector search index.

        Returns:
        The name of the MongoDB Atlas vector search index.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)