liuhua
liuhua
commited on
Commit
·
6f8784a
1
Parent(s):
542bb2e
Update api documents (#3979)
Browse files### What problem does this PR solve?
Update api documents
### Type of change
- [x] Documentation Update
Co-authored-by: liuhua <[email protected]>
- docs/references/http_api_reference.md +124 -983
- docs/references/python_api_reference.md +20 -20
docs/references/http_api_reference.md
CHANGED
@@ -2411,532 +2411,139 @@ Success:
|
|
2411 |
```json
|
2412 |
{
|
2413 |
"code": 0,
|
2414 |
-
"data":
|
2415 |
-
|
2416 |
-
|
2417 |
-
"
|
2418 |
-
"
|
2419 |
-
|
2420 |
-
|
2421 |
-
|
2422 |
-
|
2423 |
-
"
|
2424 |
-
"Categorize:TameDodosLove"
|
2425 |
-
],
|
2426 |
-
"obj": {
|
2427 |
-
"component_name": "Answer",
|
2428 |
-
"inputs": [],
|
2429 |
-
"output": null,
|
2430 |
-
"params": {
|
2431 |
-
"inputs": [],
|
2432 |
-
"message_history_window_size": 22,
|
2433 |
-
"output": null,
|
2434 |
-
"output_var_name": "output",
|
2435 |
-
"post_answers": [],
|
2436 |
-
"query": []
|
2437 |
-
}
|
2438 |
-
},
|
2439 |
-
"upstream": [
|
2440 |
-
"Generate:RealCatsJudge"
|
2441 |
-
]
|
2442 |
},
|
2443 |
-
"
|
2444 |
-
|
2445 |
-
|
2446 |
-
|
2447 |
-
|
2448 |
-
|
2449 |
-
|
2450 |
-
"
|
2451 |
-
|
2452 |
-
|
2453 |
-
"
|
2454 |
-
|
2455 |
-
|
2456 |
-
|
2457 |
-
|
2458 |
-
|
2459 |
-
|
2460 |
-
|
2461 |
-
"query": []
|
2462 |
-
}
|
2463 |
-
},
|
2464 |
-
"upstream": [
|
2465 |
-
"begin"
|
2466 |
-
]
|
2467 |
},
|
2468 |
-
"
|
2469 |
-
|
2470 |
-
|
2471 |
-
|
2472 |
-
|
2473 |
-
|
2474 |
-
|
2475 |
-
"inputs": [],
|
2476 |
-
"message_history_window_size": 22,
|
2477 |
-
"output": null,
|
2478 |
-
"output_var_name": "output",
|
2479 |
-
"query": [],
|
2480 |
-
"top_n": 10
|
2481 |
-
}
|
2482 |
-
},
|
2483 |
-
"upstream": []
|
2484 |
},
|
2485 |
-
"
|
2486 |
-
|
2487 |
-
|
2488 |
-
|
2489 |
-
|
2490 |
-
|
2491 |
-
|
2492 |
-
|
2493 |
-
"
|
2494 |
-
|
2495 |
-
"百度搜索": {
|
2496 |
-
"description": "接收用户的问题",
|
2497 |
-
"examples": "who are you\n今天天气如何",
|
2498 |
-
"index": 0,
|
2499 |
-
"to": "Retrieval:KindMammalsBeg"
|
2500 |
-
}
|
2501 |
-
},
|
2502 |
-
"cite": true,
|
2503 |
-
"frequency_penalty": 0.7,
|
2504 |
-
"inputs": [],
|
2505 |
-
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
2506 |
-
"max_tokens": 256,
|
2507 |
-
"message_history_window_size": 1,
|
2508 |
-
"output": null,
|
2509 |
-
"output_var_name": "output",
|
2510 |
-
"parameters": [],
|
2511 |
-
"presence_penalty": 0.4,
|
2512 |
-
"prompt": "",
|
2513 |
-
"query": [],
|
2514 |
-
"temperature": 0.1,
|
2515 |
-
"top_p": 0.3
|
2516 |
-
}
|
2517 |
},
|
2518 |
-
"
|
2519 |
-
|
2520 |
-
|
2521 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2522 |
},
|
2523 |
-
|
2524 |
-
"
|
2525 |
-
"
|
2526 |
-
],
|
2527 |
-
"obj": {
|
2528 |
-
"component_name": "Generate",
|
2529 |
-
"inputs": [],
|
2530 |
-
"output": null,
|
2531 |
-
"params": {
|
2532 |
"cite": true,
|
|
|
2533 |
"frequency_penalty": 0.7,
|
2534 |
-
"inputs": [],
|
2535 |
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
|
|
2536 |
"max_tokens": 256,
|
2537 |
"message_history_window_size": 12,
|
2538 |
-
"
|
2539 |
-
"
|
2540 |
-
"parameters": [
|
2541 |
-
{
|
2542 |
-
"component_id": "Retrieval:KindMammalsBeg",
|
2543 |
-
"id": "1cc92398-2306-42ee-b401-6bfb49e1084e",
|
2544 |
-
"key": "input"
|
2545 |
-
}
|
2546 |
-
],
|
2547 |
"presence_penalty": 0.4,
|
2548 |
-
"prompt": "Please summarize the following
|
2549 |
-
"query": [],
|
2550 |
"temperature": 0.1,
|
|
|
|
|
2551 |
"top_p": 0.3
|
2552 |
-
}
|
2553 |
-
},
|
2554 |
-
"upstream": [
|
2555 |
-
"Retrieval:KindMammalsBeg"
|
2556 |
-
]
|
2557 |
-
},
|
2558 |
-
"Retrieval:KindMammalsBeg": {
|
2559 |
-
"downstream": [
|
2560 |
-
"Generate:RealCatsJudge"
|
2561 |
-
],
|
2562 |
-
"obj": {
|
2563 |
-
"component_name": "Retrieval",
|
2564 |
-
"inputs": [],
|
2565 |
-
"output": null,
|
2566 |
-
"params": {
|
2567 |
-
"empty_response": "",
|
2568 |
-
"inputs": [],
|
2569 |
-
"kb_ids": [
|
2570 |
-
"0f8fe876ab1a11efa22c0242ac120006"
|
2571 |
-
],
|
2572 |
-
"keywords_similarity_weight": 0.3,
|
2573 |
-
"message_history_window_size": 22,
|
2574 |
-
"output": null,
|
2575 |
-
"output_var_name": "output",
|
2576 |
-
"query": [],
|
2577 |
-
"rerank_id": "",
|
2578 |
-
"similarity_threshold": 0.2,
|
2579 |
-
"top_k": 1024,
|
2580 |
-
"top_n": 8
|
2581 |
-
}
|
2582 |
-
},
|
2583 |
-
"upstream": [
|
2584 |
-
"Categorize:TameDodosLove"
|
2585 |
-
]
|
2586 |
-
},
|
2587 |
-
"begin": {
|
2588 |
-
"downstream": [
|
2589 |
-
"Answer:ThickBeesTap"
|
2590 |
-
],
|
2591 |
-
"obj": {
|
2592 |
-
"component_name": "Begin",
|
2593 |
-
"inputs": [],
|
2594 |
-
"output": {
|
2595 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?"
|
2596 |
-
},
|
2597 |
-
"params": {
|
2598 |
-
"inputs": [],
|
2599 |
-
"message_history_window_size": 22,
|
2600 |
-
"output": {
|
2601 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?"
|
2602 |
-
},
|
2603 |
-
"output_var_name": "output",
|
2604 |
-
"prologue": "Hi! I'm your smart assistant. What can I do for you?",
|
2605 |
-
"query": []
|
2606 |
-
}
|
2607 |
-
},
|
2608 |
-
"upstream": []
|
2609 |
-
}
|
2610 |
-
},
|
2611 |
-
"embed_id": "",
|
2612 |
-
"graph": {
|
2613 |
-
"edges": [
|
2614 |
-
{
|
2615 |
-
"id": "reactflow__edge-begin-Answer:ThickBeesTapc",
|
2616 |
-
"markerEnd": "logo",
|
2617 |
-
"source": "begin",
|
2618 |
-
"sourceHandle": null,
|
2619 |
-
"style": {
|
2620 |
-
"stroke": "rgb(202 197 245)",
|
2621 |
-
"strokeWidth": 2
|
2622 |
-
},
|
2623 |
-
"target": "Answer:ThickBeesTap",
|
2624 |
-
"targetHandle": "c",
|
2625 |
-
"type": "buttonEdge"
|
2626 |
-
},
|
2627 |
-
{
|
2628 |
-
"id": "reactflow__edge-Answer:ThickBeesTapb-Categorize:TameDodosLovea",
|
2629 |
-
"markerEnd": "logo",
|
2630 |
-
"source": "Answer:ThickBeesTap",
|
2631 |
-
"sourceHandle": "b",
|
2632 |
-
"style": {
|
2633 |
-
"stroke": "rgb(202 197 245)",
|
2634 |
-
"strokeWidth": 2
|
2635 |
-
},
|
2636 |
-
"target": "Categorize:TameDodosLove",
|
2637 |
-
"targetHandle": "a",
|
2638 |
-
"type": "buttonEdge"
|
2639 |
-
},
|
2640 |
-
{
|
2641 |
-
"id": "reactflow__edge-Generate:RealCatsJudgec-Answer:SilentNeedlesDoubleb",
|
2642 |
-
"markerEnd": "logo",
|
2643 |
-
"selected": false,
|
2644 |
-
"source": "Generate:RealCatsJudge",
|
2645 |
-
"sourceHandle": "c",
|
2646 |
-
"style": {
|
2647 |
-
"stroke": "rgb(202 197 245)",
|
2648 |
-
"strokeWidth": 2
|
2649 |
-
},
|
2650 |
-
"target": "Answer:SilentNeedlesDouble",
|
2651 |
-
"targetHandle": "b",
|
2652 |
-
"type": "buttonEdge"
|
2653 |
-
},
|
2654 |
-
{
|
2655 |
-
"id": "reactflow__edge-Answer:SilentNeedlesDoublec-Categorize:TameDodosLovea",
|
2656 |
-
"markerEnd": "logo",
|
2657 |
-
"source": "Answer:SilentNeedlesDouble",
|
2658 |
-
"sourceHandle": "c",
|
2659 |
-
"style": {
|
2660 |
-
"stroke": "rgb(202 197 245)",
|
2661 |
-
"strokeWidth": 2
|
2662 |
-
},
|
2663 |
-
"target": "Categorize:TameDodosLove",
|
2664 |
-
"targetHandle": "a",
|
2665 |
-
"type": "buttonEdge"
|
2666 |
-
},
|
2667 |
-
{
|
2668 |
-
"id": "reactflow__edge-Categorize:TameDodosLove百度搜索-Retrieval:KindMammalsBegc",
|
2669 |
-
"markerEnd": "logo",
|
2670 |
-
"source": "Categorize:TameDodosLove",
|
2671 |
-
"sourceHandle": "百度搜索",
|
2672 |
-
"style": {
|
2673 |
-
"stroke": "rgb(202 197 245)",
|
2674 |
-
"strokeWidth": 2
|
2675 |
-
},
|
2676 |
-
"target": "Retrieval:KindMammalsBeg",
|
2677 |
-
"targetHandle": "c",
|
2678 |
-
"type": "buttonEdge"
|
2679 |
-
},
|
2680 |
-
{
|
2681 |
-
"id": "reactflow__edge-Retrieval:KindMammalsBegb-Generate:RealCatsJudgeb",
|
2682 |
-
"markerEnd": "logo",
|
2683 |
-
"source": "Retrieval:KindMammalsBeg",
|
2684 |
-
"sourceHandle": "b",
|
2685 |
-
"style": {
|
2686 |
-
"stroke": "rgb(202 197 245)",
|
2687 |
-
"strokeWidth": 2
|
2688 |
-
},
|
2689 |
-
"target": "Generate:RealCatsJudge",
|
2690 |
-
"targetHandle": "b",
|
2691 |
-
"type": "buttonEdge"
|
2692 |
-
}
|
2693 |
-
],
|
2694 |
-
"nodes": [
|
2695 |
-
{
|
2696 |
-
"data": {
|
2697 |
-
"label": "Begin",
|
2698 |
-
"name": "begin"
|
2699 |
},
|
2700 |
-
"
|
2701 |
-
"
|
2702 |
-
"position": {
|
2703 |
-
"x": 50,
|
2704 |
-
"y": 200
|
2705 |
-
},
|
2706 |
-
"sourcePosition": "left",
|
2707 |
-
"targetPosition": "right",
|
2708 |
-
"type": "beginNode",
|
2709 |
-
"width": 200
|
2710 |
},
|
2711 |
-
|
2712 |
-
|
2713 |
-
|
2714 |
-
|
2715 |
-
|
2716 |
-
|
2717 |
-
"dragging": false,
|
2718 |
-
"height": 44,
|
2719 |
-
"id": "Answer:ThickBeesTap",
|
2720 |
-
"position": {
|
2721 |
-
"x": 297.6576850283112,
|
2722 |
-
"y": 203.86553837720618
|
2723 |
-
},
|
2724 |
-
"positionAbsolute": {
|
2725 |
-
"x": 297.6576850283112,
|
2726 |
-
"y": 203.86553837720618
|
2727 |
-
},
|
2728 |
-
"selected": false,
|
2729 |
-
"sourcePosition": "right",
|
2730 |
-
"targetPosition": "left",
|
2731 |
-
"type": "logicNode",
|
2732 |
-
"width": 200
|
2733 |
},
|
2734 |
-
{
|
2735 |
-
"
|
2736 |
-
|
2737 |
-
"category_description": {
|
2738 |
-
"百度搜索": {
|
2739 |
-
"description": "接收用户的问题",
|
2740 |
-
"examples": "who are you\n今天天气如何",
|
2741 |
-
"index": 0,
|
2742 |
-
"to": "Retrieval:KindMammalsBeg"
|
2743 |
-
}
|
2744 |
-
},
|
2745 |
-
"frequencyPenaltyEnabled": true,
|
2746 |
-
"frequency_penalty": 0.7,
|
2747 |
-
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
2748 |
-
"maxTokensEnabled": true,
|
2749 |
-
"max_tokens": 256,
|
2750 |
-
"message_history_window_size": 1,
|
2751 |
-
"presencePenaltyEnabled": true,
|
2752 |
-
"presence_penalty": 0.4,
|
2753 |
-
"query": [],
|
2754 |
-
"temperature": 0.1,
|
2755 |
-
"temperatureEnabled": true,
|
2756 |
-
"topPEnabled": true,
|
2757 |
-
"top_p": 0.3
|
2758 |
-
},
|
2759 |
-
"label": "Categorize",
|
2760 |
-
"name": "问题分类_0"
|
2761 |
-
},
|
2762 |
-
"dragging": false,
|
2763 |
-
"height": 136,
|
2764 |
-
"id": "Categorize:TameDodosLove",
|
2765 |
-
"position": {
|
2766 |
-
"x": 621.0820384684355,
|
2767 |
-
"y": 220.11059722579682
|
2768 |
-
},
|
2769 |
-
"positionAbsolute": {
|
2770 |
-
"x": 621.0820384684355,
|
2771 |
-
"y": 220.11059722579682
|
2772 |
-
},
|
2773 |
-
"selected": false,
|
2774 |
-
"sourcePosition": "right",
|
2775 |
-
"targetPosition": "left",
|
2776 |
-
"type": "categorizeNode",
|
2777 |
-
"width": 200
|
2778 |
},
|
2779 |
-
|
2780 |
-
|
2781 |
-
|
2782 |
-
|
2783 |
-
|
2784 |
-
|
2785 |
-
|
2786 |
-
|
2787 |
-
},
|
2788 |
-
"
|
2789 |
-
"
|
2790 |
-
"id": "Baidu:TrueBananasPay",
|
2791 |
-
"position": {
|
2792 |
-
"x": 1090.4399996938341,
|
2793 |
-
"y": -10.899556912399987
|
2794 |
-
},
|
2795 |
-
"positionAbsolute": {
|
2796 |
-
"x": 1090.4399996938341,
|
2797 |
-
"y": -10.899556912399987
|
2798 |
-
},
|
2799 |
-
"selected": false,
|
2800 |
-
"sourcePosition": "right",
|
2801 |
-
"targetPosition": "left",
|
2802 |
-
"type": "ragNode",
|
2803 |
-
"width": 200
|
2804 |
},
|
2805 |
-
|
2806 |
-
|
2807 |
-
|
2808 |
-
|
2809 |
-
|
2810 |
-
"frequency_penalty": 0.7,
|
2811 |
-
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
2812 |
-
"maxTokensEnabled": true,
|
2813 |
-
"max_tokens": 256,
|
2814 |
-
"message_history_window_size": 12,
|
2815 |
-
"parameters": [
|
2816 |
-
{
|
2817 |
-
"component_id": "Retrieval:KindMammalsBeg",
|
2818 |
-
"id": "1cc92398-2306-42ee-b401-6bfb49e1084e",
|
2819 |
-
"key": "input"
|
2820 |
-
}
|
2821 |
-
],
|
2822 |
-
"presencePenaltyEnabled": true,
|
2823 |
-
"presence_penalty": 0.4,
|
2824 |
-
"prompt": "Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {input}\n The above is the content you need to summarize.",
|
2825 |
-
"temperature": 0.1,
|
2826 |
-
"temperatureEnabled": true,
|
2827 |
-
"topPEnabled": true,
|
2828 |
-
"top_p": 0.3
|
2829 |
-
},
|
2830 |
-
"label": "Generate",
|
2831 |
-
"name": "生成回答_0"
|
2832 |
-
},
|
2833 |
-
"dragging": false,
|
2834 |
-
"height": 147,
|
2835 |
-
"id": "Generate:RealCatsJudge",
|
2836 |
-
"position": {
|
2837 |
-
"x": 816.022744651524,
|
2838 |
-
"y": 585.3018986039125
|
2839 |
-
},
|
2840 |
-
"positionAbsolute": {
|
2841 |
-
"x": 816.022744651524,
|
2842 |
-
"y": 585.3018986039125
|
2843 |
-
},
|
2844 |
-
"selected": true,
|
2845 |
-
"sourcePosition": "right",
|
2846 |
-
"targetPosition": "left",
|
2847 |
-
"type": "generateNode",
|
2848 |
-
"width": 200
|
2849 |
},
|
2850 |
-
|
2851 |
-
|
2852 |
-
|
2853 |
-
|
2854 |
-
"name": "对话_1"
|
2855 |
-
},
|
2856 |
-
"height": 44,
|
2857 |
-
"id": "Answer:SilentNeedlesDouble",
|
2858 |
-
"position": {
|
2859 |
-
"x": 402.5121557783059,
|
2860 |
-
"y": 676.449068518027
|
2861 |
-
},
|
2862 |
-
"sourcePosition": "right",
|
2863 |
-
"targetPosition": "left",
|
2864 |
-
"type": "logicNode",
|
2865 |
-
"width": 200
|
2866 |
-
},
|
2867 |
-
{
|
2868 |
-
"data": {
|
2869 |
-
"form": {
|
2870 |
-
"kb_ids": [
|
2871 |
-
"0f8fe876ab1a11efa22c0242ac120006"
|
2872 |
-
],
|
2873 |
-
"keywords_similarity_weight": 0.3,
|
2874 |
-
"query": [],
|
2875 |
-
"similarity_threshold": 0.2,
|
2876 |
-
"top_n": 8
|
2877 |
-
},
|
2878 |
-
"label": "Retrieval",
|
2879 |
-
"name": "知识检索_0"
|
2880 |
-
},
|
2881 |
-
"dragging": false,
|
2882 |
-
"height": 106,
|
2883 |
-
"id": "Retrieval:KindMammalsBeg",
|
2884 |
-
"position": {
|
2885 |
-
"x": 975.4304422274787,
|
2886 |
-
"y": 341.7370543002002
|
2887 |
-
},
|
2888 |
-
"positionAbsolute": {
|
2889 |
-
"x": 975.4304422274787,
|
2890 |
-
"y": 341.7370543002002
|
2891 |
-
},
|
2892 |
-
"selected": false,
|
2893 |
-
"sourcePosition": "right",
|
2894 |
-
"targetPosition": "left",
|
2895 |
-
"type": "retrievalNode",
|
2896 |
-
"width": 200
|
2897 |
-
}
|
2898 |
-
]
|
2899 |
-
},
|
2900 |
-
"history": [
|
2901 |
-
[
|
2902 |
-
"assistant",
|
2903 |
-
"Hi! I'm your smart assistant. What can I do for you?"
|
2904 |
-
]
|
2905 |
-
],
|
2906 |
-
"messages": [
|
2907 |
-
{
|
2908 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?",
|
2909 |
-
"id": "472be0d2b15f11ef92df0242ac120005",
|
2910 |
-
"role": "assistant"
|
2911 |
}
|
2912 |
-
]
|
2913 |
-
"path": [
|
2914 |
-
[
|
2915 |
-
"begin"
|
2916 |
-
],
|
2917 |
-
[
|
2918 |
-
"Answer:ThickBeesTap"
|
2919 |
-
]
|
2920 |
-
],
|
2921 |
-
"reference": []
|
2922 |
},
|
2923 |
-
"
|
2924 |
-
"
|
2925 |
-
"
|
2926 |
-
|
2927 |
-
|
2928 |
-
|
2929 |
-
|
2930 |
-
|
2931 |
-
|
2932 |
-
|
2933 |
-
|
2934 |
-
|
2935 |
-
|
2936 |
-
|
2937 |
-
|
2938 |
-
}
|
2939 |
-
]
|
2940 |
}
|
2941 |
```
|
2942 |
|
@@ -2998,284 +2605,23 @@ Success:
|
|
2998 |
{
|
2999 |
"avatar": null,
|
3000 |
"canvas_type": null,
|
3001 |
-
"create_date": "
|
3002 |
-
"create_time":
|
3003 |
"description": null,
|
3004 |
"dsl": {
|
3005 |
"answer": [],
|
3006 |
"components": {
|
3007 |
-
"Answer:SilentNeedlesDouble": {
|
3008 |
-
"downstream": [
|
3009 |
-
"Categorize:TameDodosLove"
|
3010 |
-
],
|
3011 |
-
"obj": {
|
3012 |
-
"component_name": "Answer",
|
3013 |
-
"inputs": [],
|
3014 |
-
"output": null,
|
3015 |
-
"params": {
|
3016 |
-
"inputs": [],
|
3017 |
-
"message_history_window_size": 22,
|
3018 |
-
"output": null,
|
3019 |
-
"output_var_name": "output",
|
3020 |
-
"post_answers": [],
|
3021 |
-
"query": []
|
3022 |
-
}
|
3023 |
-
},
|
3024 |
-
"upstream": [
|
3025 |
-
"Generate:RealCatsJudge"
|
3026 |
-
]
|
3027 |
-
},
|
3028 |
-
"Answer:ThickBeesTap": {
|
3029 |
-
"downstream": [
|
3030 |
-
"Categorize:TameDodosLove"
|
3031 |
-
],
|
3032 |
-
"obj": {
|
3033 |
-
"component_name": "Answer",
|
3034 |
-
"inputs": [],
|
3035 |
-
"output": {
|
3036 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?"
|
3037 |
-
},
|
3038 |
-
"params": {
|
3039 |
-
"inputs": [],
|
3040 |
-
"message_history_window_size": 22,
|
3041 |
-
"output": {
|
3042 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?"
|
3043 |
-
},
|
3044 |
-
"output_var_name": "output",
|
3045 |
-
"post_answers": [],
|
3046 |
-
"query": []
|
3047 |
-
}
|
3048 |
-
},
|
3049 |
-
"upstream": [
|
3050 |
-
"begin"
|
3051 |
-
]
|
3052 |
-
},
|
3053 |
-
"Baidu:TrueBananasPay": {
|
3054 |
-
"downstream": [],
|
3055 |
-
"obj": {
|
3056 |
-
"component_name": "Baidu",
|
3057 |
-
"inputs": [],
|
3058 |
-
"output": null,
|
3059 |
-
"params": {
|
3060 |
-
"inputs": [],
|
3061 |
-
"message_history_window_size": 22,
|
3062 |
-
"output": null,
|
3063 |
-
"output_var_name": "output",
|
3064 |
-
"query": [],
|
3065 |
-
"top_n": 10
|
3066 |
-
}
|
3067 |
-
},
|
3068 |
-
"upstream": []
|
3069 |
-
},
|
3070 |
-
"Categorize:TameDodosLove": {
|
3071 |
-
"downstream": [
|
3072 |
-
"Retrieval:KindMammalsBeg"
|
3073 |
-
],
|
3074 |
-
"obj": {
|
3075 |
-
"component_name": "Categorize",
|
3076 |
-
"inputs": [],
|
3077 |
-
"output": null,
|
3078 |
-
"params": {
|
3079 |
-
"category_description": {
|
3080 |
-
"百度搜索": {
|
3081 |
-
"description": "接收用户的问题",
|
3082 |
-
"examples": "who are you\n今天天气如何",
|
3083 |
-
"index": 0,
|
3084 |
-
"to": "Retrieval:KindMammalsBeg"
|
3085 |
-
}
|
3086 |
-
},
|
3087 |
-
"cite": true,
|
3088 |
-
"frequency_penalty": 0.7,
|
3089 |
-
"inputs": [],
|
3090 |
-
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
3091 |
-
"max_tokens": 256,
|
3092 |
-
"message_history_window_size": 1,
|
3093 |
-
"output": null,
|
3094 |
-
"output_var_name": "output",
|
3095 |
-
"parameters": [],
|
3096 |
-
"presence_penalty": 0.4,
|
3097 |
-
"prompt": "",
|
3098 |
-
"query": [],
|
3099 |
-
"temperature": 0.1,
|
3100 |
-
"top_p": 0.3
|
3101 |
-
}
|
3102 |
-
},
|
3103 |
-
"upstream": [
|
3104 |
-
"Answer:ThickBeesTap",
|
3105 |
-
"Answer:SilentNeedlesDouble"
|
3106 |
-
]
|
3107 |
-
},
|
3108 |
-
"Generate:RealCatsJudge": {
|
3109 |
-
"downstream": [
|
3110 |
-
"Answer:SilentNeedlesDouble"
|
3111 |
-
],
|
3112 |
-
"obj": {
|
3113 |
-
"component_name": "Generate",
|
3114 |
-
"inputs": [],
|
3115 |
-
"output": null,
|
3116 |
-
"params": {
|
3117 |
-
"cite": true,
|
3118 |
-
"frequency_penalty": 0.7,
|
3119 |
-
"inputs": [],
|
3120 |
-
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
3121 |
-
"max_tokens": 256,
|
3122 |
-
"message_history_window_size": 12,
|
3123 |
-
"output": null,
|
3124 |
-
"output_var_name": "output",
|
3125 |
-
"parameters": [
|
3126 |
-
{
|
3127 |
-
"component_id": "Retrieval:KindMammalsBeg",
|
3128 |
-
"id": "1cc92398-2306-42ee-b401-6bfb49e1084e",
|
3129 |
-
"key": "input"
|
3130 |
-
}
|
3131 |
-
],
|
3132 |
-
"presence_penalty": 0.4,
|
3133 |
-
"prompt": "Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {input}\n The above is the content you need to summarize.",
|
3134 |
-
"query": [],
|
3135 |
-
"temperature": 0.1,
|
3136 |
-
"top_p": 0.3
|
3137 |
-
}
|
3138 |
-
},
|
3139 |
-
"upstream": [
|
3140 |
-
"Retrieval:KindMammalsBeg"
|
3141 |
-
]
|
3142 |
-
},
|
3143 |
-
"Retrieval:KindMammalsBeg": {
|
3144 |
-
"downstream": [
|
3145 |
-
"Generate:RealCatsJudge"
|
3146 |
-
],
|
3147 |
-
"obj": {
|
3148 |
-
"component_name": "Retrieval",
|
3149 |
-
"inputs": [],
|
3150 |
-
"output": null,
|
3151 |
-
"params": {
|
3152 |
-
"empty_response": "",
|
3153 |
-
"inputs": [],
|
3154 |
-
"kb_ids": [
|
3155 |
-
"0f8fe876ab1a11efa22c0242ac120006"
|
3156 |
-
],
|
3157 |
-
"keywords_similarity_weight": 0.3,
|
3158 |
-
"message_history_window_size": 22,
|
3159 |
-
"output": null,
|
3160 |
-
"output_var_name": "output",
|
3161 |
-
"query": [],
|
3162 |
-
"rerank_id": "",
|
3163 |
-
"similarity_threshold": 0.2,
|
3164 |
-
"top_k": 1024,
|
3165 |
-
"top_n": 8
|
3166 |
-
}
|
3167 |
-
},
|
3168 |
-
"upstream": [
|
3169 |
-
"Categorize:TameDodosLove"
|
3170 |
-
]
|
3171 |
-
},
|
3172 |
"begin": {
|
3173 |
-
"downstream": [
|
3174 |
-
"Answer:ThickBeesTap"
|
3175 |
-
],
|
3176 |
"obj": {
|
3177 |
"component_name": "Begin",
|
3178 |
-
"
|
3179 |
-
"output": {
|
3180 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?"
|
3181 |
-
},
|
3182 |
-
"params": {
|
3183 |
-
"inputs": [],
|
3184 |
-
"message_history_window_size": 22,
|
3185 |
-
"output": {
|
3186 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?"
|
3187 |
-
},
|
3188 |
-
"output_var_name": "output",
|
3189 |
-
"prologue": "Hi! I'm your smart assistant. What can I do for you?",
|
3190 |
-
"query": []
|
3191 |
-
}
|
3192 |
},
|
3193 |
"upstream": []
|
3194 |
}
|
3195 |
},
|
3196 |
-
"embed_id": "",
|
3197 |
"graph": {
|
3198 |
-
"edges": [
|
3199 |
-
{
|
3200 |
-
"id": "reactflow__edge-begin-Answer:ThickBeesTapc",
|
3201 |
-
"markerEnd": "logo",
|
3202 |
-
"source": "begin",
|
3203 |
-
"sourceHandle": null,
|
3204 |
-
"style": {
|
3205 |
-
"stroke": "rgb(202 197 245)",
|
3206 |
-
"strokeWidth": 2
|
3207 |
-
},
|
3208 |
-
"target": "Answer:ThickBeesTap",
|
3209 |
-
"targetHandle": "c",
|
3210 |
-
"type": "buttonEdge"
|
3211 |
-
},
|
3212 |
-
{
|
3213 |
-
"id": "reactflow__edge-Answer:ThickBeesTapb-Categorize:TameDodosLovea",
|
3214 |
-
"markerEnd": "logo",
|
3215 |
-
"source": "Answer:ThickBeesTap",
|
3216 |
-
"sourceHandle": "b",
|
3217 |
-
"style": {
|
3218 |
-
"stroke": "rgb(202 197 245)",
|
3219 |
-
"strokeWidth": 2
|
3220 |
-
},
|
3221 |
-
"target": "Categorize:TameDodosLove",
|
3222 |
-
"targetHandle": "a",
|
3223 |
-
"type": "buttonEdge"
|
3224 |
-
},
|
3225 |
-
{
|
3226 |
-
"id": "reactflow__edge-Generate:RealCatsJudgec-Answer:SilentNeedlesDoubleb",
|
3227 |
-
"markerEnd": "logo",
|
3228 |
-
"selected": false,
|
3229 |
-
"source": "Generate:RealCatsJudge",
|
3230 |
-
"sourceHandle": "c",
|
3231 |
-
"style": {
|
3232 |
-
"stroke": "rgb(202 197 245)",
|
3233 |
-
"strokeWidth": 2
|
3234 |
-
},
|
3235 |
-
"target": "Answer:SilentNeedlesDouble",
|
3236 |
-
"targetHandle": "b",
|
3237 |
-
"type": "buttonEdge"
|
3238 |
-
},
|
3239 |
-
{
|
3240 |
-
"id": "reactflow__edge-Answer:SilentNeedlesDoublec-Categorize:TameDodosLovea",
|
3241 |
-
"markerEnd": "logo",
|
3242 |
-
"source": "Answer:SilentNeedlesDouble",
|
3243 |
-
"sourceHandle": "c",
|
3244 |
-
"style": {
|
3245 |
-
"stroke": "rgb(202 197 245)",
|
3246 |
-
"strokeWidth": 2
|
3247 |
-
},
|
3248 |
-
"target": "Categorize:TameDodosLove",
|
3249 |
-
"targetHandle": "a",
|
3250 |
-
"type": "buttonEdge"
|
3251 |
-
},
|
3252 |
-
{
|
3253 |
-
"id": "reactflow__edge-Categorize:TameDodosLove百度搜索-Retrieval:KindMammalsBegc",
|
3254 |
-
"markerEnd": "logo",
|
3255 |
-
"source": "Categorize:TameDodosLove",
|
3256 |
-
"sourceHandle": "百度搜索",
|
3257 |
-
"style": {
|
3258 |
-
"stroke": "rgb(202 197 245)",
|
3259 |
-
"strokeWidth": 2
|
3260 |
-
},
|
3261 |
-
"target": "Retrieval:KindMammalsBeg",
|
3262 |
-
"targetHandle": "c",
|
3263 |
-
"type": "buttonEdge"
|
3264 |
-
},
|
3265 |
-
{
|
3266 |
-
"id": "reactflow__edge-Retrieval:KindMammalsBegb-Generate:RealCatsJudgeb",
|
3267 |
-
"markerEnd": "logo",
|
3268 |
-
"source": "Retrieval:KindMammalsBeg",
|
3269 |
-
"sourceHandle": "b",
|
3270 |
-
"style": {
|
3271 |
-
"stroke": "rgb(202 197 245)",
|
3272 |
-
"strokeWidth": 2
|
3273 |
-
},
|
3274 |
-
"target": "Generate:RealCatsJudge",
|
3275 |
-
"targetHandle": "b",
|
3276 |
-
"type": "buttonEdge"
|
3277 |
-
}
|
3278 |
-
],
|
3279 |
"nodes": [
|
3280 |
{
|
3281 |
"data": {
|
@@ -3292,223 +2638,18 @@ Success:
|
|
3292 |
"targetPosition": "right",
|
3293 |
"type": "beginNode",
|
3294 |
"width": 200
|
3295 |
-
},
|
3296 |
-
{
|
3297 |
-
"data": {
|
3298 |
-
"form": {},
|
3299 |
-
"label": "Answer",
|
3300 |
-
"name": "对话_0"
|
3301 |
-
},
|
3302 |
-
"dragging": false,
|
3303 |
-
"height": 44,
|
3304 |
-
"id": "Answer:ThickBeesTap",
|
3305 |
-
"position": {
|
3306 |
-
"x": 297.6576850283112,
|
3307 |
-
"y": 203.86553837720618
|
3308 |
-
},
|
3309 |
-
"positionAbsolute": {
|
3310 |
-
"x": 297.6576850283112,
|
3311 |
-
"y": 203.86553837720618
|
3312 |
-
},
|
3313 |
-
"selected": false,
|
3314 |
-
"sourcePosition": "right",
|
3315 |
-
"targetPosition": "left",
|
3316 |
-
"type": "logicNode",
|
3317 |
-
"width": 200
|
3318 |
-
},
|
3319 |
-
{
|
3320 |
-
"data": {
|
3321 |
-
"form": {
|
3322 |
-
"category_description": {
|
3323 |
-
"百度搜索": {
|
3324 |
-
"description": "接收用户的问题",
|
3325 |
-
"examples": "who are you\n今天天气如何",
|
3326 |
-
"index": 0,
|
3327 |
-
"to": "Retrieval:KindMammalsBeg"
|
3328 |
-
}
|
3329 |
-
},
|
3330 |
-
"frequencyPenaltyEnabled": true,
|
3331 |
-
"frequency_penalty": 0.7,
|
3332 |
-
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
3333 |
-
"maxTokensEnabled": true,
|
3334 |
-
"max_tokens": 256,
|
3335 |
-
"message_history_window_size": 1,
|
3336 |
-
"presencePenaltyEnabled": true,
|
3337 |
-
"presence_penalty": 0.4,
|
3338 |
-
"query": [],
|
3339 |
-
"temperature": 0.1,
|
3340 |
-
"temperatureEnabled": true,
|
3341 |
-
"topPEnabled": true,
|
3342 |
-
"top_p": 0.3
|
3343 |
-
},
|
3344 |
-
"label": "Categorize",
|
3345 |
-
"name": "问题分类_0"
|
3346 |
-
},
|
3347 |
-
"dragging": false,
|
3348 |
-
"height": 136,
|
3349 |
-
"id": "Categorize:TameDodosLove",
|
3350 |
-
"position": {
|
3351 |
-
"x": 621.0820384684355,
|
3352 |
-
"y": 220.11059722579682
|
3353 |
-
},
|
3354 |
-
"positionAbsolute": {
|
3355 |
-
"x": 621.0820384684355,
|
3356 |
-
"y": 220.11059722579682
|
3357 |
-
},
|
3358 |
-
"selected": false,
|
3359 |
-
"sourcePosition": "right",
|
3360 |
-
"targetPosition": "left",
|
3361 |
-
"type": "categorizeNode",
|
3362 |
-
"width": 200
|
3363 |
-
},
|
3364 |
-
{
|
3365 |
-
"data": {
|
3366 |
-
"form": {
|
3367 |
-
"query": [],
|
3368 |
-
"top_n": 10
|
3369 |
-
},
|
3370 |
-
"label": "Baidu",
|
3371 |
-
"name": "百度_0"
|
3372 |
-
},
|
3373 |
-
"dragging": false,
|
3374 |
-
"height": 64,
|
3375 |
-
"id": "Baidu:TrueBananasPay",
|
3376 |
-
"position": {
|
3377 |
-
"x": 1090.4399996938341,
|
3378 |
-
"y": -10.899556912399987
|
3379 |
-
},
|
3380 |
-
"positionAbsolute": {
|
3381 |
-
"x": 1090.4399996938341,
|
3382 |
-
"y": -10.899556912399987
|
3383 |
-
},
|
3384 |
-
"selected": false,
|
3385 |
-
"sourcePosition": "right",
|
3386 |
-
"targetPosition": "left",
|
3387 |
-
"type": "ragNode",
|
3388 |
-
"width": 200
|
3389 |
-
},
|
3390 |
-
{
|
3391 |
-
"data": {
|
3392 |
-
"form": {
|
3393 |
-
"cite": true,
|
3394 |
-
"frequencyPenaltyEnabled": true,
|
3395 |
-
"frequency_penalty": 0.7,
|
3396 |
-
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
3397 |
-
"maxTokensEnabled": true,
|
3398 |
-
"max_tokens": 256,
|
3399 |
-
"message_history_window_size": 12,
|
3400 |
-
"parameters": [
|
3401 |
-
{
|
3402 |
-
"component_id": "Retrieval:KindMammalsBeg",
|
3403 |
-
"id": "1cc92398-2306-42ee-b401-6bfb49e1084e",
|
3404 |
-
"key": "input"
|
3405 |
-
}
|
3406 |
-
],
|
3407 |
-
"presencePenaltyEnabled": true,
|
3408 |
-
"presence_penalty": 0.4,
|
3409 |
-
"prompt": "Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:\n {input}\n The above is the content you need to summarize.",
|
3410 |
-
"temperature": 0.1,
|
3411 |
-
"temperatureEnabled": true,
|
3412 |
-
"topPEnabled": true,
|
3413 |
-
"top_p": 0.3
|
3414 |
-
},
|
3415 |
-
"label": "Generate",
|
3416 |
-
"name": "生成回答_0"
|
3417 |
-
},
|
3418 |
-
"dragging": false,
|
3419 |
-
"height": 147,
|
3420 |
-
"id": "Generate:RealCatsJudge",
|
3421 |
-
"position": {
|
3422 |
-
"x": 816.022744651524,
|
3423 |
-
"y": 585.3018986039125
|
3424 |
-
},
|
3425 |
-
"positionAbsolute": {
|
3426 |
-
"x": 816.022744651524,
|
3427 |
-
"y": 585.3018986039125
|
3428 |
-
},
|
3429 |
-
"selected": true,
|
3430 |
-
"sourcePosition": "right",
|
3431 |
-
"targetPosition": "left",
|
3432 |
-
"type": "generateNode",
|
3433 |
-
"width": 200
|
3434 |
-
},
|
3435 |
-
{
|
3436 |
-
"data": {
|
3437 |
-
"form": {},
|
3438 |
-
"label": "Answer",
|
3439 |
-
"name": "对话_1"
|
3440 |
-
},
|
3441 |
-
"height": 44,
|
3442 |
-
"id": "Answer:SilentNeedlesDouble",
|
3443 |
-
"position": {
|
3444 |
-
"x": 402.5121557783059,
|
3445 |
-
"y": 676.449068518027
|
3446 |
-
},
|
3447 |
-
"sourcePosition": "right",
|
3448 |
-
"targetPosition": "left",
|
3449 |
-
"type": "logicNode",
|
3450 |
-
"width": 200
|
3451 |
-
},
|
3452 |
-
{
|
3453 |
-
"data": {
|
3454 |
-
"form": {
|
3455 |
-
"kb_ids": [
|
3456 |
-
"0f8fe876ab1a11efa22c0242ac120006"
|
3457 |
-
],
|
3458 |
-
"keywords_similarity_weight": 0.3,
|
3459 |
-
"query": [],
|
3460 |
-
"similarity_threshold": 0.2,
|
3461 |
-
"top_n": 8
|
3462 |
-
},
|
3463 |
-
"label": "Retrieval",
|
3464 |
-
"name": "知识检索_0"
|
3465 |
-
},
|
3466 |
-
"dragging": false,
|
3467 |
-
"height": 106,
|
3468 |
-
"id": "Retrieval:KindMammalsBeg",
|
3469 |
-
"position": {
|
3470 |
-
"x": 975.4304422274787,
|
3471 |
-
"y": 341.7370543002002
|
3472 |
-
},
|
3473 |
-
"positionAbsolute": {
|
3474 |
-
"x": 975.4304422274787,
|
3475 |
-
"y": 341.7370543002002
|
3476 |
-
},
|
3477 |
-
"selected": false,
|
3478 |
-
"sourcePosition": "right",
|
3479 |
-
"targetPosition": "left",
|
3480 |
-
"type": "retrievalNode",
|
3481 |
-
"width": 200
|
3482 |
}
|
3483 |
]
|
3484 |
},
|
3485 |
-
"history": [
|
3486 |
-
|
3487 |
-
|
3488 |
-
"Hi! I'm your smart assistant. What can I do for you?"
|
3489 |
-
]
|
3490 |
-
],
|
3491 |
-
"messages": [
|
3492 |
-
{
|
3493 |
-
"content": "Hi! I'm your smart assistant. What can I do for you?",
|
3494 |
-
"id": "472be0d2b15f11ef92df0242ac120005",
|
3495 |
-
"role": "assistant"
|
3496 |
-
}
|
3497 |
-
],
|
3498 |
-
"path": [
|
3499 |
-
[
|
3500 |
-
"begin"
|
3501 |
-
],
|
3502 |
-
[
|
3503 |
-
"Answer:ThickBeesTap"
|
3504 |
-
]
|
3505 |
-
],
|
3506 |
"reference": []
|
3507 |
},
|
3508 |
-
"id": "
|
3509 |
-
"title": "
|
3510 |
-
"update_date": "
|
3511 |
-
"update_time":
|
3512 |
"user_id": "69736c5e723611efb51b0242ac120007"
|
3513 |
}
|
3514 |
]
|
|
|
2411 |
```json
|
2412 |
{
|
2413 |
"code": 0,
|
2414 |
+
"data": {
|
2415 |
+
"agent_id": "e9e2b9c2b2f911ef801d0242ac120006",
|
2416 |
+
"dsl": {
|
2417 |
+
"answer": [],
|
2418 |
+
"components": {
|
2419 |
+
"Answer:OrangeTermsBurn": {
|
2420 |
+
"downstream": [],
|
2421 |
+
"obj": {
|
2422 |
+
"component_name": "Answer",
|
2423 |
+
"params": {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2424 |
},
|
2425 |
+
"upstream": []
|
2426 |
+
},
|
2427 |
+
"Generate:SocialYearsRemain": {
|
2428 |
+
"downstream": [],
|
2429 |
+
"obj": {
|
2430 |
+
"component_name": "Generate",
|
2431 |
+
"params": {
|
2432 |
+
"cite": true,
|
2433 |
+
"frequency_penalty": 0.7,
|
2434 |
+
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
2435 |
+
"max_tokens": 256,
|
2436 |
+
"message_history_window_size": 12,
|
2437 |
+
"parameters": [],
|
2438 |
+
"presence_penalty": 0.4,
|
2439 |
+
"prompt": "Please summarize the following paragraph. Pay attention to the numbers and do not make things up. The paragraph is as follows:\n{input}\nThis is what you need to summarize.",
|
2440 |
+
"temperature": 0.1,
|
2441 |
+
"top_p": 0.3
|
2442 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2443 |
},
|
2444 |
+
"upstream": []
|
2445 |
+
},
|
2446 |
+
"begin": {
|
2447 |
+
"downstream": [],
|
2448 |
+
"obj": {
|
2449 |
+
"component_name": "Begin",
|
2450 |
+
"params": {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2451 |
},
|
2452 |
+
"upstream": []
|
2453 |
+
}
|
2454 |
+
},
|
2455 |
+
"graph": {
|
2456 |
+
"edges": [],
|
2457 |
+
"nodes": [
|
2458 |
+
{
|
2459 |
+
"data": {
|
2460 |
+
"label": "Begin",
|
2461 |
+
"name": "begin"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2462 |
},
|
2463 |
+
"height": 44,
|
2464 |
+
"id": "begin",
|
2465 |
+
"position": {
|
2466 |
+
"x": 50,
|
2467 |
+
"y": 200
|
2468 |
+
},
|
2469 |
+
"sourcePosition": "left",
|
2470 |
+
"targetPosition": "right",
|
2471 |
+
"type": "beginNode",
|
2472 |
+
"width": 200
|
2473 |
},
|
2474 |
+
{
|
2475 |
+
"data": {
|
2476 |
+
"form": {
|
|
|
|
|
|
|
|
|
|
|
|
|
2477 |
"cite": true,
|
2478 |
+
"frequencyPenaltyEnabled": true,
|
2479 |
"frequency_penalty": 0.7,
|
|
|
2480 |
"llm_id": "gpt-4o___OpenAI-API@OpenAI-API-Compatible",
|
2481 |
+
"maxTokensEnabled": true,
|
2482 |
"max_tokens": 256,
|
2483 |
"message_history_window_size": 12,
|
2484 |
+
"parameters": [],
|
2485 |
+
"presencePenaltyEnabled": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2486 |
"presence_penalty": 0.4,
|
2487 |
+
"prompt": "Please summarize the following paragraph. Pay attention to the numbers and do not make things up. The paragraph is as follows:\n{input}\nThis is what you need to summarize.",
|
|
|
2488 |
"temperature": 0.1,
|
2489 |
+
"temperatureEnabled": true,
|
2490 |
+
"topPEnabled": true,
|
2491 |
"top_p": 0.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2492 |
},
|
2493 |
+
"label": "Generate",
|
2494 |
+
"name": "Generate Answer_0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2495 |
},
|
2496 |
+
"dragging": false,
|
2497 |
+
"height": 105,
|
2498 |
+
"id": "Generate:SocialYearsRemain",
|
2499 |
+
"position": {
|
2500 |
+
"x": 561.3457829707513,
|
2501 |
+
"y": 178.7211182312641
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2502 |
},
|
2503 |
+
"positionAbsolute": {
|
2504 |
+
"x": 561.3457829707513,
|
2505 |
+
"y": 178.7211182312641
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2506 |
},
|
2507 |
+
"selected": true,
|
2508 |
+
"sourcePosition": "right",
|
2509 |
+
"targetPosition": "left",
|
2510 |
+
"type": "generateNode",
|
2511 |
+
"width": 200
|
2512 |
+
},
|
2513 |
+
{
|
2514 |
+
"data": {
|
2515 |
+
"form": {},
|
2516 |
+
"label": "Answer",
|
2517 |
+
"name": "Dialogue_0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2518 |
},
|
2519 |
+
"height": 44,
|
2520 |
+
"id": "Answer:OrangeTermsBurn",
|
2521 |
+
"position": {
|
2522 |
+
"x": 317.2368194777658,
|
2523 |
+
"y": 218.30635555445093
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2524 |
},
|
2525 |
+
"sourcePosition": "right",
|
2526 |
+
"targetPosition": "left",
|
2527 |
+
"type": "logicNode",
|
2528 |
+
"width": 200
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2529 |
}
|
2530 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2531 |
},
|
2532 |
+
"history": [],
|
2533 |
+
"messages": [],
|
2534 |
+
"path": [],
|
2535 |
+
"reference": []
|
2536 |
+
},
|
2537 |
+
"id": "792dde22b2fa11ef97550242ac120006",
|
2538 |
+
"message": [
|
2539 |
+
{
|
2540 |
+
"content": "Hi! I'm your smart assistant. What can I do for you?",
|
2541 |
+
"role": "assistant"
|
2542 |
+
}
|
2543 |
+
],
|
2544 |
+
"source": "agent",
|
2545 |
+
"user_id": ""
|
2546 |
+
}
|
|
|
|
|
2547 |
}
|
2548 |
```
|
2549 |
|
|
|
2605 |
{
|
2606 |
"avatar": null,
|
2607 |
"canvas_type": null,
|
2608 |
+
"create_date": "Thu, 05 Dec 2024 19:10:36 GMT",
|
2609 |
+
"create_time": 1733397036424,
|
2610 |
"description": null,
|
2611 |
"dsl": {
|
2612 |
"answer": [],
|
2613 |
"components": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2614 |
"begin": {
|
2615 |
+
"downstream": [],
|
|
|
|
|
2616 |
"obj": {
|
2617 |
"component_name": "Begin",
|
2618 |
+
"params": {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2619 |
},
|
2620 |
"upstream": []
|
2621 |
}
|
2622 |
},
|
|
|
2623 |
"graph": {
|
2624 |
+
"edges": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2625 |
"nodes": [
|
2626 |
{
|
2627 |
"data": {
|
|
|
2638 |
"targetPosition": "right",
|
2639 |
"type": "beginNode",
|
2640 |
"width": 200
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2641 |
}
|
2642 |
]
|
2643 |
},
|
2644 |
+
"history": [],
|
2645 |
+
"messages": [],
|
2646 |
+
"path": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2647 |
"reference": []
|
2648 |
},
|
2649 |
+
"id": "8d9ca0e2b2f911ef9ca20242ac120006",
|
2650 |
+
"title": "123465",
|
2651 |
+
"update_date": "Thu, 05 Dec 2024 19:10:56 GMT",
|
2652 |
+
"update_time": 1733397056801,
|
2653 |
"user_id": "69736c5e723611efb51b0242ac120007"
|
2654 |
}
|
2655 |
]
|
docs/references/python_api_reference.md
CHANGED
@@ -123,7 +123,7 @@ The parser configuration of the dataset. A `ParserConfig` object's attributes va
|
|
123 |
### Examples
|
124 |
|
125 |
```python
|
126 |
-
from
|
127 |
|
128 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
129 |
dataset = rag_object.create_dataset(name="kb_1")
|
@@ -265,7 +265,7 @@ A dictionary representing the attributes to update, with the following keys:
|
|
265 |
### Examples
|
266 |
|
267 |
```python
|
268 |
-
from
|
269 |
|
270 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
271 |
dataset = rag_object.list_datasets(name="kb_name")
|
@@ -374,7 +374,7 @@ A dictionary representing the attributes to update, with the following keys:
|
|
374 |
### Examples
|
375 |
|
376 |
```python
|
377 |
-
from
|
378 |
|
379 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
380 |
dataset = rag_object.list_datasets(id='id')
|
@@ -401,7 +401,7 @@ The downloaded document in bytes.
|
|
401 |
### Examples
|
402 |
|
403 |
```python
|
404 |
-
from
|
405 |
|
406 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
407 |
dataset = rag_object.list_datasets(id="id")
|
@@ -509,7 +509,7 @@ A `Document` object contains the following attributes:
|
|
509 |
### Examples
|
510 |
|
511 |
```python
|
512 |
-
from
|
513 |
|
514 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
515 |
dataset = rag_object.create_dataset(name="kb_1")
|
@@ -545,7 +545,7 @@ The IDs of the documents to delete. Defaults to `None`. If it is not specified,
|
|
545 |
### Examples
|
546 |
|
547 |
```python
|
548 |
-
from
|
549 |
|
550 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
551 |
dataset = rag_object.list_datasets(name="kb_1")
|
@@ -678,7 +678,7 @@ A `Chunk` object contains the following attributes:
|
|
678 |
### Examples
|
679 |
|
680 |
```python
|
681 |
-
from
|
682 |
|
683 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
684 |
dataset = rag_object.list_datasets(id="123")
|
@@ -724,7 +724,7 @@ The ID of the chunk to retrieve. Default: `None`
|
|
724 |
### Examples
|
725 |
|
726 |
```python
|
727 |
-
from
|
728 |
|
729 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
730 |
dataset = rag_object.list_datasets("123")
|
@@ -758,7 +758,7 @@ The IDs of the chunks to delete. Defaults to `None`. If it is not specified, all
|
|
758 |
### Examples
|
759 |
|
760 |
```python
|
761 |
-
from
|
762 |
|
763 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
764 |
dataset = rag_object.list_datasets(id="123")
|
@@ -799,7 +799,7 @@ A dictionary representing the attributes to update, with the following keys:
|
|
799 |
### Examples
|
800 |
|
801 |
```python
|
802 |
-
from
|
803 |
|
804 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
805 |
dataset = rag_object.list_datasets(id="123")
|
@@ -880,7 +880,7 @@ Specifies whether to enable highlighting of matched terms in the results:
|
|
880 |
### Examples
|
881 |
|
882 |
```python
|
883 |
-
from
|
884 |
|
885 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
886 |
dataset = rag_object.list_datasets(name="ragflow")
|
@@ -978,7 +978,7 @@ Instructions for the LLM to follow. A `Prompt` object contains the following at
|
|
978 |
### Examples
|
979 |
|
980 |
```python
|
981 |
-
from
|
982 |
|
983 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
984 |
datasets = rag_object.list_datasets(name="kb_1")
|
@@ -1036,7 +1036,7 @@ A dictionary representing the attributes to update, with the following keys:
|
|
1036 |
### Examples
|
1037 |
|
1038 |
```python
|
1039 |
-
from
|
1040 |
|
1041 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1042 |
datasets = rag_object.list_datasets(name="kb_1")
|
@@ -1069,7 +1069,7 @@ The IDs of the chat assistants to delete. Defaults to `None`. If it is empty or
|
|
1069 |
### Examples
|
1070 |
|
1071 |
```python
|
1072 |
-
from
|
1073 |
|
1074 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1075 |
rag_object.delete_chats(ids=["id_1","id_2"])
|
@@ -1129,7 +1129,7 @@ The name of the chat assistant to retrieve. Defaults to `None`.
|
|
1129 |
### Examples
|
1130 |
|
1131 |
```python
|
1132 |
-
from
|
1133 |
|
1134 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1135 |
for assistant in rag_object.list_chats():
|
@@ -1170,7 +1170,7 @@ The name of the chat session to create.
|
|
1170 |
### Examples
|
1171 |
|
1172 |
```python
|
1173 |
-
from
|
1174 |
|
1175 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1176 |
assistant = rag_object.list_chats(name="Miss R")
|
@@ -1204,7 +1204,7 @@ A dictionary representing the attributes to update, with only one key:
|
|
1204 |
### Examples
|
1205 |
|
1206 |
```python
|
1207 |
-
from
|
1208 |
|
1209 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1210 |
assistant = rag_object.list_chats(name="Miss R")
|
@@ -1267,7 +1267,7 @@ The name of the chat session to retrieve. Defaults to `None`.
|
|
1267 |
### Examples
|
1268 |
|
1269 |
```python
|
1270 |
-
from
|
1271 |
|
1272 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1273 |
assistant = rag_object.list_chats(name="Miss R")
|
@@ -1300,7 +1300,7 @@ The IDs of the sessions to delete. Defaults to `None`. If it is not specified, a
|
|
1300 |
### Examples
|
1301 |
|
1302 |
```python
|
1303 |
-
from
|
1304 |
|
1305 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1306 |
assistant = rag_object.list_chats(name="Miss R")
|
@@ -1378,7 +1378,7 @@ A list of `Chunk` objects representing references to the message, each containin
|
|
1378 |
### Examples
|
1379 |
|
1380 |
```python
|
1381 |
-
from
|
1382 |
|
1383 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1384 |
assistant = rag_object.list_chats(name="Miss R")
|
|
|
123 |
### Examples
|
124 |
|
125 |
```python
|
126 |
+
from ragflow_sdk import RAGFlow
|
127 |
|
128 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
129 |
dataset = rag_object.create_dataset(name="kb_1")
|
|
|
265 |
### Examples
|
266 |
|
267 |
```python
|
268 |
+
from ragflow_sdk import RAGFlow
|
269 |
|
270 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
271 |
dataset = rag_object.list_datasets(name="kb_name")
|
|
|
374 |
### Examples
|
375 |
|
376 |
```python
|
377 |
+
from ragflow_sdk import RAGFlow
|
378 |
|
379 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
380 |
dataset = rag_object.list_datasets(id='id')
|
|
|
401 |
### Examples
|
402 |
|
403 |
```python
|
404 |
+
from ragflow_sdk import RAGFlow
|
405 |
|
406 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
407 |
dataset = rag_object.list_datasets(id="id")
|
|
|
509 |
### Examples
|
510 |
|
511 |
```python
|
512 |
+
from ragflow_sdk import RAGFlow
|
513 |
|
514 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
515 |
dataset = rag_object.create_dataset(name="kb_1")
|
|
|
545 |
### Examples
|
546 |
|
547 |
```python
|
548 |
+
from ragflow_sdk import RAGFlow
|
549 |
|
550 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
551 |
dataset = rag_object.list_datasets(name="kb_1")
|
|
|
678 |
### Examples
|
679 |
|
680 |
```python
|
681 |
+
from ragflow_sdk import RAGFlow
|
682 |
|
683 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
684 |
dataset = rag_object.list_datasets(id="123")
|
|
|
724 |
### Examples
|
725 |
|
726 |
```python
|
727 |
+
from ragflow_sdk import RAGFlow
|
728 |
|
729 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
730 |
dataset = rag_object.list_datasets("123")
|
|
|
758 |
### Examples
|
759 |
|
760 |
```python
|
761 |
+
from ragflow_sdk import RAGFlow
|
762 |
|
763 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
764 |
dataset = rag_object.list_datasets(id="123")
|
|
|
799 |
### Examples
|
800 |
|
801 |
```python
|
802 |
+
from ragflow_sdk import RAGFlow
|
803 |
|
804 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
805 |
dataset = rag_object.list_datasets(id="123")
|
|
|
880 |
### Examples
|
881 |
|
882 |
```python
|
883 |
+
from ragflow_sdk import RAGFlow
|
884 |
|
885 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
886 |
dataset = rag_object.list_datasets(name="ragflow")
|
|
|
978 |
### Examples
|
979 |
|
980 |
```python
|
981 |
+
from ragflow_sdk import RAGFlow
|
982 |
|
983 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
984 |
datasets = rag_object.list_datasets(name="kb_1")
|
|
|
1036 |
### Examples
|
1037 |
|
1038 |
```python
|
1039 |
+
from ragflow_sdk import RAGFlow
|
1040 |
|
1041 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1042 |
datasets = rag_object.list_datasets(name="kb_1")
|
|
|
1069 |
### Examples
|
1070 |
|
1071 |
```python
|
1072 |
+
from ragflow_sdk import RAGFlow
|
1073 |
|
1074 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1075 |
rag_object.delete_chats(ids=["id_1","id_2"])
|
|
|
1129 |
### Examples
|
1130 |
|
1131 |
```python
|
1132 |
+
from ragflow_sdk import RAGFlow
|
1133 |
|
1134 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1135 |
for assistant in rag_object.list_chats():
|
|
|
1170 |
### Examples
|
1171 |
|
1172 |
```python
|
1173 |
+
from ragflow_sdk import RAGFlow
|
1174 |
|
1175 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1176 |
assistant = rag_object.list_chats(name="Miss R")
|
|
|
1204 |
### Examples
|
1205 |
|
1206 |
```python
|
1207 |
+
from ragflow_sdk import RAGFlow
|
1208 |
|
1209 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1210 |
assistant = rag_object.list_chats(name="Miss R")
|
|
|
1267 |
### Examples
|
1268 |
|
1269 |
```python
|
1270 |
+
from ragflow_sdk import RAGFlow
|
1271 |
|
1272 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1273 |
assistant = rag_object.list_chats(name="Miss R")
|
|
|
1300 |
### Examples
|
1301 |
|
1302 |
```python
|
1303 |
+
from ragflow_sdk import RAGFlow
|
1304 |
|
1305 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1306 |
assistant = rag_object.list_chats(name="Miss R")
|
|
|
1378 |
### Examples
|
1379 |
|
1380 |
```python
|
1381 |
+
from ragflow_sdk import RAGFlow
|
1382 |
|
1383 |
rag_object = RAGFlow(api_key="<YOUR_API_KEY>", base_url="http://<YOUR_BASE_URL>:9380")
|
1384 |
assistant = rag_object.list_chats(name="Miss R")
|