tomaarsen HF Staff commited on
Commit
81a01a8
·
verified ·
1 Parent(s): dcb06a7

Add some metadata to the model card

Browse files

Hello!

## Pull Request overview
* Add `transformers` tag
* Add `text-generation` pipeline tag

## Details
These should make it a tad easier to find this model.

Also, as a heads up, in my experience, a small snippet in the model card with usage is often recommended to get people a good feel of what your model does, e.g.:
```python
rag = RAGWithCitations("PleIAs/Pleias-RAG-1B")

# Define query and sources
query = "What is the capital of France?"
sources = [
{
"text": "Paris is the capital and most populous city of France.",
"metadata": {"source": "Geographic Encyclopedia", "reliability": "high"}
},
{
"text": "The Eiffel Tower is located in Paris, France.",
"metadata": {"source": "Travel Guide", "year": 2020}
}
]

# Generate a response
response = rag.generate(query, sources)

# Print the final answer with citations
print(response["processed"]["clean_answer"])
```

(Except also include the import & printed output)

- Tom Aarsen

Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -8,6 +8,9 @@ language:
8
  - es
9
  base_model:
10
  - PleIAs/Pleias-1.2B-Preview
 
 
 
11
  ---
12
 
13
 
 
8
  - es
9
  base_model:
10
  - PleIAs/Pleias-1.2B-Preview
11
+ pipeline_tag: text-generation
12
+ tags:
13
+ - transformers
14
  ---
15
 
16