Skip to content

Commit

Permalink
Update comments (missed in the previous merge) (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jirispilka authored Aug 1, 2024
1 parent c09789f commit 26e112f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/apify_haystack/apify_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class ApifyDatasetFromActorCall:
Perform call of Apify Actor and load produced dataset.
For details, see https://docs.apify.com/platform/integrations/haystack
To use, you should have the ``apify-client`` python package installed,
To use it, you should have the ``apify-client`` python package installed,
and the environment variable ``APIFY_API_TOKEN`` set with your API key, or pass
`apify_api_token` as a named parameter to the constructor.
"""
Expand Down
4 changes: 2 additions & 2 deletions src/apify_haystack/examples/rag_with_crawled_website.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def dataset_mapping_function(dataset_item: dict) -> Document:
generator = OpenAIGenerator(model="gpt-3.5-turbo")

# Load documents from Apify
print("Crawling will take some time ...")
print("You can visit https://console.apify.com/actors/runs to monitor the progress")
docs = apify_dataset_loader.run()
embeddings = docs_embedder.run(docs.get("documents"))
document_store.write_documents(embeddings["documents"])
Expand Down Expand Up @@ -97,8 +99,6 @@ def dataset_mapping_function(dataset_item: dict) -> Document:

question = "What is haystack?"

print("Running pipeline ... crawling will take some time ...")
print("You can visit https://console.apify.com/actors/runs to monitor the progress")

response = pipe.run({"embedder": {"text": question}, "prompt_builder": {"question": question}})

Expand Down

0 comments on commit 26e112f

Please sign in to comment.