Execute
Execute a RAG Tool from the library with some user input.
1. POST /rag_tools/execute
Request body
- system_name - System name of the RAG Tool
- user_message - User’s question
Example Request
1. {
2. "system_name": "RAG_TOOL_TEST",
3. "user_message": "What is the service fee for paying an invoice in online banking?"
4. }
Example Response
1. {
2. "answer": "The service commission fee for bill payment via internet banking
ranges from €0.00 (including VAT) to €0.36 (including VAT), depending
on the bank's service price list.",
3. "results": [
4. {
5. "collection_id": "Collection's id",
6. "completion": false,
7. "content": "...",
8. "metadata": {
9. "name": "Document's name",
10. "source": "Link to the document",
11. "title": "Document's name",
12. "type": ""
13. },
14. "score": 0.876733
15. },
16. ...
17. ]
18. }