neuralseek 1.0.1

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 (236) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +206 -0
  3. package/docs/AnalyticsApi.md +59 -0
  4. package/docs/AnalyticsBody.md +6 -0
  5. package/docs/AnswerRatingsBody.md +7 -0
  6. package/docs/CategorizeApi.md +58 -0
  7. package/docs/CategorizeBody.md +6 -0
  8. package/docs/ChatCompletionsBody.md +9 -0
  9. package/docs/ChatcompletionsMessages.md +16 -0
  10. package/docs/ChatcompletionsTools.md +13 -0
  11. package/docs/ExtractBody.md +11 -0
  12. package/docs/ExtractEntitiesApi.md +58 -0
  13. package/docs/GuardrailsApi.md +109 -0
  14. package/docs/IdentifysingleBody.md +6 -0
  15. package/docs/InlineResponse200.md +6 -0
  16. package/docs/InlineResponse2001.md +8 -0
  17. package/docs/InlineResponse20010.md +6 -0
  18. package/docs/InlineResponse20011.md +9 -0
  19. package/docs/InlineResponse20012.md +7 -0
  20. package/docs/InlineResponse20013.md +6 -0
  21. package/docs/InlineResponse2002.md +10 -0
  22. package/docs/InlineResponse2002Render.md +9 -0
  23. package/docs/InlineResponse2003.md +6 -0
  24. package/docs/InlineResponse2003Data.md +10 -0
  25. package/docs/InlineResponse2004.md +10 -0
  26. package/docs/InlineResponse2004Choices.md +8 -0
  27. package/docs/InlineResponse2004Message.md +14 -0
  28. package/docs/InlineResponse2005.md +9 -0
  29. package/docs/InlineResponse2005TopIntents.md +7 -0
  30. package/docs/InlineResponse2006.md +9 -0
  31. package/docs/InlineResponse2006ExtractedEntities.md +6 -0
  32. package/docs/InlineResponse2007.md +12 -0
  33. package/docs/InlineResponse2007Translations.md +6 -0
  34. package/docs/InlineResponse2008.md +7 -0
  35. package/docs/InlineResponse2009.md +7 -0
  36. package/docs/KeysApi.md +99 -0
  37. package/docs/LogExternalAgentBody.md +11 -0
  38. package/docs/LogExternalAgentEntries.md +34 -0
  39. package/docs/LogsApi.md +110 -0
  40. package/docs/LogsBody.md +8 -0
  41. package/docs/MAIstroAgentRatingsApi.md +109 -0
  42. package/docs/MAIstroApi.md +367 -0
  43. package/docs/MaistroBatchBody.md +9 -0
  44. package/docs/MaistroBody.md +9 -0
  45. package/docs/MaistroOptions.md +20 -0
  46. package/docs/MaistroRateBody.md +9 -0
  47. package/docs/MaistroRatingsBody.md +7 -0
  48. package/docs/MaistroStreamBody.md +9 -0
  49. package/docs/MaistroStreamOptions.md +19 -0
  50. package/docs/PiiBody.md +6 -0
  51. package/docs/RateBody.md +8 -0
  52. package/docs/ScoreBody.md +7 -0
  53. package/docs/Seek.md +9 -0
  54. package/docs/SeekAnswerRatingsApi.md +109 -0
  55. package/docs/SeekApi.md +109 -0
  56. package/docs/SeekOptions.md +24 -0
  57. package/docs/SeekResponse.md +32 -0
  58. package/docs/SeekResponsePassages.md +11 -0
  59. package/docs/SeekResponseVariablesExpanded.md +7 -0
  60. package/docs/SeekStreamBody.md +9 -0
  61. package/docs/SeekStreamOptions.md +23 -0
  62. package/docs/SeekStreamOptionsLastTurn.md +7 -0
  63. package/docs/SeekStreamOptionsPersonalize.md +10 -0
  64. package/docs/SeekStreamParams.md +7 -0
  65. package/docs/SeekStreamUserSession.md +7 -0
  66. package/docs/SeekStreamUserSessionMetadata.md +6 -0
  67. package/docs/SeekStreamUserSessionSystem.md +6 -0
  68. package/docs/ServiceTestApi.md +46 -0
  69. package/docs/TestBody.md +6 -0
  70. package/docs/TestBody1.md +6 -0
  71. package/docs/TestQuestionsApi.md +107 -0
  72. package/docs/TrainBody.md +7 -0
  73. package/docs/TrainKBApi.md +58 -0
  74. package/docs/TranslateApi.md +259 -0
  75. package/docs/TranslateBody.md +11 -0
  76. package/docs/TranslateGlossaryBody.md +6 -0
  77. package/docs/TranslateGlossaryBody1.md +6 -0
  78. package/docs/UserDataApi.md +59 -0
  79. package/git_push.sh +52 -0
  80. package/mocha.opts +1 -0
  81. package/package.json +55 -0
  82. package/src/AnalyticsApi.js +82 -0
  83. package/src/ApiClient.js +585 -0
  84. package/src/CategorizeApi.js +87 -0
  85. package/src/ExtractEntitiesApi.js +87 -0
  86. package/src/GuardrailsApi.js +134 -0
  87. package/src/KeysApi.js +122 -0
  88. package/src/LogsApi.js +133 -0
  89. package/src/MAIstroAgentRatingsApi.js +134 -0
  90. package/src/MAIstroApi.js +366 -0
  91. package/src/SeekAnswerRatingsApi.js +134 -0
  92. package/src/SeekApi.js +136 -0
  93. package/src/ServiceTestApi.js +79 -0
  94. package/src/TestQuestionsApi.js +124 -0
  95. package/src/TrainKBApi.js +85 -0
  96. package/src/TranslateApi.js +277 -0
  97. package/src/UserDataApi.js +81 -0
  98. package/src/index.js +587 -0
  99. package/src/model/AnalyticsBody.js +54 -0
  100. package/src/model/AnswerRatingsBody.js +62 -0
  101. package/src/model/CategorizeBody.js +55 -0
  102. package/src/model/ChatCompletionsBody.js +80 -0
  103. package/src/model/ChatcompletionsMessages.js +92 -0
  104. package/src/model/ChatcompletionsTools.js +75 -0
  105. package/src/model/ExtractBody.js +94 -0
  106. package/src/model/IdentifysingleBody.js +55 -0
  107. package/src/model/InlineResponse200.js +56 -0
  108. package/src/model/InlineResponse2001.js +70 -0
  109. package/src/model/InlineResponse20010.js +54 -0
  110. package/src/model/InlineResponse20011.js +81 -0
  111. package/src/model/InlineResponse20012.js +60 -0
  112. package/src/model/InlineResponse20013.js +55 -0
  113. package/src/model/InlineResponse2002.js +88 -0
  114. package/src/model/InlineResponse2002Render.js +80 -0
  115. package/src/model/InlineResponse2003.js +56 -0
  116. package/src/model/InlineResponse2003Data.js +88 -0
  117. package/src/model/InlineResponse2004.js +86 -0
  118. package/src/model/InlineResponse2004Choices.js +70 -0
  119. package/src/model/InlineResponse2004Message.js +80 -0
  120. package/src/model/InlineResponse2005.js +80 -0
  121. package/src/model/InlineResponse2005TopIntents.js +64 -0
  122. package/src/model/InlineResponse2006.js +79 -0
  123. package/src/model/InlineResponse2006ExtractedEntities.js +55 -0
  124. package/src/model/InlineResponse2007.js +103 -0
  125. package/src/model/InlineResponse2007Translations.js +55 -0
  126. package/src/model/InlineResponse2008.js +63 -0
  127. package/src/model/InlineResponse2009.js +63 -0
  128. package/src/model/LogExternalAgentBody.js +104 -0
  129. package/src/model/LogExternalAgentEntries.js +195 -0
  130. package/src/model/LogsBody.js +73 -0
  131. package/src/model/MaistroBatchBody.js +81 -0
  132. package/src/model/MaistroBody.js +81 -0
  133. package/src/model/MaistroOptions.js +176 -0
  134. package/src/model/MaistroRateBody.js +78 -0
  135. package/src/model/MaistroRatingsBody.js +62 -0
  136. package/src/model/MaistroStreamBody.js +81 -0
  137. package/src/model/MaistroStreamOptions.js +167 -0
  138. package/src/model/PiiBody.js +55 -0
  139. package/src/model/RateBody.js +70 -0
  140. package/src/model/ScoreBody.js +63 -0
  141. package/src/model/Seek.js +82 -0
  142. package/src/model/SeekOptions.js +216 -0
  143. package/src/model/SeekResponse.js +281 -0
  144. package/src/model/SeekResponsePassages.js +99 -0
  145. package/src/model/SeekResponseVariablesExpanded.js +64 -0
  146. package/src/model/SeekStreamBody.js +82 -0
  147. package/src/model/SeekStreamOptions.js +207 -0
  148. package/src/model/SeekStreamOptionsLastTurn.js +64 -0
  149. package/src/model/SeekStreamOptionsPersonalize.js +91 -0
  150. package/src/model/SeekStreamParams.js +64 -0
  151. package/src/model/SeekStreamUserSession.js +63 -0
  152. package/src/model/SeekStreamUserSessionMetadata.js +55 -0
  153. package/src/model/SeekStreamUserSessionSystem.js +55 -0
  154. package/src/model/TestBody.js +53 -0
  155. package/src/model/TestBody1.js +55 -0
  156. package/src/model/TrainBody.js +63 -0
  157. package/src/model/TranslateBody.js +99 -0
  158. package/src/model/TranslateGlossaryBody.js +53 -0
  159. package/src/model/TranslateGlossaryBody1.js +54 -0
  160. package/test/api/AnalyticsApi.spec.js +60 -0
  161. package/test/api/CategorizeApi.spec.js +61 -0
  162. package/test/api/ExtractEntitiesApi.spec.js +61 -0
  163. package/test/api/GuardrailsApi.spec.js +85 -0
  164. package/test/api/KeysApi.spec.js +79 -0
  165. package/test/api/LogsApi.spec.js +88 -0
  166. package/test/api/MAIstroAgentRatingsApi.spec.js +79 -0
  167. package/test/api/MAIstroApi.spec.js +180 -0
  168. package/test/api/SeekAnswerRatingsApi.spec.js +79 -0
  169. package/test/api/SeekApi.spec.js +81 -0
  170. package/test/api/ServiceTestApi.spec.js +59 -0
  171. package/test/api/TestQuestionsApi.spec.js +78 -0
  172. package/test/api/TrainKBApi.spec.js +59 -0
  173. package/test/api/TranslateApi.spec.js +143 -0
  174. package/test/api/UserDataApi.spec.js +60 -0
  175. package/test/assert-equals.js +81 -0
  176. package/test/model/AnalyticsBody.spec.js +52 -0
  177. package/test/model/AnswerRatingsBody.spec.js +58 -0
  178. package/test/model/CategorizeBody.spec.js +52 -0
  179. package/test/model/ChatCompletionsBody.spec.js +70 -0
  180. package/test/model/ChatcompletionsMessages.spec.js +58 -0
  181. package/test/model/ChatcompletionsTools.spec.js +58 -0
  182. package/test/model/ExtractBody.spec.js +82 -0
  183. package/test/model/IdentifysingleBody.spec.js +52 -0
  184. package/test/model/InlineResponse200.spec.js +52 -0
  185. package/test/model/InlineResponse2001.spec.js +64 -0
  186. package/test/model/InlineResponse20010.spec.js +52 -0
  187. package/test/model/InlineResponse20011.spec.js +70 -0
  188. package/test/model/InlineResponse20012.spec.js +58 -0
  189. package/test/model/InlineResponse20013.spec.js +52 -0
  190. package/test/model/InlineResponse2002.spec.js +76 -0
  191. package/test/model/InlineResponse2002Render.spec.js +70 -0
  192. package/test/model/InlineResponse2003.spec.js +52 -0
  193. package/test/model/InlineResponse2003Data.spec.js +76 -0
  194. package/test/model/InlineResponse2004.spec.js +76 -0
  195. package/test/model/InlineResponse2004Choices.spec.js +64 -0
  196. package/test/model/InlineResponse2004Message.spec.js +58 -0
  197. package/test/model/InlineResponse2005.spec.js +70 -0
  198. package/test/model/InlineResponse2005TopIntents.spec.js +58 -0
  199. package/test/model/InlineResponse2006.spec.js +70 -0
  200. package/test/model/InlineResponse2006ExtractedEntities.spec.js +52 -0
  201. package/test/model/InlineResponse2007.spec.js +88 -0
  202. package/test/model/InlineResponse2007Translations.spec.js +52 -0
  203. package/test/model/InlineResponse2008.spec.js +58 -0
  204. package/test/model/InlineResponse2009.spec.js +58 -0
  205. package/test/model/LogExternalAgentBody.spec.js +82 -0
  206. package/test/model/LogExternalAgentEntries.spec.js +118 -0
  207. package/test/model/LogsBody.spec.js +64 -0
  208. package/test/model/MaistroBatchBody.spec.js +70 -0
  209. package/test/model/MaistroBody.spec.js +70 -0
  210. package/test/model/MaistroOptions.spec.js +136 -0
  211. package/test/model/MaistroRateBody.spec.js +70 -0
  212. package/test/model/MaistroRatingsBody.spec.js +58 -0
  213. package/test/model/MaistroStreamBody.spec.js +70 -0
  214. package/test/model/MaistroStreamOptions.spec.js +130 -0
  215. package/test/model/PiiBody.spec.js +52 -0
  216. package/test/model/RateBody.spec.js +64 -0
  217. package/test/model/ScoreBody.spec.js +58 -0
  218. package/test/model/Seek.spec.js +70 -0
  219. package/test/model/SeekOptions.spec.js +160 -0
  220. package/test/model/SeekResponse.spec.js +208 -0
  221. package/test/model/SeekResponsePassages.spec.js +82 -0
  222. package/test/model/SeekResponseVariablesExpanded.spec.js +58 -0
  223. package/test/model/SeekStreamBody.spec.js +70 -0
  224. package/test/model/SeekStreamOptions.spec.js +154 -0
  225. package/test/model/SeekStreamOptionsLastTurn.spec.js +58 -0
  226. package/test/model/SeekStreamOptionsPersonalize.spec.js +76 -0
  227. package/test/model/SeekStreamParams.spec.js +58 -0
  228. package/test/model/SeekStreamUserSession.spec.js +58 -0
  229. package/test/model/SeekStreamUserSessionMetadata.spec.js +52 -0
  230. package/test/model/SeekStreamUserSessionSystem.spec.js +52 -0
  231. package/test/model/TestBody.spec.js +52 -0
  232. package/test/model/TestBody1.spec.js +52 -0
  233. package/test/model/TrainBody.spec.js +58 -0
  234. package/test/model/TranslateBody.spec.js +82 -0
  235. package/test/model/TranslateGlossaryBody.spec.js +52 -0
  236. package/test/model/TranslateGlossaryBody1.spec.js +52 -0
@@ -0,0 +1,109 @@
1
+ # NeuralSeek.SeekAnswerRatingsApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**answerRatings**](SeekAnswerRatingsApi.md#answerRatings) | **POST** /answerRatings | Get the average user ratings for an answer
8
+ [**rate**](SeekAnswerRatingsApi.md#rate) | **POST** /rate | Rate an answer
9
+
10
+ <a name="answerRatings"></a>
11
+ # **answerRatings**
12
+ > InlineResponse2001 answerRatings(body)
13
+
14
+ Get the average user ratings for an answer
15
+
16
+ Get the average user ratings for an answer
17
+
18
+ ### Example
19
+ ```javascript
20
+ import {NeuralSeek} from 'neuralSeek';
21
+ let defaultClient = NeuralSeek.ApiClient.instance;
22
+
23
+ // Configure API key authorization: apiKey
24
+ let apiKey = defaultClient.authentications['apiKey'];
25
+ apiKey.apiKey = 'YOUR API KEY';
26
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
27
+ //apiKey.apiKeyPrefix = 'Token';
28
+
29
+ let apiInstance = new NeuralSeek.SeekAnswerRatingsApi();
30
+ let body = new NeuralSeek.AnswerRatingsBody(); // AnswerRatingsBody | The request object.
31
+
32
+ apiInstance.answerRatings(body, (error, data, response) => {
33
+ if (error) {
34
+ console.error(error);
35
+ } else {
36
+ console.log('API called successfully. Returned data: ' + data);
37
+ }
38
+ });
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **body** | [**AnswerRatingsBody**](AnswerRatingsBody.md)| The request object. |
46
+
47
+ ### Return type
48
+
49
+ [**InlineResponse2001**](InlineResponse2001.md)
50
+
51
+ ### Authorization
52
+
53
+ [apiKey](../README.md#apiKey)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json
58
+ - **Accept**: application/json
59
+
60
+ <a name="rate"></a>
61
+ # **rate**
62
+ > rate(body)
63
+
64
+ Rate an answer
65
+
66
+ Allow users to give feedback in on answers generated
67
+
68
+ ### Example
69
+ ```javascript
70
+ import {NeuralSeek} from 'neuralSeek';
71
+ let defaultClient = NeuralSeek.ApiClient.instance;
72
+
73
+ // Configure API key authorization: apiKey
74
+ let apiKey = defaultClient.authentications['apiKey'];
75
+ apiKey.apiKey = 'YOUR API KEY';
76
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
77
+ //apiKey.apiKeyPrefix = 'Token';
78
+
79
+ let apiInstance = new NeuralSeek.SeekAnswerRatingsApi();
80
+ let body = new NeuralSeek.RateBody(); // RateBody | The request object.
81
+
82
+ apiInstance.rate(body, (error, data, response) => {
83
+ if (error) {
84
+ console.error(error);
85
+ } else {
86
+ console.log('API called successfully.');
87
+ }
88
+ });
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **body** | [**RateBody**](RateBody.md)| The request object. |
96
+
97
+ ### Return type
98
+
99
+ null (empty response body)
100
+
101
+ ### Authorization
102
+
103
+ [apiKey](../README.md#apiKey)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: Not defined
109
+
@@ -0,0 +1,109 @@
1
+ # NeuralSeek.SeekApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**seek**](SeekApi.md#seek) | **POST** /seek | Seek an answer from NeuralSeek
8
+ [**seekStream**](SeekApi.md#seekStream) | **POST** /seek_stream | Stream a Seek an answer from NeuralSeek
9
+
10
+ <a name="seek"></a>
11
+ # **seek**
12
+ > SeekResponse seek(body)
13
+
14
+ Seek an answer from NeuralSeek
15
+
16
+ This endpoint takes an input object with a user question, context and options and returns a response object
17
+
18
+ ### Example
19
+ ```javascript
20
+ import {NeuralSeek} from 'neuralSeek';
21
+ let defaultClient = NeuralSeek.ApiClient.instance;
22
+
23
+ // Configure API key authorization: apiKey
24
+ let apiKey = defaultClient.authentications['apiKey'];
25
+ apiKey.apiKey = 'YOUR API KEY';
26
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
27
+ //apiKey.apiKeyPrefix = 'Token';
28
+
29
+ let apiInstance = new NeuralSeek.SeekApi();
30
+ let body = new NeuralSeek.Seek(); // Seek | The request object. Must include the question and a context.
31
+
32
+ apiInstance.seek(body, (error, data, response) => {
33
+ if (error) {
34
+ console.error(error);
35
+ } else {
36
+ console.log('API called successfully. Returned data: ' + data);
37
+ }
38
+ });
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **body** | [**Seek**](Seek.md)| The request object. Must include the question and a context. |
46
+
47
+ ### Return type
48
+
49
+ [**SeekResponse**](SeekResponse.md)
50
+
51
+ ### Authorization
52
+
53
+ [apiKey](../README.md#apiKey)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json
58
+ - **Accept**: application/json
59
+
60
+ <a name="seekStream"></a>
61
+ # **seekStream**
62
+ > InlineResponse200 seekStream(body)
63
+
64
+ Stream a Seek an answer from NeuralSeek
65
+
66
+ This endpoint takes an input object with a user question, context and options and returns a response object
67
+
68
+ ### Example
69
+ ```javascript
70
+ import {NeuralSeek} from 'neuralSeek';
71
+ let defaultClient = NeuralSeek.ApiClient.instance;
72
+
73
+ // Configure API key authorization: apiKey
74
+ let apiKey = defaultClient.authentications['apiKey'];
75
+ apiKey.apiKey = 'YOUR API KEY';
76
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
77
+ //apiKey.apiKeyPrefix = 'Token';
78
+
79
+ let apiInstance = new NeuralSeek.SeekApi();
80
+ let body = new NeuralSeek.SeekStreamBody(); // SeekStreamBody | The request object. Must include the question and a context.
81
+
82
+ apiInstance.seekStream(body, (error, data, response) => {
83
+ if (error) {
84
+ console.error(error);
85
+ } else {
86
+ console.log('API called successfully. Returned data: ' + data);
87
+ }
88
+ });
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **body** | [**SeekStreamBody**](SeekStreamBody.md)| The request object. Must include the question and a context. |
96
+
97
+ ### Return type
98
+
99
+ [**InlineResponse200**](InlineResponse200.md)
100
+
101
+ ### Authorization
102
+
103
+ [apiKey](../README.md#apiKey)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: text/event-stream
109
+
@@ -0,0 +1,24 @@
1
+ # NeuralSeek.SeekOptions
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **personalize** | [**SeekStreamOptionsPersonalize**](SeekStreamOptionsPersonalize.md) | | [optional]
7
+ **proposalID** | **String** | Override all settings by passing a NeuralSeek Proposal ID. | [optional] [default to &#x27;&#x27;]
8
+ **streaming** | **Boolean** | Return the response via SSE streaming. This is not compatible with most Virtual Agent platforms, and is intentded for direct website use. | [optional] [default to false]
9
+ **seekLLM** | **String** | Override the LLM load balancer and force seek to use a specific LLM. Input the LLM code here. You must have a valid model card set up on the configure tab for the code you input. | [optional] [default to &#x27;&#x27;]
10
+ **language** | **String** | Valid values are: en, es, de, it, fr, ja, ar | [optional] [default to &#x27;&#x27;]
11
+ **filter** | **String** | Text to use as a filter against the filter field set in the KnowledgeBase configuration. Use commas to separate multiple strings for an &#x27;or&#x27; filter. You can use the filter to isolate a certain subset of documents in the knowledgebase. | [optional] [default to &#x27;&#x27;]
12
+ **lastTurn** | [**[SeekStreamOptionsLastTurn]**](SeekStreamOptionsLastTurn.md) | lastTurn is a flexible object. It is backwards compatible with the original single turn object, as well as compatible with the Watson Assistant session history format. | [optional]
13
+ **promptEngineering** | **String** | Enable Prompt engineering. Valid values are the strings &#x27;true&#x27; and &#x27;false&#x27; | [optional] [default to &#x27;&#x27;]
14
+ **promptEngineeringPhrase** | **String** | Prepend a phrase to cleansed user input. Must enable Prompt Engineering inside the NeuralSeek \&quot;Configure\&quot; page | [optional] [default to &#x27;&#x27;]
15
+ **answerLength** | **Number** | The verbosity of the answer. A whole number 1-4 | [optional]
16
+ **url** | **String** | URL of the current page when using with a web-based Virtual Agent | [optional] [default to &#x27;&#x27;]
17
+ **stump** | **String** | Stump Speech text. Fallback for when all else fails. | [optional] [default to &#x27;&#x27;]
18
+ **includeSourceResults** | **Boolean** | Include generation source results. Defaults to false. | [optional] [default to false]
19
+ **includeHighlights** | **Boolean** | Include highlights from source results. Defaults to false. | [optional] [default to false]
20
+ **includeSourceResultsFormatted** | **Boolean** | Include generation source results, and output them into a formatted string. Defaults to false. | [optional] [default to false]
21
+ **sourceResultsNumber** | **Number** | When including source results, how many to include.&#x27; | [optional] [default to 3]
22
+ **sourceResultsSummaryLength** | **Number** | When including source results, how long of a summary to include.&#x27; | [optional] [default to 100]
23
+ **returnVariables** | **Boolean** | Return the final state of all variables in a dense object | [optional] [default to false]
24
+ **returnVariablesExpanded** | **Boolean** | Return the final state of all variables in the same format as the input params | [optional] [default to false]
@@ -0,0 +1,32 @@
1
+ # NeuralSeek.SeekResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **answer** | **String** | The generated answer | [default to &#x27;&#x27;]
7
+ **ufa** | **String** | The raw answer from the LLM before guardrails are applied. | [optional] [default to &#x27;&#x27;]
8
+ **answerId** | **String** | The id of the answer. Use this to refer to it from other endpoints, such as the Rating endpoint | [optional] [default to &#x27;&#x27;]
9
+ **thumbs** | **String** | The URL of a rating HTML page with an SVG to embed with the answer to allow easy rating. | [optional] [default to &#x27;&#x27;]
10
+ **thumbsSVG** | **String** | The URL of a rating SVG to display with the answer to allow easy rating. | [optional] [default to &#x27;&#x27;]
11
+ **intent** | **String** | The intent of the answer. | [optional] [default to &#x27;&#x27;]
12
+ **category** | **Number** | The category id of the answer. | [optional]
13
+ **categoryName** | **String** | The category name of the answer. | [optional] [default to &#x27;&#x27;]
14
+ **score** | **Number** | The final confidence score of the answer (0-100) |
15
+ **kBscore** | **Number** | The KnowledgeBase confidence of the answer&#x27;s source documentation (0-100) | [optional]
16
+ **semanticAnalysis** | **String** | Semantic Analysis | [optional] [default to &#x27;&#x27;]
17
+ **cachedResult** | **String** | If the result came from cache, will be set to the string &#x27;true&#x27; | [optional] [default to &#x27;&#x27;]
18
+ **langCode** | **String** | The language code of the answer. If you set the input language code to &#x27;xx&#x27; to identify the language, this is useful to condition of the found language and response. | [optional] [default to &#x27;&#x27;]
19
+ **url** | **String** | The top scoring URL (if available) used to train the answer. Set the field you want returned here in on the Configure tab. The field must contain a URL, or it will be ignored. | [optional] [default to &#x27;&#x27;]
20
+ **document** | **String** | The top document (if available) used to train the answer. Set the field you want returned here in on the Configure tab | [optional] [default to &#x27;&#x27;]
21
+ **time** | **Number** | Total processing time in milliseconds | [optional]
22
+ **kbTime** | **Number** | KnowledgeBase response time in milliseconds | [optional]
23
+ **protectTime** | **Number** | PI time in milliseconds | [optional]
24
+ **categorySelectionTime** | **Number** | Category Selection time in milliseconds | [optional]
25
+ **promptInjection** | **Number** | Prompt injection value | [optional]
26
+ **sourceResultsFormatted** | **String** | A listing of the passages used for answer summarization. This will only return if includeSourceResultsFormatted is set to true on the request | [optional] [default to &#x27;&#x27;]
27
+ **passages** | [**[SeekResponsePassages]**](SeekResponsePassages.md) | A listing of the passages used for answer summarization. This will only return if includeSourceResults is set to true on the request | [optional]
28
+ **kbCoverage** | **Number** | KnowledgeBase coverage score. How much content was returned from the KnowledgeBase on the subject asked as compared to benchmarks. Low coverage is not necessarily indicitive of bad content. | [optional]
29
+ **sentiment** | **Number** | Sentiment score | [optional]
30
+ **semanticScore** | **Number** | Semantic score (if enabled) | [optional]
31
+ **variables** | **Object** | The returned variable. | [optional]
32
+ **variablesExpanded** | [**[SeekResponseVariablesExpanded]**](SeekResponseVariablesExpanded.md) | The returned variable, in the format of the input params | [optional]
@@ -0,0 +1,11 @@
1
+ # NeuralSeek.SeekResponsePassages
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **passage** | **String** | The passage text, summarized to the length set by sourceResultsSummaryLength | [optional] [default to &#x27;&#x27;]
7
+ **id** | **String** | The id of the source document in the KB. | [optional] [default to &#x27;&#x27;]
8
+ **score** | **Number** | The score of the passage. | [optional]
9
+ **url** | **String** | The URL (if available) of the source document. | [optional] [default to &#x27;&#x27;]
10
+ **document** | **String** | The name of the source document. | [optional] [default to &#x27;&#x27;]
11
+ **train** | **String** | The training token for the document. Use this when calling the /train endpoint. | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,7 @@
1
+ # NeuralSeek.SeekResponseVariablesExpanded
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The variable name | [optional] [default to &#x27;&#x27;]
7
+ **value** | **String** | The variable value | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,9 @@
1
+ # NeuralSeek.SeekStreamBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **question** | **String** | The user&#x27;s question for NeuralSeek | [default to &#x27;&#x27;]
7
+ **userSession** | [**SeekStreamUserSession**](SeekStreamUserSession.md) | | [optional]
8
+ **params** | [**[SeekStreamParams]**](SeekStreamParams.md) | An array of parameters to use in evaluation of the seek when calling mAIstro during a seek. | [optional]
9
+ **options** | [**SeekStreamOptions**](SeekStreamOptions.md) | | [optional]
@@ -0,0 +1,23 @@
1
+ # NeuralSeek.SeekStreamOptions
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **personalize** | [**SeekStreamOptionsPersonalize**](SeekStreamOptionsPersonalize.md) | | [optional]
7
+ **proposalID** | **String** | Override all settings by passing a NeuralSeek Proposal ID. | [optional] [default to &#x27;&#x27;]
8
+ **seekLLM** | **String** | Override the LLM load balancer and force seek to use a specific LLM. Input the LLM code here. You must have a valid model card set up on the configure tab for the code you input. | [optional] [default to &#x27;&#x27;]
9
+ **language** | **String** | Valid values are: en, es, de, it, fr, ja, ar | [optional] [default to &#x27;&#x27;]
10
+ **filter** | **String** | Text to use as a filter against the filter field set in the KnowledgeBase configuration. Use commas to separate multiple strings for an &#x27;or&#x27; filter. You can use the filter to isolate a certain subset of documents in the knowledgebase. | [optional] [default to &#x27;&#x27;]
11
+ **lastTurn** | [**[SeekStreamOptionsLastTurn]**](SeekStreamOptionsLastTurn.md) | lastTurn is a flexible object. It is backwards compatible with the original single turn object, as well as compatible with the Watson Assistant session history format. | [optional]
12
+ **promptEngineering** | **String** | Enable Prompt engineering. Valid values are the strings &#x27;true&#x27; and &#x27;false&#x27; | [optional] [default to &#x27;&#x27;]
13
+ **promptEngineeringPhrase** | **String** | Prepend a phrase to cleansed user input. Must enable Prompt Engineering inside the NeuralSeek \&quot;Configure\&quot; page | [optional] [default to &#x27;&#x27;]
14
+ **answerLength** | **Number** | The verbosity of the answer. A whole number 1-4 | [optional]
15
+ **url** | **String** | URL of the current page when using with a web-based Virtual Agent | [optional] [default to &#x27;&#x27;]
16
+ **stump** | **String** | Stump Speech text. Fallback for when all else fails. | [optional] [default to &#x27;&#x27;]
17
+ **includeSourceResults** | **Boolean** | Include generation source results. Defaults to false. | [optional] [default to false]
18
+ **includeHighlights** | **Boolean** | Include highlights from source results. Defaults to false. | [optional] [default to false]
19
+ **includeSourceResultsFormatted** | **Boolean** | Include generation source results, and output them into a formatted string. Defaults to false. | [optional] [default to false]
20
+ **sourceResultsNumber** | **Number** | When including source results, how many to include.&#x27; | [optional] [default to 3]
21
+ **sourceResultsSummaryLength** | **Number** | When including source results, how long of a summary to include.&#x27; | [optional] [default to 100]
22
+ **returnVariables** | **Boolean** | Return the final state of all variables in a dense object | [optional] [default to false]
23
+ **returnVariablesExpanded** | **Boolean** | Return the final state of all variables in the same format as the input params | [optional] [default to false]
@@ -0,0 +1,7 @@
1
+ # NeuralSeek.SeekStreamOptionsLastTurn
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **input** | **String** | The user input | [optional] [default to &#x27;&#x27;]
7
+ **response** | **String** | The system response. Text strings only here. | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,10 @@
1
+ # NeuralSeek.SeekStreamOptionsPersonalize
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **preferredName** | **String** | The name the user should be referred to by | [optional] [default to &#x27;&#x27;]
7
+ **noWelcome** | **String** | The user has already been welcomed, do not re-welcome. Valid value is &#x27;true&#x27; or &#x27;false&#x27;. Default value is &#x27;false&#x27;. | [optional] [default to &#x27;&#x27;]
8
+ **forceFirstPerson** | **String** | Use a first-person speaking style, even if no preferredName is set. Valid value is &#x27;true&#x27; or &#x27;false&#x27;. Default value is &#x27;false&#x27;. | [optional] [default to &#x27;&#x27;]
9
+ **products** | **[String]** | An array of products this customer currently consumes from your company | [optional]
10
+ **additionalDetails** | **String** | Additional details to pass to language generation | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,7 @@
1
+ # NeuralSeek.SeekStreamParams
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | The parameter name | [optional] [default to &#x27;&#x27;]
7
+ **value** | **String** | The parameter value | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,7 @@
1
+ # NeuralSeek.SeekStreamUserSession
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **metadata** | [**SeekStreamUserSessionMetadata**](SeekStreamUserSessionMetadata.md) | | [optional]
7
+ **system** | [**SeekStreamUserSessionSystem**](SeekStreamUserSessionSystem.md) | | [optional]
@@ -0,0 +1,6 @@
1
+ # NeuralSeek.SeekStreamUserSessionMetadata
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **userId** | **String** | A unique user identifier. | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,6 @@
1
+ # NeuralSeek.SeekStreamUserSessionSystem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **sessionId** | **String** | A session identifier for the defined user. | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,46 @@
1
+ # NeuralSeek.ServiceTestApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**servicetest**](ServiceTestApi.md#servicetest) | **GET** /test | Service check
8
+
9
+ <a name="servicetest"></a>
10
+ # **servicetest**
11
+ > servicetest()
12
+
13
+ Service check
14
+
15
+ Responds 200
16
+
17
+ ### Example
18
+ ```javascript
19
+ import {NeuralSeek} from 'neuralSeek';
20
+
21
+ let apiInstance = new NeuralSeek.ServiceTestApi();
22
+ apiInstance.servicetest((error, data, response) => {
23
+ if (error) {
24
+ console.error(error);
25
+ } else {
26
+ console.log('API called successfully.');
27
+ }
28
+ });
29
+ ```
30
+
31
+ ### Parameters
32
+ This endpoint does not need any parameter.
33
+
34
+ ### Return type
35
+
36
+ null (empty response body)
37
+
38
+ ### Authorization
39
+
40
+ No authorization required
41
+
42
+ ### HTTP request headers
43
+
44
+ - **Content-Type**: Not defined
45
+ - **Accept**: Not defined
46
+
@@ -0,0 +1,6 @@
1
+ # NeuralSeek.TestBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **file** | **Blob** | | [optional]
@@ -0,0 +1,6 @@
1
+ # NeuralSeek.TestBody1
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **proposalID** | **String** | An optional Proposal ID to use for the test | [optional] [default to &#x27;&#x27;]
@@ -0,0 +1,107 @@
1
+ # NeuralSeek.TestQuestionsApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**getTestResults**](TestQuestionsApi.md#getTestResults) | **GET** /getTestResults | Get Test Results
8
+ [**test**](TestQuestionsApi.md#test) | **POST** /test | Test questions via batch upload
9
+
10
+ <a name="getTestResults"></a>
11
+ # **getTestResults**
12
+ > getTestResults()
13
+
14
+ Get Test Results
15
+
16
+ Retrieve an results from the test endpoint
17
+
18
+ ### Example
19
+ ```javascript
20
+ import {NeuralSeek} from 'neuralSeek';
21
+ let defaultClient = NeuralSeek.ApiClient.instance;
22
+
23
+ // Configure API key authorization: apiKey
24
+ let apiKey = defaultClient.authentications['apiKey'];
25
+ apiKey.apiKey = 'YOUR API KEY';
26
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
27
+ //apiKey.apiKeyPrefix = 'Token';
28
+
29
+ let apiInstance = new NeuralSeek.TestQuestionsApi();
30
+ apiInstance.getTestResults((error, data, response) => {
31
+ if (error) {
32
+ console.error(error);
33
+ } else {
34
+ console.log('API called successfully.');
35
+ }
36
+ });
37
+ ```
38
+
39
+ ### Parameters
40
+ This endpoint does not need any parameter.
41
+
42
+ ### Return type
43
+
44
+ null (empty response body)
45
+
46
+ ### Authorization
47
+
48
+ [apiKey](../README.md#apiKey)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: Not defined
54
+
55
+ <a name="test"></a>
56
+ # **test**
57
+ > test(opts)
58
+
59
+ Test questions via batch upload
60
+
61
+ Test questions via batch upload
62
+
63
+ ### Example
64
+ ```javascript
65
+ import {NeuralSeek} from 'neuralSeek';
66
+ let defaultClient = NeuralSeek.ApiClient.instance;
67
+
68
+ // Configure API key authorization: apiKey
69
+ let apiKey = defaultClient.authentications['apiKey'];
70
+ apiKey.apiKey = 'YOUR API KEY';
71
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
72
+ //apiKey.apiKeyPrefix = 'Token';
73
+
74
+ let apiInstance = new NeuralSeek.TestQuestionsApi();
75
+ let opts = {
76
+ 'file': "file_example", // Blob |
77
+ 'body': new NeuralSeek.TestBody1() // TestBody1 | The questions csv. Must adhere to the template https://api.neuralseek.com/q.csv After upload you will receive a 202 response and the server will begin processing. Check for your completed results on the getTestResults endpoint.
78
+ };
79
+ apiInstance.test(opts, (error, data, response) => {
80
+ if (error) {
81
+ console.error(error);
82
+ } else {
83
+ console.log('API called successfully.');
84
+ }
85
+ });
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ Name | Type | Description | Notes
91
+ ------------- | ------------- | ------------- | -------------
92
+ **file** | **Blob**| | [optional]
93
+ **body** | [**TestBody1**](TestBody1.md)| The questions csv. Must adhere to the template https://api.neuralseek.com/q.csv After upload you will receive a 202 response and the server will begin processing. Check for your completed results on the getTestResults endpoint. | [optional]
94
+
95
+ ### Return type
96
+
97
+ null (empty response body)
98
+
99
+ ### Authorization
100
+
101
+ [apiKey](../README.md#apiKey)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: multipart/form-data, application/json
106
+ - **Accept**: Not defined
107
+
@@ -0,0 +1,7 @@
1
+ # NeuralSeek.TrainBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **train** | **String** | The training token. Get this from passages/train | [optional] [default to &#x27;&#x27;]
7
+ **score** | **Number** | The relevancy score. An integer, 0-100 | [optional]
@@ -0,0 +1,58 @@
1
+ # NeuralSeek.TrainKBApi
2
+
3
+ All URIs are relative to *https://api.neuralseek.com/v1/{instance}*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**train**](TrainKBApi.md#train) | **POST** /train | Submit KnowledgeBase Training
8
+
9
+ <a name="train"></a>
10
+ # **train**
11
+ > train(body)
12
+
13
+ Submit KnowledgeBase Training
14
+
15
+ Submit KnowledgeBase Training
16
+
17
+ ### Example
18
+ ```javascript
19
+ import {NeuralSeek} from 'neuralSeek';
20
+ let defaultClient = NeuralSeek.ApiClient.instance;
21
+
22
+ // Configure API key authorization: apiKey
23
+ let apiKey = defaultClient.authentications['apiKey'];
24
+ apiKey.apiKey = 'YOUR API KEY';
25
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
26
+ //apiKey.apiKeyPrefix = 'Token';
27
+
28
+ let apiInstance = new NeuralSeek.TrainKBApi();
29
+ let body = new NeuralSeek.TrainBody(); // TrainBody | The request object. Must include the question and a context.
30
+
31
+ apiInstance.train(body, (error, data, response) => {
32
+ if (error) {
33
+ console.error(error);
34
+ } else {
35
+ console.log('API called successfully.');
36
+ }
37
+ });
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ Name | Type | Description | Notes
43
+ ------------- | ------------- | ------------- | -------------
44
+ **body** | [**TrainBody**](TrainBody.md)| The request object. Must include the question and a context. |
45
+
46
+ ### Return type
47
+
48
+ null (empty response body)
49
+
50
+ ### Authorization
51
+
52
+ [apiKey](../README.md#apiKey)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json
57
+ - **Accept**: Not defined
58
+