Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docs-website-test-docs-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
AZURE_OPENAI_AD_TOKEN: ${{ secrets.AZURE_OPENAI_AD_TOKEN }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
CORE_AZURE_CS_ENDPOINT: ${{ secrets.CORE_AZURE_CS_ENDPOINT }}
HF_API_TOKEN: ${{ secrets.HUGGINGFACE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
SERPERDEV_API_KEY: ${{ secrets.SERPERDEV_API_KEY }}

Expand Down
4 changes: 2 additions & 2 deletions haystack/components/generators/hugging_face_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class HuggingFaceLocalGenerator:
LLMs running locally may need powerful hardware.

### Usage example
<!-- test-ignore -->

```python
from haystack.components.generators import HuggingFaceLocalGenerator

Expand All @@ -40,7 +40,7 @@ class HuggingFaceLocalGenerator:
)

print(generator.run("Who is the best American actor?"))
# {'replies': ['John Cusack']}
# >> {'replies': ['John Cusack']}
```
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class SentenceTransformersDiversityRanker:
if a score is present.

### Usage example
<!-- test-ignore -->

```python
from haystack import Document
from haystack.components.rankers import SentenceTransformersDiversityRanker
Expand Down
2 changes: 1 addition & 1 deletion haystack/components/rankers/transformers_similarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TransformersSimilarityRanker:
additional features.

### Usage example
<!-- test-ignore -->

```python
from haystack import Document
from haystack.components.rankers import TransformersSimilarityRanker
Expand Down
2 changes: 1 addition & 1 deletion haystack/components/routers/llm_messages_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LLMMessagesRouter:
This component can be used with general-purpose LLMs and with specialized LLMs for moderation like Llama Guard.

### Usage example
<!-- test-ignore -->

```python
from haystack.components.generators.chat import HuggingFaceAPIChatGenerator
from haystack.components.routers.llm_messages_router import LLMMessagesRouter
Expand Down
2 changes: 1 addition & 1 deletion haystack/components/routers/zero_shot_text_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TransformersZeroShotTextRouter:
Specify the set of labels for categorization when initializing the component.

### Usage example
<!-- test-ignore -->

```python
from haystack import Document
from haystack.document_stores.in_memory import InMemoryDocumentStore
Expand Down
Loading