You will know that the influence of the Holy Spirit is giving you knowledge when the knowledge that is coming to you has certain characteristics. The knowledge that comes from God MINISTERS GRACE AND PEACE. The knowledge that comes from God is useful for all aspects of your life and your godliness.
There are lots of subjects that we learn in school that have no usefulness to our lives. There are lots of things we know that do not help us to be godly. As the Holy Spirit ministers knowledge to you your intelligence will increase and you will know many things that are very useful for your life.
“Grace and peace be multiplied unto you THROUGH THE KNOWLEDGE of God, and of Jesus our Lord, According as his divine power hath given unto us all things that pertain unto life and godliness, THROUGH THE KNOWLEDGE of him that hath called us to glory and virtue:” 2 Peter 1:2-3