Artificial intelligence for search in patent and literature databases