Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Drobník <drobnik.j@gmail.com>
  • Loading branch information
jirispilka and drobnikj authored Jul 31, 2024
1 parent 57d647b commit bae5750
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pip install apify-haystack

## Examples

Crawl website using Apify Website Content Crawler and convert it to Haystack Documents.
### Crawl a website Using Apify Website Content Crawler and convert it to Haystack Documents

You need to have an Apify account and API token to run this example.
You can start with a free account at [Apify](https://apify.com/) and get your [API token](https://docs.apify.com/platform/integrations/api).
Expand Down Expand Up @@ -57,6 +57,8 @@ for d in dataset:
print(d)
```

### More Examples

See other examples in the [examples directory](https://github.com/apify/apify-haystack/blob/master/src/apify_haystack/examples) for more examples, here is a list of few of them

- Load a dataset from Apify and convert it to Haystack Document
Expand Down
2 changes: 1 addition & 1 deletion src/apify_haystack/examples/crawl_and_process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

load_dotenv()

# Set APIFY-API-TOKEN here or use it from .env file
# Set APIFY_API_TOKEN here or use it from .env file
apify_api_token = "" or os.getenv("APIFY_API_TOKEN")
openai_api_key = "" or os.getenv("OPENAI_API_KEY")

Expand Down
2 changes: 1 addition & 1 deletion src/apify_haystack/examples/rag_with_crawled_website.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

from apify_haystack import ApifyDatasetFromActorCall

# Set APIFY-API-TOKEN here or use it from .env file
# Set APIFY_API_TOKEN here or use it from .env file
load_dotenv()
apify_api_token = "" or os.getenv("APIFY_API_TOKEN")
openai_api_key = "" or os.getenv("OPENAI_API_KEY")
Expand Down

0 comments on commit bae5750

Please sign in to comment.