The development of artificial intelligence technology drives the library's knowledge service towards individuation and precision. Basic on the summarization of knowledge discovery and User portrait, this article constructs the user portrait, so as to construct a service model of library’s knowledge discovery. It is found that the library knowledge service based on user portrait has some advantages in personalized and precision service, and also can improve the experiences of library knowledge service.