modify the format of prompt
fix a bug when query a word which will matches a few None nodes