In order to avoid high costs of manpower,learning the features and patterns of book categories from a small number of sampleshas become a brand-new problem in library science.This paper takes the books as our research target,uses the large language model(ChatGPT)to represent the texts and images,builds a large language model based prompt learning model for recognizing and classifying books.In view of the defects of the current method requiring large-scale data samples and training time,this paper proposes a new paradigm of"inquiry large language model-prompt-generation".The model was verified experimentally on the dataset of 114 823 books from Guangzhou Library and Zhengzhou Library,and the best results were obtained in terms of precision,recall and F1.