November 2024
Intermediate to advanced
716 pages
19h 34m
English
In this chapter, we will now use RL to solve text-based interactive fiction games, using the environment published by Microsoft Research called TextWorld. This will provide a good illustration of how RL can be applied to complicated environments with a rich observation space. In addition, we’ll touch on deep NLP methods a bit and play with LLMs.
In this chapter, we will:
Cover a brief historical overview of interactive fiction
Study the TextWorld environment
Implement the simple baseline deep Q-network (DQN) method, and then try to improve it by adding several tweaks to the observation
Use pretrained tronsformers from the Hugging Face Hub to implement sentence embedding for our agent
Use OpenAI ChatGPT ...
Read now
Unlock full access