Sentence (1)
(1) I am going to talk about the advantages of driverless vehicles.
Does indeed require the use of "the" as the speaker is about to discuss a specific set of advantages, that is the advantages of driverless cars.. Note that "the" can be replaced here, but not omitted:
- (1A) I am going to talk about some advantages of driver less vehicles.
- (1B) I am going to talk about a few advantages of driverless vehicles.
Other expressions qualifying or limiting the set of advantages might be used, such as "various", "several", and the like. (By the wy "driverless" should be either a single word or hyphenated, not split into two words as "driver less".)
Sentence (2):
(2) I am going to talk about the types of books for children.
is grammatically correct, and quite natural. It would seem to fall under the same "rule" or guideline, as (1). But here the definite article "the" can be omitted, giving:
(3) I am going to talk about types of books for children.
in (2) "types" functions as a noun, the head-noun of the phrase "types of books". But in (3) I believe it functions as an adjective, modifying "books".
I cannot state a clear general rule why "the" can be omitted from (2) but not from (1). Sentence (1) just doesn't seem to work without the article. Perhaps it is because "types of books" is a much shorter phrase than "advantages of driverless vehicles"
By the way, one could further modify (3) into:
(3A) I am going to talk about book types for children.
Here "book" functions as an adjective, modifying "types" but the meaning is very little changed.
In a comment, the OP asks about the change of meaning caused by omitting "the"before "types of books" when changign from (2) to (3). "The types of books" grammatically ought to mean "all the applicable types of books", while just "types of books" without "the" could mean the same, or could mean only some types. However, many fluent speakers will not respect this distinction, and one cannot rely on it without additional context confirming the speaker's intention.