finish the connection with knowledge base