Skip to content

Commit

Permalink
Fix imports in examples (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkandler authored Jun 20, 2024
1 parent 1495a07 commit 5f63a79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/langchain-rag-ec2/langchain_rag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# # Deploy a Langchain RAG as a service on AWS EC2
# # Deploy a LangChain RAG as a service on AWS EC2

# This is an example of easily deploying [Langchain's Quickstart RAG app](https://python.langchain.com/docs/use_cases/question_answering/quickstart)
# This is an example of easily deploying [LangChain's Quickstart RAG app](https://python.langchain.com/docs/use_cases/question_answering/quickstart)
# as a service on AWS EC2 using Runhouse.

# ## Setup credentials and dependencies
Expand Down Expand Up @@ -36,7 +36,7 @@

import runhouse as rh

# Next, we define a class that will hold the Langchain App and allow us to send requests to it.
# Next, we define a class that will hold the LangChain app and allow us to send requests to it.
# You'll notice this class inherits from `rh.Module`.
# This is a Runhouse class that allows you to
# run code in your class on a remote machine.
Expand Down
2 changes: 1 addition & 1 deletion examples/llama3-vllm-gcp/llama3_vllm_gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# ```
# Install the required dependencies:
# ```shell
# $ pip install "runhouse[gcp] asyncio"
# $ pip install "runhouse[gcp]" asyncio
# ```
#
# We'll be launching a GCP instance via [SkyPilot](https://github.com/skypilot-org/skypilot), so we need to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# ```
# Install the required dependencies:
# ```shell
# $ pip install "runhouse[aws]" bs4
# $ pip install "runhouse[aws]" torch beautifulsoup4 tqdm
# ```
#
# We'll be launching an AWS EC2 instance via [SkyPilot](https://github.com/skypilot-org/skypilot), so we need to
Expand Down
4 changes: 3 additions & 1 deletion examples/parallel-hf-embedding-ec2/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
beautifulsoup4
runhouse[aws]
bs4
torch
tqdm

0 comments on commit 5f63a79

Please sign in to comment.