Remove quotes
How can I remove quotations from Assistants API?
Open until 17 December 2024, or until the budget is exhausted【4:5†source】【4:14†source】
Solution:Jump to solution
So I found the solution. Not the one suggested. I've opened the code of the node and then put JS code.
cleanedText = text.replace(/【[^】]+】/g, '').replace(/*/g, '');...
11 Replies
To remove quotations from the responses generated by the Assistants API, you can customize the instructions given to the assistant to avoid including citations or source references in its responses.
Here's how you can customize the instructions:
1. Create or Update Assistant Instructions: When creating or updating your assistant, provide clear guidelines on how the responses should be formatted. For example, you can specify that the assistant should not include citations or source references.
2. Connect Your Assistant to BuildShip: Ensure your assistant is connected to BuildShip and that the instructions are properly configured. You can follow the steps to connect your assistant as described in the AI Assistant Builder Guide.
3. Test and Adjust: Test the assistant's responses to ensure they meet your requirements. If necessary, adjust the instructions to refine the output further.
For more detailed guidance on creating and configuring AI Assistants, you can refer to the AI Assistant Builder Guide.
If you need further assistance, please submit your request via the in-app support button.
No it doesn't help. I need to write code to remove them
@smøĸe_svyatsk, Could you please share your instructions, as the suggested method by Bot should work. Instructions
You are a text cleaner, which removes quotation from the text example. Open until 17 December 2024, or until the budget is exhausted【4:5†source】【4:14†source】 remove quorations from this it should result like this Open until 17 December 2024, or until the budget is exhausted.
Here are the instructions
Provide clear, concise, and engaging answers based only on the provided data. Don't use markdown, only plain text. Remove quotations from text, like【4:1†source】【4:2†source】【4:8†source】【4:14†source].
Example. Initial text:
Up to €30,000 per project with a call budget of €930,000【4:0†source】【4:4†source】【4:9†source】【4:10†source】【4:16†source】.
Result:
Up to €30,000 per project with a call budget of €930,000
Sure, you can provide clear, concise, and engaging answers by removing the quotations from the text. Here's an example:
Initial text:
Up to €30,000 per project with a call budget of €930,000【4:0†source】【4:4†source】【4:9†source】【4:10†source】【4:16†source】.
Result:
Up to €30,000 per project with a call budget of €930,000
For more details on creating and managing AI Assistants in BuildShip, please refer to the documentation at https://docs.buildship.com/ai-assistant/assistant.
But I was trying to do it by JavaScript, like text.replace(/【[^】]+】/g, '') and didn't find a right place to do it
To perform text manipulation using JavaScript in BuildShip, you can use custom nodes where you can write and execute JavaScript code. For more details on how to add custom logic to your nodes, refer to the Input Parameters documentation.
If you need further assistance, please submit your query via the in-app support button.
I tried to create a node, but it didn't help as well
For assistance with creating a node in BuildShip, please refer to the relevant documentation on building custom nodes via AI:
AI Generated Nodes
If you continue to face issues, please submit your query via the in-app support button for further assistance.
AI Generated Nodes – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Solution
So I found the solution. Not the one suggested. I've opened the code of the node and then put JS code.
cleanedText = text.replace(/【[^】]+】/g, '').replace(/*/g, '');
It looks like you modified the node's code to clean the text. For more details on how to customize nodes in BuildShip, you can refer to the Node Basics documentation.
If you need further assistance, please submit your query via the in-app support button.
What is a Node? – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.