Skip to content

Commit 88a9d3c

Browse files
Merge pull request #53921 from GraemeMalcolm/main
Switch to sentence casing and add explicit prompt
2 parents f7b2f3c + 7a3072c commit 88a9d3c

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

learn-pr/wwl-data-ai/use-generative-ai-tools/includes/03-code-interpreter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Key features include:
1212
- **Real-time Feedback**: The model sees code execution results and can iterate or fix errors
1313
- **Complex Problem Solving**: Tackle math problems, simulations, and logic puzzles through executable code
1414

15-
## Common Use Cases
15+
## Common use cases
1616

1717
| Use Case | Example |
1818
|----------|---------|
@@ -70,7 +70,7 @@ The general process for using the code_interpreter tool is:
7070
4. **Code runs**: The code runs in a sandboxed environment with access to common libraries (for example, *pandas*, *numpy*, and *math*).
7171
5. **Results returned**: The model receives the output and incorporates it into its response.
7272

73-
## Best Practices
73+
## Best practices
7474

7575
- **Be specific**: Describe the data format and expected output clearly. Many models internally use the name *python tool* to identify the code_interpreter tool - so use this language in your instructions.
7676
- **Provide context**: Include relevant domain knowledge in your prompts

learn-pr/wwl-data-ai/use-generative-ai-tools/includes/04-web-search.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Key features include:
1414
- **Automatic query generation** - The model decides when and how to search based on user intent
1515
- **Seamless user experience** - Search and response generation happen in one flow
1616

17-
## Common Use Cases
17+
## Common use cases
1818

1919
| Use Case | Example |
2020
|----------|---------|
@@ -61,7 +61,7 @@ The general process for using the web_search tool is:
6161
4. **Results are reviewed** - Relevant pages are selected and summarized.
6262
5. **Response is generated** - The model combines search findings into the final answer.
6363

64-
## Best Practices
64+
## Best practices
6565

6666
- **Ask time-aware questions clearly** - Include words like "latest", "current", or date ranges when needed
6767
- **Set expectations for sources** - Prompt for reputable or official sources when accuracy matters

learn-pr/wwl-data-ai/use-generative-ai-tools/includes/05-file-search.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Key features include:
1414
- **Citations and transparency** - Include matched results for debugging and traceability
1515
- **Better enterprise relevance** - Use organization-specific knowledge in model outputs
1616

17-
## Common Use Cases
17+
## Common use cases
1818

1919
| Use Case | Example |
2020
|----------|---------|
@@ -46,7 +46,7 @@ client.vector_stores.files.upload_and_poll(
4646
response = client.responses.create(
4747
model=model_deployment,
4848
instructions="You are an AI assistant that provides information from HR policy documents.",
49-
input=prompt,
49+
input="What's the maximum amount I can claim for a tsxi ride?",
5050
tools=[{
5151
"type": "file_search",
5252
"vector_store_ids": [vector_store.id]
@@ -68,7 +68,7 @@ The general process for using the file_search tool is:
6868
4. **Results are injected** - Matching passages are provided to the model.
6969
5. **Response is generated** - The model answers using retrieved document context.
7070

71-
## Best Practices
71+
## Best practices
7272

7373
- **Use high-quality source files** - Clean, current documents improve retrieval accuracy
7474
- **Write focused prompts** - Ask specific questions to reduce ambiguous matches

learn-pr/wwl-data-ai/use-generative-ai-tools/includes/06-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Key features include:
1414
- **Multi-turn orchestration** - Return tool output and let the model continue reasoning
1515
- **Grounded responses** - Answers can include live, system-generated data
1616

17-
## Common Use Cases
17+
## Common use cases
1818

1919
| Use Case | Example |
2020
|----------|---------|
@@ -134,7 +134,7 @@ The general process for using the function tool is:
134134
5. **You return function output** - Send a `function_call_output` item with the result.
135135
6. **Model completes the answer** - It incorporates tool results into the final response.
136136

137-
## Best Practices
137+
## Best practices
138138

139139
- **Keep tools focused** - Small, single-purpose functions are easier to control and test
140140
- **Validate function inputs** - Never trust tool arguments blindly in production systems

0 commit comments

Comments
 (0)