Skip to content

Commit

Permalink
Update Gradient article code blocks (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
bilgeyucel authored Jan 19, 2024
1 parent 3edc6cd commit cab0e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/blog/using-gradient-models-with-haystack/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ In this article, I’ve provided an example [Colab](https://colab.research.googl
2. Generate a response using our own fine-tuned LLM from Gradient:

```python
from haystack.components.retrievers import InMemoryEmbeddingRetriever
from haystack.components.retrievers.in_memory import InMemoryEmbeddingRetriever
from haystack.components.builders import PromptBuilder
from gradient_haystack.embedders.gradient_text_embedder import GradientTextEmbedder
from gradient_haystack.generator.base import GradientGenerator
from haystack_integrations.components.embedders.gradient import GradientTextEmbedder
from haystack_integrations.components.generators.gradient import GradientGenerator

prompt = """ Answer the query, based on the
content in the documents.
Expand Down Expand Up @@ -116,4 +116,4 @@ question = "What are the steps for creating a custom component?"
rag_pipeline.run(data={"text_embedder":{"text": question},
"prompt_builder":{"query": question}})

```
```

1 comment on commit cab0e73

@vercel
Copy link

@vercel vercel bot commented on cab0e73 Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.