Skip to content

Commit

Permalink
Fixed missing spaces in prompt templates (run-llama#8190)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Oct 19, 2023
1 parent 1471361 commit 4a1e20f
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ChangeLog

## Unreleased

### Bug Fixes / Nits

- Fixed missing spaces in prompt templates (#8190)

## [0.8.47] - 2023-10-19

### New Features
4 changes: 2 additions & 2 deletions llama_index/prompts/default_prompts.py
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
# insert prompts
DEFAULT_INSERT_PROMPT_TMPL = (
"Context information is below. It is provided in a numbered list "
"(1 to {num_chunks}),"
"(1 to {num_chunks}), "
"where each item in the list corresponds to a summary.\n"
"---------------------\n"
"{context_list}"
@@ -45,7 +45,7 @@
# # single choice
DEFAULT_QUERY_PROMPT_TMPL = (
"Some choices are given below. It is provided in a numbered list "
"(1 to {num_chunks}),"
"(1 to {num_chunks}), "
"where each item in the list corresponds to a summary.\n"
"---------------------\n"
"{context_list}"
4 changes: 2 additions & 2 deletions llama_index/selectors/prompts.py
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
# single select
DEFAULT_SINGLE_SELECT_PROMPT_TMPL = (
"Some choices are given below. It is provided in a numbered list "
"(1 to {num_choices}),"
"(1 to {num_choices}), "
"where each item in the list corresponds to a summary.\n"
"---------------------\n"
"{context_list}"
@@ -61,7 +61,7 @@
# single pydantic select
DEFAULT_SINGLE_PYD_SELECT_PROMPT_TMPL = (
"Some choices are given below. It is provided in a numbered list "
"(1 to {num_choices}),"
"(1 to {num_choices}), "
"where each item in the list corresponds to a summary.\n"
"---------------------\n"
"{context_list}"

0 comments on commit 4a1e20f

Please sign in to comment.