Pranav Patel commited on
Commit
bfae996
·
1 Parent(s): a013eec

Increase context window and observation detail

Browse files
Files changed (1) hide show
  1. harfeast_openenv/environment.py +3 -3
harfeast_openenv/environment.py CHANGED
@@ -45,7 +45,7 @@ class HarFeastOpenEnv:
45
  self._rng: random.Random | None = None
46
  self._history: list[dict] = []
47
 
48
- self.CONTEXT_WINDOW_STEPS = 5
49
  self.MAX_STEPS = 20
50
 
51
  @property
@@ -316,8 +316,8 @@ class HarFeastOpenEnv:
316
  action = entry["action"]
317
  action_name = action.get("action", "?")
318
  obs = entry["observation"]
319
- if len(obs) > 120:
320
- obs_short = obs[:120] + "..."
321
  else:
322
  obs_short = obs
323
  obs_short = " ".join(obs_short.split())
 
45
  self._rng: random.Random | None = None
46
  self._history: list[dict] = []
47
 
48
+ self.CONTEXT_WINDOW_STEPS = 8
49
  self.MAX_STEPS = 20
50
 
51
  @property
 
316
  action = entry["action"]
317
  action_name = action.get("action", "?")
318
  obs = entry["observation"]
319
+ if len(obs) > 300:
320
+ obs_short = obs[:300] + "..."
321
  else:
322
  obs_short = obs
323
  obs_short = " ".join(obs_short.split())