api for the knowledge store