You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/platform/integrations/ai/openai_assistants.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Next, we’ll show how to save data from Apify Actors into the OpenAI Vector Sto
20
20
21
21
## Real-time search data for OpenAI Assistant
22
22
23
-
We'll use [RAG-Web-Browser](https://apify.com/apify/rag-web-browser) to fetch the latest information from the web and provide it to the OpenAI Assistant through [function calling](https://platform.openai.com/docs/assistants/tools/function-calling?context=without-streaming).
23
+
We'll use the [RAGWebBrowser](https://apify.com/apify/rag-web-browser) Actor to fetch the latest information from the web and provide it to the OpenAI Assistant through [function calling](https://platform.openai.com/docs/assistants/tools/function-calling?context=without-streaming).
24
24
To begin, we need to create an OpenAI Assistant with the appropriate instructions.
25
25
After that, we can initiate a conversation with the assistant by creating a thread, adding messages, and running the assistant to receive responses.
26
26
The image below provides an overview of the entire process:
@@ -65,7 +65,7 @@ INSTRUCTIONS = """ You are a smart and helpful assistant. Maintain an expert, fr
65
65
```
66
66
67
67
Next, we define a function description with two parameters, search query (`query`) and number of results we need to retrieve (`maxResults`).
68
-
The RAG-Web-Browser can be called with more parameters, check the [Actor input schema](https://apify.com/apify/rag-web-browser/input-schema) for details.
68
+
RAGWebBrowser can be called with more parameters, check the [Actor input schema](https://apify.com/apify/rag-web-browser/input-schema) for details.
69
69
70
70
```python
71
71
rag_web_browser_function = {
@@ -124,7 +124,7 @@ run = client.beta.threads.runs.create_and_poll(thread_id=thread.id, assistant_id
124
124
125
125
Finally, we need to check the run status to determine if the assistant requires any action to retrieve the search data.
126
126
If it does, we must submit the results using the `submit_tool_outputs` function.
127
-
This function will trigger the RAG-Web-Browser to fetch the search data and submit it to the assistant for processing.
127
+
This function will trigger RAGWebBrowser to fetch the search data and submit it to the assistant for processing.
128
128
129
129
Let's implement the `submit_tool_outputs` function:
0 commit comments