Skip to content

Commit 566a736

Browse files
committed
fixing rag demo
1 parent 8a01839 commit 566a736

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -958,23 +958,23 @@ ros2 llama launch ~/ros2_ws/src/llama_ros/llama_bringup/models/jina-reranker.yam
958958
```
959959

960960
```shell
961-
ros2 llama launch Llama-3.yaml
961+
ros2 llama launch Qwen2.yaml
962962
```
963963

964964
<details>
965965
<summary>Click to expand Llama-3.yaml</summary>
966966

967967
```yaml
968-
n_ctx: 4096
968+
_ctx: 4096
969969
n_batch: 256
970970
n_gpu_layers: 33
971971
n_threads: -1
972972
n_predict: -1
973973

974-
model_repo: "lmstudio-community/Llama-3.2-1B-Instruct-GGUF"
975-
model_filename: "Llama-3.2-1B-Instruct-Q8_0.gguf"
974+
model_repo: "Qwen/Qwen2.5-Coder-3B-Instruct-GGUF"
975+
model_filename: "qwen2.5-coder-3b-instruct-q4_k_m.gguf"
976976

977-
stopping_words: ["<|eot_id|>"]
977+
stopping_words: ["<|im_end|>"]
978978
```
979979
980980
</details>

llama_demos/llama_demos/llama_rag_demo_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
# create prompt
5858
prompt = ChatPromptTemplate.from_messages(
5959
[
60-
SystemMessage("You are an AI assistant that answer questions."),
60+
SystemMessage("You are an AI assistant that answer questions briefly."),
6161
HumanMessagePromptTemplate.from_template(
62-
"Taking into account the followin context:{context}\n\nAnswer this question: {question}"
62+
"Taking into account the followin information:{context}\n\n{question}"
6363
),
6464
]
6565
)

0 commit comments

Comments
 (0)