Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
tags:
|
| 3 |
+
- text2text-generation
|
| 4 |
+
- flan-t5
|
| 5 |
+
- RAG
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Custom RAG Pipeline
|
| 9 |
+
|
| 10 |
+
This is a Retrieval-Augmented Generation (RAG) pipeline built using the `google/flan-t5-small` model.
|
| 11 |
+
|
| 12 |
+
## Usage
|
| 13 |
+
|
| 14 |
+
```python
|
| 15 |
+
from transformers import pipeline
|
| 16 |
+
|
| 17 |
+
# Load the model
|
| 18 |
+
generator = pipeline("text2text-generation", model="VidishaKhalpada/RAG")
|
| 19 |
+
|
| 20 |
+
# Generate text
|
| 21 |
+
result = generator("Translate English to French: How are you?")
|
| 22 |
+
print(result)
|