Skip to content

Commit ddbc284

Browse files
committed
update example config with citation annotation
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
1 parent 482ac5e commit ddbc284

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

examples/run.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ registered_resources:
163163
- toolgroup_id: builtin::rag # Register the RAG tool
164164
provider_id: rag-runtime
165165
vector_stores:
166+
annotation_prompt_params: # Override the default Llama Stack annotation that adds <| file-xyz |> to responses
167+
enable_annotations: true
168+
annotation_instruction_template: >
169+
When appropriate, cite sources at the end of sentences using doc_url and doc_title format.
170+
Citing sources is not always required because citations are handled externally.
171+
Never include any citation that is in the form '<| file-id |>'.
166172
default_provider_id: faiss
167173
default_embedding_model: # Define the default embedding model for RAG
168174
provider_id: sentence-transformers

0 commit comments

Comments
 (0)