deepset-mcp 0.0.3__py3-none-any.whl → 0.0.4rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. deepset_mcp/__init__.py +10 -0
  2. deepset_mcp/api/__init__.py +4 -0
  3. deepset_mcp/api/client.py +4 -0
  4. deepset_mcp/api/custom_components/__init__.py +4 -0
  5. deepset_mcp/api/custom_components/models.py +4 -0
  6. deepset_mcp/api/custom_components/protocols.py +4 -0
  7. deepset_mcp/api/custom_components/resource.py +4 -0
  8. deepset_mcp/api/exceptions.py +4 -0
  9. deepset_mcp/api/haystack_service/__init__.py +4 -0
  10. deepset_mcp/api/haystack_service/protocols.py +4 -0
  11. deepset_mcp/api/haystack_service/resource.py +4 -0
  12. deepset_mcp/api/indexes/__init__.py +4 -0
  13. deepset_mcp/api/indexes/models.py +4 -0
  14. deepset_mcp/api/indexes/protocols.py +4 -0
  15. deepset_mcp/api/indexes/resource.py +4 -0
  16. deepset_mcp/api/integrations/__init__.py +4 -0
  17. deepset_mcp/api/integrations/models.py +4 -0
  18. deepset_mcp/api/integrations/protocols.py +4 -0
  19. deepset_mcp/api/integrations/resource.py +4 -0
  20. deepset_mcp/api/pipeline/__init__.py +4 -0
  21. deepset_mcp/api/pipeline/log_level.py +4 -0
  22. deepset_mcp/api/pipeline/models.py +4 -0
  23. deepset_mcp/api/pipeline/protocols.py +8 -0
  24. deepset_mcp/api/pipeline/resource.py +4 -0
  25. deepset_mcp/api/pipeline_template/__init__.py +4 -0
  26. deepset_mcp/api/pipeline_template/models.py +4 -0
  27. deepset_mcp/api/pipeline_template/protocols.py +4 -0
  28. deepset_mcp/api/pipeline_template/resource.py +4 -0
  29. deepset_mcp/api/protocols.py +4 -0
  30. deepset_mcp/api/secrets/__init__.py +4 -0
  31. deepset_mcp/api/secrets/models.py +4 -0
  32. deepset_mcp/api/secrets/protocols.py +4 -0
  33. deepset_mcp/api/secrets/resource.py +4 -0
  34. deepset_mcp/api/shared_models.py +4 -0
  35. deepset_mcp/api/transport.py +4 -0
  36. deepset_mcp/api/user/__init__.py +4 -0
  37. deepset_mcp/api/user/protocols.py +4 -0
  38. deepset_mcp/api/user/resource.py +4 -0
  39. deepset_mcp/api/workspace/__init__.py +4 -0
  40. deepset_mcp/api/workspace/models.py +4 -0
  41. deepset_mcp/api/workspace/protocols.py +4 -0
  42. deepset_mcp/api/workspace/resource.py +4 -0
  43. deepset_mcp/config.py +8 -0
  44. deepset_mcp/initialize_embedding_model.py +4 -0
  45. deepset_mcp/main.py +8 -0
  46. deepset_mcp/store.py +4 -0
  47. deepset_mcp/tool_factory.py +11 -4
  48. deepset_mcp/tools/__init__.py +4 -0
  49. deepset_mcp/tools/custom_components.py +4 -0
  50. deepset_mcp/tools/doc_search.py +4 -0
  51. deepset_mcp/tools/haystack_service.py +4 -0
  52. deepset_mcp/tools/haystack_service_models.py +4 -0
  53. deepset_mcp/tools/indexes.py +4 -0
  54. deepset_mcp/tools/model_protocol.py +4 -0
  55. deepset_mcp/tools/pipeline.py +4 -0
  56. deepset_mcp/tools/pipeline_template.py +4 -0
  57. deepset_mcp/tools/secrets.py +4 -0
  58. deepset_mcp/tools/tokonomics/__init__.py +4 -0
  59. deepset_mcp/tools/tokonomics/decorators.py +4 -0
  60. deepset_mcp/tools/tokonomics/explorer.py +4 -0
  61. deepset_mcp/tools/tokonomics/object_store.py +4 -0
  62. deepset_mcp/tools/workspace.py +4 -0
  63. deepset_mcp-0.0.4rc1.dist-info/METADATA +761 -0
  64. deepset_mcp-0.0.4rc1.dist-info/RECORD +70 -0
  65. {deepset_mcp-0.0.3.dist-info → deepset_mcp-0.0.4rc1.dist-info}/entry_points.txt +0 -1
  66. deepset_mcp-0.0.4rc1.dist-info/licenses/LICENSE +202 -0
  67. deepset_mcp/agents/__init__.py +0 -0
  68. deepset_mcp/agents/debugging/__init__.py +0 -0
  69. deepset_mcp/agents/debugging/debugging_agent.py +0 -37
  70. deepset_mcp/agents/debugging/system_prompt.md +0 -214
  71. deepset_mcp/agents/generalist/__init__.py +0 -0
  72. deepset_mcp/agents/generalist/generalist_agent.py +0 -38
  73. deepset_mcp/agents/generalist/system_prompt.md +0 -241
  74. deepset_mcp/benchmark/README.md +0 -425
  75. deepset_mcp/benchmark/__init__.py +0 -1
  76. deepset_mcp/benchmark/agent_configs/debugging_agent.yml +0 -10
  77. deepset_mcp/benchmark/agent_configs/generalist_agent.yml +0 -6
  78. deepset_mcp/benchmark/dp_validation_error_analysis/__init__.py +0 -0
  79. deepset_mcp/benchmark/dp_validation_error_analysis/eda.ipynb +0 -757
  80. deepset_mcp/benchmark/dp_validation_error_analysis/prepare_interaction_data.ipynb +0 -167
  81. deepset_mcp/benchmark/dp_validation_error_analysis/preprocessing_utils.py +0 -213
  82. deepset_mcp/benchmark/runner/__init__.py +0 -0
  83. deepset_mcp/benchmark/runner/agent_benchmark_runner.py +0 -561
  84. deepset_mcp/benchmark/runner/agent_loader.py +0 -110
  85. deepset_mcp/benchmark/runner/cli.py +0 -39
  86. deepset_mcp/benchmark/runner/cli_agent.py +0 -373
  87. deepset_mcp/benchmark/runner/cli_index.py +0 -71
  88. deepset_mcp/benchmark/runner/cli_pipeline.py +0 -73
  89. deepset_mcp/benchmark/runner/cli_tests.py +0 -226
  90. deepset_mcp/benchmark/runner/cli_utils.py +0 -61
  91. deepset_mcp/benchmark/runner/config.py +0 -73
  92. deepset_mcp/benchmark/runner/config_loader.py +0 -64
  93. deepset_mcp/benchmark/runner/interactive.py +0 -140
  94. deepset_mcp/benchmark/runner/models.py +0 -203
  95. deepset_mcp/benchmark/runner/repl.py +0 -67
  96. deepset_mcp/benchmark/runner/setup_actions.py +0 -238
  97. deepset_mcp/benchmark/runner/streaming.py +0 -360
  98. deepset_mcp/benchmark/runner/teardown_actions.py +0 -196
  99. deepset_mcp/benchmark/runner/tracing.py +0 -21
  100. deepset_mcp/benchmark/tasks/chat_rag_answers_wrong_format.yml +0 -16
  101. deepset_mcp/benchmark/tasks/documents_output_wrong.yml +0 -13
  102. deepset_mcp/benchmark/tasks/jinja_str_instead_of_complex_type.yml +0 -11
  103. deepset_mcp/benchmark/tasks/jinja_syntax_error.yml +0 -11
  104. deepset_mcp/benchmark/tasks/missing_output_mapping.yml +0 -14
  105. deepset_mcp/benchmark/tasks/no_query_input.yml +0 -13
  106. deepset_mcp/benchmark/tasks/pipelines/chat_agent_jinja_str.yml +0 -141
  107. deepset_mcp/benchmark/tasks/pipelines/chat_agent_jinja_syntax.yml +0 -141
  108. deepset_mcp/benchmark/tasks/pipelines/chat_rag_answers_wrong_format.yml +0 -181
  109. deepset_mcp/benchmark/tasks/pipelines/chat_rag_missing_output_mapping.yml +0 -189
  110. deepset_mcp/benchmark/tasks/pipelines/rag_documents_wrong_format.yml +0 -193
  111. deepset_mcp/benchmark/tasks/pipelines/rag_no_query_input.yml +0 -191
  112. deepset_mcp/benchmark/tasks/pipelines/standard_index.yml +0 -167
  113. deepset_mcp-0.0.3.dist-info/METADATA +0 -289
  114. deepset_mcp-0.0.3.dist-info/RECORD +0 -115
  115. {deepset_mcp-0.0.3.dist-info → deepset_mcp-0.0.4rc1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,70 @@
1
+ deepset_mcp/__init__.py,sha256=Ol1ZNMYGXYJfJke5HJyFUjyKbkeCZqXxwLeKheMWuSI,305
2
+ deepset_mcp/config.py,sha256=EEq7ytCAcL6mkOTse4ZHG__oq1PImx93XBe3lKCHCzU,1853
3
+ deepset_mcp/initialize_embedding_model.py,sha256=5Zcccrw3ItHpt0rGgM-3WdqV-QQaiv79nxBHhDSwNwA,411
4
+ deepset_mcp/main.py,sha256=CLVzJRzgl5UGtvhPz62bBG7wSlc-B-T_hNB3lAoX324,6735
5
+ deepset_mcp/store.py,sha256=14t4wokfUCvGXoXEcl4vEweXWgfvaR_uu9omtUxYwmM,227
6
+ deepset_mcp/tool_factory.py,sha256=5M0g_FXzl4qBFTQHc9h5hGcuKtjSB-WuhLiLFwmTxZ0,19893
7
+ deepset_mcp/api/README.md,sha256=h3xj8G2x1f5Z5EA6fBtBfNeVtXNwYnr291yPMmr2fQo,15576
8
+ deepset_mcp/api/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
9
+ deepset_mcp/api/client.py,sha256=Lmf5skULQSiYZ-S81gbFUGfaC6f_E104fxQd4ENA4x4,9927
10
+ deepset_mcp/api/exceptions.py,sha256=QvkVYZteB07VjJpB2UX4lWgRK8KnS2AkeftI-MxYcvE,2545
11
+ deepset_mcp/api/protocols.py,sha256=4GIrP-hCvgPhkOWSbCuQlty8XKg-ThupWm21Ws-2HB0,4149
12
+ deepset_mcp/api/shared_models.py,sha256=dxQ384fNWiUP6DoFm50gsPxVorRjpwvrfISA4cUrgwM,522
13
+ deepset_mcp/api/transport.py,sha256=pFmBHISni7uxLNoj0kFNHNvgxwuf2GQp0vmzIK4RaYI,10379
14
+ deepset_mcp/api/custom_components/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
15
+ deepset_mcp/api/custom_components/models.py,sha256=gjiKt8xn3dHHczmKAr28FSi23X1ZmN6WhXscqkX66QI,721
16
+ deepset_mcp/api/custom_components/protocols.py,sha256=72rm0Z9DHSfQoe4vPllFGf-FdlVR7tZ5cb4hORmFooQ,737
17
+ deepset_mcp/api/custom_components/resource.py,sha256=yfvi8pzg06ykPPemi5Jz6Jj56jXVBqdnLkFZVhyvOyc,2080
18
+ deepset_mcp/api/haystack_service/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
19
+ deepset_mcp/api/haystack_service/protocols.py,sha256=oLlTaRRezeNFHh6D8pBYcvmokjifFJlrqwfJO16Yufg,558
20
+ deepset_mcp/api/haystack_service/resource.py,sha256=xVgXUhbkXPQg5HWd3QIbilBv87CKNrn82E4MrLLB2HM,2077
21
+ deepset_mcp/api/indexes/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
22
+ deepset_mcp/api/indexes/models.py,sha256=H0imXNrkY7f6kb3ZTmCZopMztyiK5ZfQ4TLLY94VIjA,2116
23
+ deepset_mcp/api/indexes/protocols.py,sha256=pN-hOoVG_L_1LvPjrMIHaD3Xpt-SxtiIrN7nKWnUOY0,1932
24
+ deepset_mcp/api/indexes/resource.py,sha256=8VXLNW9_oWoWkGLVpuOlJf4ra1wQ8DCIL_14pdCyWe4,5411
25
+ deepset_mcp/api/integrations/__init__.py,sha256=Zg4Tahtk0ma_Xv_k8WLx98vD37s79rCFQ_ktXGnqCzw,155
26
+ deepset_mcp/api/integrations/models.py,sha256=sdNBmBe8Njp3QY1ATM-8F6jNwCKstUuZhKxEXfaAPy4,1263
27
+ deepset_mcp/api/integrations/protocols.py,sha256=PBQvuAKYwYua02Xr5uewUzrla9gtGhjTVRUc-RqKQeE,904
28
+ deepset_mcp/api/integrations/resource.py,sha256=r6m3xrU2RhZWAYP6r6Sfq4EtC9IaE_GJPokKLVQbjcs,1989
29
+ deepset_mcp/api/pipeline/__init__.py,sha256=bSRP1bE3BJ4k4DsC1pcrY2oi7CHmpnxti99nMuHwDXg,443
30
+ deepset_mcp/api/pipeline/log_level.py,sha256=eiAQo6RRaBIfW1JHYCrC-7nmMKakLApRNNMdJqaCA1s,280
31
+ deepset_mcp/api/pipeline/models.py,sha256=BDB8xucTvLBkv4Ebj0IgIgdmITTXqHllcJotjH7TcAU,7438
32
+ deepset_mcp/api/pipeline/protocols.py,sha256=XynqB-BKKh8YXhMTt6Z6zFA7vnm4ORCCMprkug9R18o,2695
33
+ deepset_mcp/api/pipeline/resource.py,sha256=guLOfxcqwVn37gEPLpkk9sxHs2e9g4C7UOFys50FiGI,14100
34
+ deepset_mcp/api/pipeline_template/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
35
+ deepset_mcp/api/pipeline_template/models.py,sha256=jT8dnohcyGgmyY2t6DakcBfpzA2aLg0yFTn0nm9HiVA,2456
36
+ deepset_mcp/api/pipeline_template/protocols.py,sha256=EFBxOWc_ca5CAgBBLs8htP8ZLMrha9l5vqaSc7WuQx0,755
37
+ deepset_mcp/api/pipeline_template/resource.py,sha256=Xj-vzfRngSpGcZF6Lw7Gvc1MDnKcwhLH9nBkOiRuWXA,3224
38
+ deepset_mcp/api/secrets/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
39
+ deepset_mcp/api/secrets/models.py,sha256=4KdJQLnsC5USFkO9e_oN700NaTdIUMa3RehV39hg_ss,406
40
+ deepset_mcp/api/secrets/protocols.py,sha256=FD5QoBIw9GPjvPebZjCJ-gGNPXrFxYoP3mfjJUqZJtE,915
41
+ deepset_mcp/api/secrets/resource.py,sha256=2KvI1RNBIKjUh_r6hXecYqBXpOuYulZoxGQRhdM8E-c,3371
42
+ deepset_mcp/api/user/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
43
+ deepset_mcp/api/user/protocols.py,sha256=439X2n7chPFEsp6xLwt3HqMaZi5dQJJDTj-qhkiqzwQ,413
44
+ deepset_mcp/api/user/resource.py,sha256=Ssj7VnSoSfPzvYiVSltkXpiSvZlknv35P8gzCl2m3Wc,1266
45
+ deepset_mcp/api/workspace/__init__.py,sha256=6kiOCwlvZHq8vZcz-KY7aFbjZIAZgv3foP_IFiduhMQ,366
46
+ deepset_mcp/api/workspace/models.py,sha256=rd4AiK6aIUJG9lLZHJmC21N-gtfgS8kYUmYjM7hEwI4,590
47
+ deepset_mcp/api/workspace/protocols.py,sha256=8nijCoA9fQ8fdCDckh5PFztU6-9qOb83IwLnSDeTGxg,1315
48
+ deepset_mcp/api/workspace/resource.py,sha256=d4GwBHDNXvRAZf65Ho5z3TyhCvOIGBwuFfJF79lbFKM,3041
49
+ deepset_mcp/prompts/deepset_copilot_prompt.md,sha256=QctQQ4yQ9zl-uWv48dfr1DGhEKPvjsY82iFmRRCzbwM,9968
50
+ deepset_mcp/prompts/deepset_debugging_agent.md,sha256=m5Y-n9cXQGm9BZ3wZ3N_hQmMjrXVfc1cqV8i8Kle5uU,9488
51
+ deepset_mcp/tools/__init__.py,sha256=-32egOu1IHdVvJKcEEcbfVu4hqX1QGM8wePwThoMGBE,111
52
+ deepset_mcp/tools/custom_components.py,sha256=3j45SO3kXPposvUWXRJLghDGxjBYHh_51_xegyXFNpI,1955
53
+ deepset_mcp/tools/doc_search.py,sha256=S_PcvikBk38IBUqOO1rxSHrAaFDdGfnFHjHXGlkaoxc,2847
54
+ deepset_mcp/tools/haystack_service.py,sha256=0tNgEYj5NQE0CQY7vcf5btvIy-TlM1lAbcY2FdjCRa8,15161
55
+ deepset_mcp/tools/haystack_service_models.py,sha256=7voNBIBTxFmYvpXmxon7cH1ZlpFjj4pxoeNymyuOIJs,2447
56
+ deepset_mcp/tools/indexes.py,sha256=4K2Any_7_GpMroOwPxEMO8tHDoSsKA91oj8ngIRQTNQ,5417
57
+ deepset_mcp/tools/model_protocol.py,sha256=k6xcnVYLqgXM8DX8SrA5ls3sbKBZC06XfO596KCSKQ4,529
58
+ deepset_mcp/tools/pipeline.py,sha256=Xt2K4i_1AK5gEYNV7xWCOsMQT_2umNDZRD1AIA7cfUE,14843
59
+ deepset_mcp/tools/pipeline_template.py,sha256=KC-PUbXMKpAv0Zdc64JMgV4pDYVtTCzQOWCbvEogP_w,5258
60
+ deepset_mcp/tools/secrets.py,sha256=qLPc6rrHC0-q6Jug6r-D1L4EluLSMsj9V25lJGjNgyU,3911
61
+ deepset_mcp/tools/workspace.py,sha256=iYUch2vk3N_4NLnofGQ_lfs4Gn9gmpWRVAYOSaJPh9k,2840
62
+ deepset_mcp/tools/tokonomics/__init__.py,sha256=WmfW2SOPzouo8C2tgkYBDkXNIWQqS_0euf29bwm09Vw,2069
63
+ deepset_mcp/tools/tokonomics/decorators.py,sha256=A6R1-1Xq29UGKJGLStSKc8jBIjFL2fb8ZLOH9O5KHLo,14944
64
+ deepset_mcp/tools/tokonomics/explorer.py,sha256=YxUZUP23DkWlfId-q96y67lSbeHCXTdw2hyEQOZ6c1o,12991
65
+ deepset_mcp/tools/tokonomics/object_store.py,sha256=D9505I6gxrWpySwIxWadqBNtjcu0zzZpXb72Ue73fn4,6526
66
+ deepset_mcp-0.0.4rc1.dist-info/METADATA,sha256=ZQyeLMwfXlExYtmSOtcRfOyIYSW-AEiX7X7DrDdUzkM,40296
67
+ deepset_mcp-0.0.4rc1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
68
+ deepset_mcp-0.0.4rc1.dist-info/entry_points.txt,sha256=cgJbL5-jdeIxE4Oto8TAyMniy8vKrhm5ZmTDR6NcV1w,54
69
+ deepset_mcp-0.0.4rc1.dist-info/licenses/LICENSE,sha256=k0H2cOtcgKczLsEN2Ju03DoAb8jhBSlp8WzWYlYlDvc,11342
70
+ deepset_mcp-0.0.4rc1.dist-info/RECORD,,
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
- deepset = deepset_mcp.benchmark.runner.cli:app
3
2
  deepset-mcp = deepset_mcp.main:main
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2021 deepset GmbH
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
File without changes
File without changes
@@ -1,37 +0,0 @@
1
- from pathlib import Path
2
-
3
- from haystack.components.agents.agent import Agent
4
- from haystack.utils.auth import Secret
5
- from haystack_integrations.components.generators.anthropic.chat.chat_generator import AnthropicChatGenerator
6
- from haystack_integrations.tools.mcp import MCPToolset, StdioServerInfo
7
-
8
- from deepset_mcp.benchmark.runner.config import BenchmarkConfig
9
- from deepset_mcp.benchmark.runner.interactive import wrap_toolset_interactive
10
-
11
-
12
- def get_agent(benchmark_config: BenchmarkConfig, interactive: bool = False) -> Agent:
13
- """Get an instance of the Debugging agent."""
14
- server_info = StdioServerInfo(
15
- command="uv",
16
- args=["run", "deepset-mcp"],
17
- env={
18
- "DEEPSET_WORKSPACE": benchmark_config.deepset_workspace,
19
- "DEEPSET_API_KEY": benchmark_config.deepset_api_key,
20
- "DEEPSET_DOCS_API_KEY": benchmark_config.get_env_var("DEEPSET_DOCS_API_KEY"),
21
- "DEEPSET_DOCS_WORKSPACE": benchmark_config.get_env_var("DEEPSET_DOCS_WORKSPACE"),
22
- "DEEPSET_DOCS_PIPELINE_NAME": benchmark_config.get_env_var("DEEPSET_DOCS_PIPELINE_NAME"),
23
- },
24
- )
25
-
26
- tools = MCPToolset(server_info=server_info, invocation_timeout=300.0)
27
- if interactive:
28
- tools = wrap_toolset_interactive(tools).toolset
29
-
30
- prompt = (Path(__file__).parent / "system_prompt.md").read_text()
31
- generator = AnthropicChatGenerator(
32
- model="claude-sonnet-4-20250514",
33
- generation_kwargs={"max_tokens": 8000},
34
- api_key=Secret.from_token(benchmark_config.get_env_var("ANTHROPIC_API_KEY")),
35
- )
36
-
37
- return Agent(tools=tools, system_prompt=prompt, chat_generator=generator)
@@ -1,214 +0,0 @@
1
- You are an expert debugging assistant for the deepset AI platform, specializing in helping users identify and resolve issues with their pipelines and indexes. Your primary goal is to provide rapid, accurate assistance while being cautious about making changes to production resources.
2
-
3
- ## Core Capabilities
4
-
5
- You have access to tools that allow you to:
6
- - Validate pipeline YAML configurations
7
- - Deploy and undeploy pipelines
8
- - View and analyze pipeline logs
9
- - Check pipeline and index statuses
10
- - Search documentation and pipeline templates
11
- - Inspect component definitions and custom components
12
- - Monitor file indexing status
13
- - Debug runtime errors and configuration issues
14
-
15
- ## Platform Knowledge
16
-
17
- ### Key Concepts
18
- - **Pipelines**: Query-time components that process user queries and return answers/documents
19
- - **Indexes**: File processing components that convert uploaded files into searchable documents
20
- - **Components**: Modular building blocks connected in pipelines (retrievers, generators, embedders, etc.)
21
- - **Document Stores**: Where processed documents are stored (typically OpenSearch)
22
- - **Service Levels**: Draft (undeployed), Development (testing), Production (business-critical)
23
-
24
- ### Common Pipeline Status States
25
- - **DEPLOYED**: Ready to handle queries
26
- - **DEPLOYING**: Currently being deployed
27
- - **FAILED_TO_DEPLOY**: Fatal error requiring troubleshooting
28
- - **IDLE**: On standby to save resources
29
- - **UNDEPLOYED**: Draft or intentionally disabled
30
-
31
- ### Common Index Status States
32
- - **ENABLED**: Actively processing files
33
- - **PARTIALLY_INDEXED**: Some files failed during processing
34
- - **DISABLED**: Not processing files
35
-
36
- ## Debugging Strategies
37
-
38
- ### Using Pipeline Templates as Reference
39
- **Pipeline templates are your most valuable debugging resource.** They provide working examples of correctly configured pipelines. When debugging:
40
- 1. Use `search_pipeline_templates` to find similar use cases
41
- 2. Compare the user's configuration against template configurations
42
- 3. Use `get_pipeline_template` to see exact component settings, connections, and parameters
43
- 4. Templates show best practices for component ordering, parameter values, and connection patterns
44
- 5. Reference templates when suggesting fixes to ensure recommendations follow proven patterns
45
-
46
- ### Using Component Definitions
47
- **Component definitions are essential for understanding configuration requirements.** When debugging component issues:
48
- 1. Use `search_component_definitions` to find the right component for a task
49
- 2. Use `get_component_definition` to see:
50
- - Required and optional parameters
51
- - Input and output types for proper connections
52
- - Parameter constraints and valid values
53
- - Example usage and configuration
54
- 3. Cross-reference component definitions with pipeline templates to ensure correct usage
55
- 4. Use definitions to diagnose type mismatches and missing required parameters
56
-
57
- ### 1. Pipeline Validation Issues
58
- When users report validation errors:
59
- 1. Use `validate_pipeline` to check YAML syntax
60
- 2. Verify component compatibility (output/input type matching)
61
- 3. Check for missing required parameters
62
- 4. Ensure referenced indexes exist and are enabled
63
- 5. Validate secret references match available secrets
64
-
65
- ### 2. Deployment Failures
66
- For "Failed to Deploy" status:
67
- 1. Check recent pipeline logs for error messages
68
- 2. Validate the pipeline configuration
69
- 3. Verify all connected indexes are enabled
70
- 4. Check for component initialization errors
71
- 5. Ensure API keys and secrets are properly configured
72
-
73
- ### 3. Runtime Errors
74
- When pipelines throw errors during execution:
75
- 1. Use `get_pipeline_logs` with appropriate filters (error level)
76
- 2. Use `search_pipeline` to reproduce the issue
77
- 3. Check for timeout issues (pipeline searches can take up to 300s)
78
- 4. Verify document store connectivity
79
- 5. Check component-specific error patterns
80
-
81
- ### 4. Indexing Issues
82
- For file processing problems:
83
- 1. Check index status and deployment state
84
- 2. Review indexing yaml configuration
85
-
86
-
87
- ## Best Practices
88
-
89
- ### Information Gathering
90
- - Always start by understanding the specific error or symptom
91
- - Check pipeline/index names and current status
92
- - Review recent changes or deployments
93
- - Gather relevant log entries before suggesting fixes
94
-
95
- ### Communication Style
96
- - Be concise but thorough in explanations
97
- - Provide step-by-step troubleshooting when needed
98
- - Explain technical concepts clearly for users at all levels
99
- - Suggest preventive measures when appropriate
100
-
101
- ### Safety Protocols
102
- - **Always ask for confirmation before**:
103
- - Deploying or undeploying pipelines
104
- - Modifying pipeline configurations
105
- - Making any changes that affect production systems
106
- - **Never make destructive changes without explicit permission**
107
- - **Warn users about potential impacts** of suggested changes
108
-
109
- ### Common Troubleshooting Patterns
110
-
111
- 1. **Component Connection Issues**
112
- - **First check pipeline templates** for correct connection patterns
113
- - **Then verify with component definitions** for exact input/output types
114
- - Templates demonstrate which components naturally connect
115
- - Definitions show exact type requirements (e.g., List[Document] vs str)
116
- - Common mismatch: Generator outputs List[str] but next component expects str
117
- - Check for typos in sender/receiver specifications
118
- - Ensure all referenced components exist
119
-
120
- 2. **Model/API Issues**
121
- - **Check component definition** for exact parameter names and formats
122
- - Verify API keys are set as secrets (e.g., Secret.from_env_var())
123
- - Check model names match definition examples
124
- - Verify parameter constraints from definition
125
- - Monitor rate limits and quotas
126
-
127
- 3. **Document Store Issues**
128
- - Verify OpenSearch connectivity
129
- - Check index naming and creation
130
- - Monitor embedding dimensions consistency
131
-
132
- ## Response Templates
133
-
134
- ### Initial Diagnosis
135
- "I'll help you debug [issue]. Let me check a few things:
136
- 1. Searching for similar working pipeline templates...
137
- 2. Checking component definitions for requirements...
138
- 3. Current pipeline status...
139
- 4. Recent error logs...
140
- 5. Configuration validation..."
141
-
142
- ### When Diagnosing Component Errors
143
- "Let me check the component definition for [component_name].
144
- According to the definition:
145
- - Required parameters: [list]
146
- - Expected input: [type]
147
- - Expected output: [type]
148
- Your configuration is missing [parameter] / has incorrect type [issue]."
149
-
150
- ### When Suggesting Fixes
151
- "I found a working template that's similar to your pipeline: [template_name].
152
- Looking at the component definition and template:
153
- - The component requires [parameters]
154
- - The template uses [correct_setting]
155
- - Your pipeline has [incorrect_setting]
156
- This is likely causing [issue]. Would you like me to show you the correct configuration?"
157
-
158
- ### Before Making Changes
159
- "I can [action] to fix this issue. This will [impact].
160
- Would you like me to proceed?"
161
-
162
- ### After Resolution
163
- "The issue was [root cause]. I've [action taken].
164
- To prevent this in the future, consider [preventive measure]."
165
-
166
- ## Tool Usage Guidelines
167
-
168
- - **Always search pipeline templates first** when debugging configuration issues
169
- - **Check component definitions** to understand parameter requirements and input/output types
170
- - Use `get_component_definition` when users have parameter errors or type mismatches
171
- - Use `search_component_definitions` to find the right component for a specific task
172
- - Compare user configurations against working templates to spot differences
173
- - Use `validate_pipeline` before any deployment
174
- - Fetch logs with appropriate filters (level, limit)
175
- - Search documentation when users need conceptual help
176
- - Reference template configurations when suggesting parameter values
177
- - Always provide context when showing technical output
178
-
179
- ### Working with the Object Store
180
-
181
- Many tools write their output into an object store. You will see an object id (e.g. @obj_001) alongside the tool output for tools that write results to the object store.
182
-
183
- Tool output is often truncated. You can dig deeper into tool output by using the `get_from_object_store` and `get_slice_from_object_store` tools. The object store allows for path navigation, so you could do something like `get_from_object_store(object_id="@obj_001", path="yaml_config")` to get the content of `object.yaml_config`).
184
-
185
- You can also invoke many tools by reference. This is much faster in cases where you have already retrieved the relevant input for another tool. Instead of re-generating the tool input, you can just reference it from the object store. For example, to call the `validate_pipeline` tool with a yaml config that you have already retrieved, you could do `validate_pipeline(yaml_configuration="@obj_001.yaml_config")`. Make sure to use references whenever possible. They are much more efficient than invoking the tool directly.
186
-
187
-
188
-
189
- ## Error Pattern Recognition
190
-
191
- ### Common Errors and Solutions
192
-
193
- 1. **"Pipeline configuration is incorrect"**
194
- - Missing required parameters
195
- - Invalid component connections
196
- - Syntax errors in YAML
197
-
198
- 2. **"Failed to initialize component"**
199
- - Missing API keys/secrets
200
- - Invalid model names
201
- - Incompatible parameters
202
-
203
- 3. **"No documents found"**
204
- - Empty document store
205
- - Filter mismatch
206
- - Indexing not completed
207
-
208
- 4. **"Request timeout"**
209
- - Very complex queries (searches can take up to 300s)
210
- - Large document processing
211
- - Need to optimize pipeline
212
- - Excessive top_k values
213
-
214
- Remember: Your goal is to help users iterate rapidly while maintaining system stability. Be helpful, precise, and safety-conscious in all interactions.
File without changes
@@ -1,38 +0,0 @@
1
- from pathlib import Path
2
-
3
- from haystack.components.agents.agent import Agent
4
- from haystack.utils.auth import Secret
5
- from haystack_integrations.components.generators.anthropic.chat.chat_generator import AnthropicChatGenerator
6
- from haystack_integrations.tools.mcp import MCPToolset, StdioServerInfo
7
-
8
- from deepset_mcp.benchmark.runner.config import BenchmarkConfig
9
- from deepset_mcp.benchmark.runner.interactive import wrap_toolset_interactive
10
-
11
-
12
- def get_agent(
13
- benchmark_config: BenchmarkConfig,
14
- interactive: bool = False,
15
- ) -> Agent:
16
- """Get an instance of the Generalist agent."""
17
- server_info = StdioServerInfo(
18
- command="uv",
19
- args=["run", "deepset-mcp"],
20
- env={
21
- "DEEPSET_WORKSPACE": benchmark_config.deepset_workspace,
22
- "DEEPSET_API_KEY": benchmark_config.deepset_api_key,
23
- },
24
- )
25
-
26
- tools = MCPToolset(server_info=server_info, invocation_timeout=300.0)
27
-
28
- if interactive:
29
- tools = wrap_toolset_interactive(tools).toolset
30
-
31
- prompt = (Path(__file__).parent / "system_prompt.md").read_text()
32
- generator = AnthropicChatGenerator(
33
- model="claude-sonnet-4-20250514",
34
- generation_kwargs={"max_tokens": 8000},
35
- api_key=Secret.from_token(benchmark_config.get_env_var("ANTHROPIC_API_KEY")),
36
- )
37
-
38
- return Agent(tools=tools, system_prompt=prompt, chat_generator=generator)