Skip to content

Commit

Permalink
Merge pull request #3 from redis-developer/post-workshop-cleanup
Browse files Browse the repository at this point in the history
Post workshop cleanup
  • Loading branch information
rbs333 authored Jan 15, 2025
2 parents e5ca1ea + 702a8ad commit 173fd86
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,14 @@ Note: you can see the details of each scenario question/answer in [questions.jso

## Testing progress

To test progress along the trail save the following alias:
To test progress along the trail save the following alias in a pretty format use:

```bash
pytest --disable-warnings -vv -rP test_participant_oregon_trail.py
```


If you're on mac/linux you can save this as an alias so you don't have to keep the whole thing.
```bash
alias test_trail_agent="pytest --disable-warnings -vv -rP test_participant_oregon_trail.py"
```
Expand Down
2 changes: 1 addition & 1 deletion example_agent/utils/ex_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

load_dotenv()

REDIS_URL = os.environ.get("REDIS_URL", "redis://host.docker.internal:6379/0")
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379/0")

# Semantic router
blocked_references = [
Expand Down
2 changes: 1 addition & 1 deletion example_agent/utils/ex_semantic_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

load_dotenv()

REDIS_URL = os.environ.get("REDIS_URL", "redis://host.docker.internal:6379/0")
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379/0")

# Semantic cache
hunting_example = "There's a deer. You're starving. You know what you have to do..."
Expand Down
2 changes: 1 addition & 1 deletion example_agent/utils/ex_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

load_dotenv()

REDIS_URL = os.environ.get("REDIS_URL", "redis://host.docker.internal:6379/0")
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379/0")


class RestockInput(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion example_agent/utils/ex_vector_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

load_dotenv()

REDIS_URL = os.environ.get("REDIS_URL", "redis://host.docker.internal:6379/0")
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379/0")
INDEX_NAME = os.environ.get("VECTOR_INDEX_NAME", "oregon_trail")

config = RedisConfig(index_name=INDEX_NAME, redis_url=REDIS_URL)
Expand Down
2 changes: 1 addition & 1 deletion participant_agent/utils/semantic_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

load_dotenv()

REDIS_URL = os.environ.get("REDIS_URL", "redis://host.docker.internal:6379/0")
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379/0")

# Semantic cache
hunting_example = "There's a deer. You're starving. You know what you have to do..."
Expand Down
2 changes: 1 addition & 1 deletion participant_agent/utils/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

load_dotenv()

REDIS_URL = os.environ.get("REDIS_URL", "redis://host.docker.internal:6379/0")
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379/0")


@tool
Expand Down
2 changes: 1 addition & 1 deletion participant_agent/utils/vector_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

load_dotenv()

REDIS_URL = os.environ.get("REDIS_URL", "redis://host.docker.internal:6379/0")
REDIS_URL = os.environ.get("REDIS_URL", "redis://localhost:6379/0")
INDEX_NAME = os.environ.get("VECTOR_INDEX_NAME", "oregon_trail")

config = RedisConfig(index_name=INDEX_NAME, redis_url=REDIS_URL)
Expand Down

0 comments on commit 173fd86

Please sign in to comment.