Skip to content

Commit

Permalink
fix quick start (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Sep 24, 2024
1 parent 63be925 commit 5142c56
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions content/overview/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ print(result["llm"]["replies"][0])
{{< tab tabName="Corresponding Pipeline" >}}
First, install Haystack:
```bash
pip install haystack-ai
pip install haystack-ai trafilatura
```

```python
Expand Down Expand Up @@ -133,7 +133,8 @@ from haystack import Pipeline, PredefinedPipeline
import urllib.request

os.environ["OPENAI_API_KEY"] = "Your OpenAI API Key"
urllib.request.urlretrieve("https://www.gutenberg.org/cache/epub/7785/pg7785.txt", "davinci.txt")
urllib.request.urlretrieve("https://archive.org/stream/leonardodavinci00brocrich/leonardodavinci00brocrich_djvu.txt",
"davinci.txt")

indexing_pipeline = Pipeline.from_template(PredefinedPipeline.INDEXING)
indexing_pipeline.run(data={"sources": ["davinci.txt"]})
Expand Down Expand Up @@ -167,7 +168,8 @@ from haystack.components.builders import PromptBuilder
from haystack.components.generators import OpenAIGenerator

os.environ["OPENAI_API_KEY"] = "Your OpenAI API Key"
urllib.request.urlretrieve("https://www.gutenberg.org/cache/epub/7785/pg7785.txt", "davinci.txt")
urllib.request.urlretrieve("https://archive.org/stream/leonardodavinci00brocrich/leonardodavinci00brocrich_djvu.txt",
"davinci.txt")

document_store = InMemoryDocumentStore()

Expand Down

0 comments on commit 5142c56

Please sign in to comment.