KnowGPT: KnowledgeGraphbasedPrompTingfor LargeLanguageModels