Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update documentation

davidmezzettib5b392246475
diff --git a/docs/pipeline/text/llm.md b/docs/pipeline/text/llm.md
index 086728bd..5f629247 100644
--- a/docs/pipeline/text/llm.md
+++ b/docs/pipeline/text/llm.md
@@ -47,7 +47,8 @@ llm([
{"role": "user", "content": "Answer the following question..."}
])
-# Set the default role to user and string inputs are converted to chat messages
+# When there is no system prompt passed to instruction tuned models,
+# `defaultrole="user"` must be set for string inputs
llm("Answer the following question...", defaultrole="user")
```
diff --git a/docs/pipeline/text/rag.md b/docs/pipeline/text/rag.md
index 04e253c4..25a6e5a6 100644
--- a/docs/pipeline/text/rag.md
+++ b/docs/pipeline/text/rag.md
@@ -43,7 +43,8 @@ rag = RAG(embeddings, "Qwen/Qwen3-0.6B", template="""
# Run RAG pipeline
# LLM options can be passed as additional arguments
-# - Set the default role to user and inputs are converted to chat messages
+# - When there is no system prompt passed to instruction tuned models,
+# `defaultrole="user"` must be set for string prompts
# - Thinking text is removed when `stripthink=True`
rag("What was won?", defaultrole="user", stripthink=True)