Skip to content

Commit 665471f

Browse files
authored
Fix query generation prompt (#1056)
1 parent 390966d commit 665471f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/ja/DEPLOY_OPTION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ npm run cdk:deploy
8484
const envs: Record<string, Partial<StackInput>> = {
8585
dev: {
8686
ragEnabled: true,
87-
kendraIndexLanguage: 'jp',
87+
kendraIndexLanguage: 'ja',
8888
},
8989
};
9090
```
@@ -96,7 +96,7 @@ const envs: Record<string, Partial<StackInput>> = {
9696
{
9797
"context": {
9898
"ragEnabled": true,
99-
"kendraIndexLanguage": "jp"
99+
"kendraIndexLanguage": "ja"
100100
}
101101
}
102102
```

packages/web/src/prompts/claude.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ Please generate a query following the <Query generation steps></Query generation
209209
* Do not use the suffixes "About 〜", "Tell me about 〜", "Explain 〜" in the query.
210210
* If there is no output query, output "No Query".
211211
* Output only the generated query. Do not output any other text. There are no exceptions.
212+
* Automatically detect the language of the user's request and think and answer in the same language.
212213
</Query generation steps>
213214
214215
<Query history>

0 commit comments

Comments
 (0)