Skip to content

Commit 50c8c06

Browse files
docs: update examples from notebooks (#1114)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 707e34d commit 50c8c06

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/v2/examples/openai.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'OpenAI'
3-
description: "Load the dataset (ensure you're logged in with huggingface-cli if needed)"
3+
description: 'Load the dataset (ensure you're logged in with huggingface-cli if needed)'
44
---
55
{/* SOURCE_FILE: examples/openai/multi_tool_orchestration.ipynb */}
66

@@ -322,7 +322,7 @@ Finally, the tool call and its output are appended to the conversation, and the
322322

323323
### Multi-tool orchestration flow
324324

325-
Now let us try to modify the input query and the system instructions to the responses API in order to follow a tool calling sequence and generate the output.
325+
Now let us try to modify the input query and the system instructions to the responses API in order to follow a tool calling sequence and generate the output.
326326

327327

328328
```python
@@ -427,10 +427,10 @@ agentops.end_trace(tracer, end_state="Success")
427427
```
428428

429429

430-
Here, we have seen how to utilize OpenAI's Responses API to implement a Retrieval-Augmented Generation (RAG) approach with multi-tool calling capabilities. It showcases an example where the model selects the appropriate tool based on the input query: general questions may be handled by built-in tools such as web-search, while specific medical inquiries related to internal knowledge are addressed by retrieving context from a vector database (such as Pinecone) via function calls. Additonally, we have showcased how multiple tool calls can be sequentially combined to generate a final response based on our instructions provided to responses API. Happy coding!
430+
Here, we have seen how to utilize OpenAI's Responses API to implement a Retrieval-Augmented Generation (RAG) approach with multi-tool calling capabilities. It showcases an example where the model selects the appropriate tool based on the input query: general questions may be handled by built-in tools such as web-search, while specific medical inquiries related to internal knowledge are addressed by retrieving context from a vector database (such as Pinecone) via function calls. Additonally, we have showcased how multiple tool calls can be sequentially combined to generate a final response based on our instructions provided to responses API. Happy coding!
431431

432432

433433
<script type="module" src="/scripts/github_stars.js"></script>
434434
<script type="module" src="/scripts/scroll-img-fadein-animation.js"></script>
435435
<script type="module" src="/scripts/button_heartbeat_animation.js"></script>
436-
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>
436+
<script type="module" src="/scripts/adjust_api_dynamically.js"></script>

0 commit comments

Comments
 (0)