diff --git a/dotCMS/hotfix_tracking.md b/dotCMS/hotfix_tracking.md index c55c17fb09e9..f436a001b6f6 100644 --- a/dotCMS/hotfix_tracking.md +++ b/dotCMS/hotfix_tracking.md @@ -46,4 +46,5 @@ This maintenance release includes the following code fixes: 40. https://github.com/dotCMS/core/pull/28781 : Extracting logic to truncate first 400 chars from prompt. #28781 41. https://github.com/dotCMS/core/issues/28719 : Write Postman Tests for Generative AI Endpoints #28719 42. https://github.com/dotCMS/core/issues/28770 : dotAI: register EmbeddingContentListener #28770 -43. https://github.com/dotCMS/core/pull/28929 : Fixing issues detected by Sonar #28929 \ No newline at end of file +43. https://github.com/dotCMS/core/pull/28929 : Fixing issues detected by Sonar #28929 +44. https://github.com/dotCMS/core/issues/28721 : Write Postman Tests for Embeddings AI Endpoints #28721 \ No newline at end of file diff --git a/dotCMS/src/main/java/com/dotcms/ai/api/AsyncEmbeddingsCallStrategy.java b/dotCMS/src/main/java/com/dotcms/ai/api/AsyncEmbeddingsCallStrategy.java new file mode 100644 index 000000000000..0477443ac1d9 --- /dev/null +++ b/dotCMS/src/main/java/com/dotcms/ai/api/AsyncEmbeddingsCallStrategy.java @@ -0,0 +1,29 @@ +package com.dotcms.ai.api; + +import com.dotcms.ai.rest.forms.EmbeddingsForm; +import com.dotcms.ai.util.OpenAIThreadPool; +import com.dotmarketing.portlets.contentlet.model.Contentlet; + +import java.util.List; + +/** + * The AsyncEmbeddingsCallStrategy class is responsible for embedding contentlets in an asynchronous manner. + * + * @author vico + */ +public class AsyncEmbeddingsCallStrategy implements EmbeddingsCallStrategy { + + @Override + public void bulkEmbed(final List inodes, final EmbeddingsForm embeddingsForm) { + OpenAIThreadPool.submit(new BulkEmbeddingsRunner(inodes, embeddingsForm)); + } + + @Override + public void embed(final EmbeddingsAPIImpl embeddingsAPI, + final Contentlet contentlet, + final String content, + final String indexName) { + OpenAIThreadPool.submit(new EmbeddingsRunner(embeddingsAPI, contentlet, content, indexName)); + } + +} \ No newline at end of file diff --git a/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsAPIImpl.java b/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsAPIImpl.java index aa32672f9361..db82ac7bfc00 100644 --- a/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsAPIImpl.java +++ b/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsAPIImpl.java @@ -94,7 +94,7 @@ public int deleteByQuery(@NotNull final String deleteQuery, final Optional inodes, EmbeddingsForm embeddingsForm); + + /** + * Embeds the content of a contentlet. + * + * @param embeddingsAPI the EmbeddingsAPIImpl instance to use + * @param contentlet the contentlet to embed + * @param content the content to embed + * @param indexName the index name to use + */ + void embed(EmbeddingsAPIImpl embeddingsAPI, Contentlet contentlet, String content, String indexName); + + /** + * Resolves the appropriate embedding strategy based on the current environment. + * + * @return the EmbeddingsCallStrategy implementation to use + */ + static EmbeddingsCallStrategy resolveStrategy() { + return ConfigUtils.isDevMode() ? new SyncEmbeddingsCallStrategy() : new AsyncEmbeddingsCallStrategy(); + } + +} \ No newline at end of file diff --git a/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsRunner.java b/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsRunner.java index 238ef6a82283..9803d405b167 100644 --- a/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsRunner.java +++ b/dotCMS/src/main/java/com/dotcms/ai/api/EmbeddingsRunner.java @@ -70,7 +70,7 @@ public void run() { if (totalTokens < splitAtTokens) { buffer.append(sentence.trim()).append(" "); } else { - save(buffer); + saveEmbedding(buffer.toString()); buffer.setLength(0); buffer.append(sentence.trim()).append(" "); totalTokens = tokenCount; @@ -78,7 +78,7 @@ public void run() { } if (buffer.toString().split("\\s+").length > 0) { - save(buffer); + saveEmbedding(buffer.toString()); } } catch (Exception e) { if (ConfigService.INSTANCE.config().getConfigBoolean(AppKeys.DEBUG_LOGGING)) { @@ -89,18 +89,13 @@ public void run() { } } - private void save(StringBuilder buffer) { - saveEmbedding(buffer.toString().trim(), contentlet, indexName); - } - - private void saveEmbedding(@NotNull final String content, - @NotNull final Contentlet contentlet, - final String indexName) { - if (UtilMethods.isEmpty(content)) { + private void saveEmbedding(@NotNull final String initial) { + if (UtilMethods.isEmpty(initial)) { return; } - if (embeddingsAPI.embeddingExists(contentlet.getInode(), indexName, content)) { + final String normalizedContent = initial.trim(); + if (embeddingsAPI.embeddingExists(contentlet.getInode(), indexName, normalizedContent)) { Logger.info( this.getClass(), "embedding already exists for content:" @@ -110,9 +105,9 @@ private void saveEmbedding(@NotNull final String content, return; } - final Tuple2> embeddings = embeddingsAPI.pullOrGenerateEmbeddings(content); + final Tuple2> embeddings = embeddingsAPI.pullOrGenerateEmbeddings(normalizedContent); if (embeddings._2.isEmpty()) { - Logger.info(this.getClass(), "NO TOKENS for " + contentlet.getContentType().variable() + " content:" + content); + Logger.info(this.getClass(), "NO TOKENS for " + contentlet.getContentType().variable() + " content:" + normalizedContent); return; } @@ -124,7 +119,7 @@ private void saveEmbedding(@NotNull final String content, .withTitle(contentlet.getTitle()) .withIdentifier(contentlet.getIdentifier()) .withHost(contentlet.getHost()) - .withExtractedText(content) + .withExtractedText(normalizedContent) .withIndexName(indexName) .withEmbeddings(embeddings._2).build(); diff --git a/dotCMS/src/main/java/com/dotcms/ai/api/SyncEmbeddingsCallStrategy.java b/dotCMS/src/main/java/com/dotcms/ai/api/SyncEmbeddingsCallStrategy.java new file mode 100644 index 000000000000..4b8e4921ca27 --- /dev/null +++ b/dotCMS/src/main/java/com/dotcms/ai/api/SyncEmbeddingsCallStrategy.java @@ -0,0 +1,27 @@ +package com.dotcms.ai.api; + +import com.dotcms.ai.rest.forms.EmbeddingsForm; +import com.dotmarketing.portlets.contentlet.model.Contentlet; + +import java.util.List; + +/** + * The SyncEmbeddingsCallStrategy class is responsible for embedding contentlets in a synchronous manner. + * + * @author vico + */ +public class SyncEmbeddingsCallStrategy implements EmbeddingsCallStrategy { + + @Override + public void bulkEmbed(final List inodes, final EmbeddingsForm embeddingsForm) { + new BulkEmbeddingsRunner(inodes, embeddingsForm).run(); + } + + @Override + public void embed(final EmbeddingsAPIImpl embeddingsAPI, + final Contentlet contentlet, + final String content, + final String indexName) { + new EmbeddingsRunner(embeddingsAPI, contentlet, content, indexName).run(); + } +} \ No newline at end of file diff --git a/dotCMS/src/main/java/com/dotcms/ai/db/EmbeddingsFactory.java b/dotCMS/src/main/java/com/dotcms/ai/db/EmbeddingsFactory.java index 06929decce45..fd4557bf74f3 100644 --- a/dotCMS/src/main/java/com/dotcms/ai/db/EmbeddingsFactory.java +++ b/dotCMS/src/main/java/com/dotcms/ai/db/EmbeddingsFactory.java @@ -39,35 +39,15 @@ public class EmbeddingsFactory { public static final Lazy impl = Lazy.of(EmbeddingsFactory::new); private EmbeddingsFactory() { - initVectorExtension(); - initVectorDbTable(); + initVector(); } /** * Initializes the PGVector extension in the database. - * This method is called when the class is instantiated. */ - public void initVectorExtension() { - if (!doesExtensionExist()) { - Logger.info(EmbeddingsFactory.class, "Adding PGVector extension to database"); - runSQL(EmbeddingsSQL.INIT_VECTOR_EXTENSION); - } else { - Logger.info(EmbeddingsFactory.class, "PGVector exists, skipping extension installation"); - } - } - - /** - * Initializes the database table for storing embeddings. - * This method is called when the class is instantiated. - */ - public void initVectorDbTable() { - try { - internalInitVectorDbTable(); - } catch (Exception e) { - Logger.info(EmbeddingsFactory.class, "Create Table Failed : " + e.getMessage()); - moveVectorDbTable(); - internalInitVectorDbTable(); - } + public void initVector() { + initVectorExtension(); + initVectorDbTable(); } /** @@ -119,6 +99,33 @@ private boolean doesExtensionExist() { } } + /** + * Initializes the PGVector extension in the database. + * This method is called when the class is instantiated. + */ + private void initVectorExtension() { + if (!doesExtensionExist()) { + Logger.info(EmbeddingsFactory.class, "Adding PGVector extension to database"); + runSQL(EmbeddingsSQL.INIT_VECTOR_EXTENSION); + } else { + Logger.info(EmbeddingsFactory.class, "PGVector exists, skipping extension installation"); + } + } + + /** + * Initializes the database table for storing embeddings. + * This method is called when the class is instantiated. + */ + private void initVectorDbTable() { + try { + internalInitVectorDbTable(); + } catch (Exception e) { + Logger.info(EmbeddingsFactory.class, "Create Table Failed : " + e.getMessage()); + moveVectorDbTable(); + internalInitVectorDbTable(); + } + } + /** * Adds the PGvector type to the SQLConnection * so it can be used and queried against @@ -416,10 +423,10 @@ public long countEmbeddings(final EmbeddingsDTO dto) { * @return a map of index names to counts */ public Map> countEmbeddingsByIndex() { - final StringBuilder sql = new StringBuilder(EmbeddingsSQL.COUNT_EMBEDDINGS_BY_INDEX); + final String sql = EmbeddingsSQL.COUNT_EMBEDDINGS_BY_INDEX; try (final Connection conn = getPGVectorConnection(); - final PreparedStatement statement = conn.prepareStatement(sql.toString())) { + final PreparedStatement statement = conn.prepareStatement(sql)) { final Map> results = new TreeMap<>(); final ResultSet rs = statement.executeQuery(); diff --git a/dotCMS/src/main/java/com/dotcms/ai/rest/EmbeddingsResource.java b/dotCMS/src/main/java/com/dotcms/ai/rest/EmbeddingsResource.java index 217d632c97ae..27cd05523e8e 100644 --- a/dotCMS/src/main/java/com/dotcms/ai/rest/EmbeddingsResource.java +++ b/dotCMS/src/main/java/com/dotcms/ai/rest/EmbeddingsResource.java @@ -1,16 +1,16 @@ package com.dotcms.ai.rest; import com.dotcms.ai.AiKeys; -import com.dotcms.ai.api.BulkEmbeddingsRunner; import com.dotcms.ai.api.EmbeddingsAPI; +import com.dotcms.ai.api.EmbeddingsCallStrategy; import com.dotcms.ai.db.EmbeddingsDTO; import com.dotcms.ai.rest.forms.CompletionsForm; import com.dotcms.ai.rest.forms.EmbeddingsForm; -import com.dotcms.ai.util.OpenAIThreadPool; import com.dotcms.rest.WebResource; import com.dotmarketing.business.APILocator; import com.dotmarketing.business.Role; import com.dotmarketing.common.model.ContentletSearch; +import com.dotmarketing.portlets.contentlet.business.ContentletAPI; import com.dotmarketing.util.Logger; import com.dotmarketing.util.UtilMethods; import com.dotmarketing.util.json.JSONObject; @@ -37,6 +37,12 @@ @Path("/v1/ai/embeddings") public class EmbeddingsResource { + private final ContentletAPI contentletAPI; + + public EmbeddingsResource() { + this.contentletAPI = APILocator.getContentletAPI(); + } + /** * Test endpoint for the EmbeddingsResource. * @@ -74,17 +80,12 @@ public final Response embed(@Context final HttpServletRequest request, final User user = new WebResource.InitBuilder(request, response).requiredBackendUser(true).init().getUser(); long startTime = System.currentTimeMillis(); - if (UtilMethods.isEmpty(embeddingsForm.query)) { - return Response.ok("query is required").build(); - } - try { int added = 0; int newOffset = embeddingsForm.offset; for (int i = 0; i < 10000; i++) { // searchIndex(String luceneQuery, int limit, int offset, String sortBy, User user, boolean respectFrontendRoles) - final List searchResults = APILocator - .getContentletAPI() + final List searchResults = contentletAPI .searchIndex( embeddingsForm.query + " +live:true", embeddingsForm.limit, @@ -100,15 +101,17 @@ public final Response embed(@Context final HttpServletRequest request, final List inodes = searchResults .stream() .map(ContentletSearch::getInode) - .collect(Collectors.toList()); + .collect(Collectors.toUnmodifiableList()); added += inodes.size(); - OpenAIThreadPool.submit(new BulkEmbeddingsRunner(inodes,embeddingsForm)); + + EmbeddingsCallStrategy.resolveStrategy().bulkEmbed(inodes, embeddingsForm); } final long totalTime = System.currentTimeMillis() - startTime; final Map map = Map.of( AiKeys.TIME_TO_EMBEDDINGS, totalTime + "ms", - AiKeys.TOTAL_TO_EMBED, added, AiKeys.INDEX_NAME, embeddingsForm.indexName); + AiKeys.TOTAL_TO_EMBED, added, + AiKeys.INDEX_NAME, embeddingsForm.indexName); final ResponseBuilder builder = Response.ok(map, MediaType.APPLICATION_JSON); return builder.build(); @@ -124,7 +127,7 @@ public final Response embed(@Context final HttpServletRequest request, * @param request the HttpServletRequest object. * @param response the HttpServletResponse object. * @param json the JSON object containing the data for the embeddings to be deleted. - * @return a Response object containing the result of the embeddings deletion. + * @return a Response object containing the result of the embeddings' deletion. */ @DELETE @JSONP @@ -138,8 +141,10 @@ public final Response delete(@Context final HttpServletRequest request, if (UtilMethods.isSet(() -> json.optString(AiKeys.DELETE_QUERY))){ final int numberDeleted = - EmbeddingsAPI.impl().deleteByQuery(json.optString(AiKeys.DELETE_QUERY), - Optional.ofNullable(json.optString(AiKeys.INDEX_NAME)), user); + EmbeddingsAPI.impl().deleteByQuery( + json.optString(AiKeys.DELETE_QUERY), + Optional.ofNullable(json.optString(AiKeys.INDEX_NAME)), + user); return Response.ok(Map.of(AiKeys.DELETED, numberDeleted)).build(); } @@ -152,6 +157,7 @@ public final Response delete(@Context final HttpServletRequest request, .withHost(json.optString(AiKeys.SITE)) .build(); int deleted = EmbeddingsAPI.impl().deleteEmbedding(dto); + return Response.ok(Map.of(AiKeys.DELETED, deleted)).build(); } diff --git a/dotCMS/src/main/java/com/dotcms/ai/rest/forms/CompletionsForm.java b/dotCMS/src/main/java/com/dotcms/ai/rest/forms/CompletionsForm.java index 2a927f4edd5e..305ad1504fc2 100644 --- a/dotCMS/src/main/java/com/dotcms/ai/rest/forms/CompletionsForm.java +++ b/dotCMS/src/main/java/com/dotcms/ai/rest/forms/CompletionsForm.java @@ -4,7 +4,6 @@ import com.dotcms.ai.app.AppKeys; import com.dotcms.ai.app.ConfigService; import com.dotmarketing.business.APILocator; -import com.dotmarketing.exception.DotRuntimeException; import com.dotmarketing.util.UtilMethods; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; @@ -123,7 +122,7 @@ private CompletionsForm(final Builder builder) { private String validateBuilderQuery(final String query) { if (UtilMethods.isEmpty(query)) { - throw new DotRuntimeException("query/prompt cannot be null"); + throw new IllegalArgumentException("query/prompt cannot be null"); } return String.join(" ", query.trim().split("\\s+")); } diff --git a/dotCMS/src/main/java/com/dotcms/ai/rest/forms/EmbeddingsForm.java b/dotCMS/src/main/java/com/dotcms/ai/rest/forms/EmbeddingsForm.java index c50c5007f598..2c3b346c1c61 100644 --- a/dotCMS/src/main/java/com/dotcms/ai/rest/forms/EmbeddingsForm.java +++ b/dotCMS/src/main/java/com/dotcms/ai/rest/forms/EmbeddingsForm.java @@ -4,7 +4,6 @@ import com.dotcms.ai.app.AppKeys; import com.dotcms.ai.app.ConfigService; import com.dotmarketing.business.APILocator; -import com.dotmarketing.exception.DotRuntimeException; import com.dotmarketing.util.UtilMethods; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; @@ -38,6 +37,7 @@ public class EmbeddingsForm { public List fieldsAsList(){ return Arrays.asList(fields); } + private EmbeddingsForm(Builder builder) { this.query = validateBuilderQuery(builder.query); this.limit = builder.limit; @@ -51,7 +51,7 @@ private EmbeddingsForm(Builder builder) { String validateBuilderQuery(String query) { if (UtilMethods.isEmpty(query)) { - throw new DotRuntimeException("query cannot be null"); + throw new IllegalArgumentException("query cannot be null"); } return String.join(" ", query.trim().split("\\s+")); } @@ -167,4 +167,4 @@ public EmbeddingsForm build() { } } -} +} \ No newline at end of file diff --git a/dotCMS/src/main/java/com/dotmarketing/util/ConfigUtils.java b/dotCMS/src/main/java/com/dotmarketing/util/ConfigUtils.java index 9ea6b5320334..3b091c7ac448 100644 --- a/dotCMS/src/main/java/com/dotmarketing/util/ConfigUtils.java +++ b/dotCMS/src/main/java/com/dotmarketing/util/ConfigUtils.java @@ -23,13 +23,8 @@ */ public class ConfigUtils { - - /* - * This property determine if the app is running on dev mode. - */ - public static final String DEV_MODE_KEY = "dotcms.dev.mode"; - - private final static String DEFAULT_RELATIVE_ASSET_PATH = "/assets"; + private static final String DEFAULT_RELATIVE_ASSET_PATH = "/assets"; + private static final Lazy IS_DEV_MODE = Lazy.of(() -> Config.getBooleanProperty("dotcms.dev.mode", false)); /** * Returns true if app is running on dev mode. @@ -39,7 +34,7 @@ public static boolean isDevMode () { // by default if the vars does not exists, we assume is not // running on dev mode, so it is false. - return Config.getBooleanProperty(DEV_MODE_KEY, false); + return IS_DEV_MODE.get(); } public static String getDynamicContentPath() { @@ -183,12 +178,11 @@ public static String getAssetTempPath() { public static String getDotGeneratedPath() { return dotGeneratedPath.get() + File.separator + "dotGenerated"; } - - private static Lazy dotGeneratedPath =Lazy.of(()->{ - return LOCAL.equalsIgnoreCase(Config.getStringProperty("DOTGENERATED_DEFAULT_PATH", LOCAL)) - ? ConfigUtils.getDynamicContentPath() - : ConfigUtils.getAbsoluteAssetsRootPath(); - }); + + private static Lazy dotGeneratedPath =Lazy.of(() -> + LOCAL.equalsIgnoreCase(Config.getStringProperty("DOTGENERATED_DEFAULT_PATH", LOCAL)) + ? ConfigUtils.getDynamicContentPath() + : ConfigUtils.getAbsoluteAssetsRootPath()); public static Tuple2 getDeclaredDefaultLanguage(){ diff --git a/dotcms-postman/pom.xml b/dotcms-postman/pom.xml index 33991850430b..74ef555d5cea 100644 --- a/dotcms-postman/pom.xml +++ b/dotcms-postman/pom.xml @@ -117,6 +117,9 @@ WireMock: green + + --verbose + @@ -135,6 +138,8 @@ http://wm:8080/c http://wm:8080/i ${wiremock.api.key} + http://wm:8080/e + true wiremock:wm diff --git a/dotcms-postman/src/main/resources/postman/AI.postman_collection.json b/dotcms-postman/src/main/resources/postman/AI.postman_collection.json index 426f42fa164d..1ec1eb81bb1b 100644 --- a/dotcms-postman/src/main/resources/postman/AI.postman_collection.json +++ b/dotcms-postman/src/main/resources/postman/AI.postman_collection.json @@ -1,10 +1,10 @@ { "info": { - "_postman_id": "aa4d25f0-c62e-47ea-924c-d2f51d25e6db", + "_postman_id": "587eab91-26cc-46d3-9201-cd48835f9d83", "name": "AI", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "11174695", - "_collection_link": "https://codigami.postman.co/workspace/dotcms2~bd48d5e8-9590-4fc6-96fc-68937fcf781b/collection/11174695-aa4d25f0-c62e-47ea-924c-d2f51d25e6db?action=share&source=collection_link&creator=11174695" + "_collection_link": "https://codigami.postman.co/workspace/dotcms3~8f7cac94-a873-452a-ad57-a0a3b21c239a/collection/11174695-587eab91-26cc-46d3-9201-cd48835f9d83?action=share&source=collection_link&creator=11174695" }, "item": [ { @@ -88,7 +88,7 @@ "pm.test('Text is generated', function () {", " pm.expect(jsonData.choices, 'Choices are included in dotAI response').not.undefined;", " pm.expect(jsonData.choices, 'Choices are included in dotAI respons are not empty').not.empty;", - " pm.expect(jsonData.choices[0].text).contains('The theory of relativity, developed by Albert Einstein, consists of')", + " pm.expect(jsonData.choices[0].text).contains('The FIFA World Cup in 2018 was won by the French national football team')", "});", "" ], @@ -122,7 +122,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"prompt\": \"What is the theory of relativity?\"\n}", + "raw": "{\n \"prompt\": \"Who won the FIFA World Cup in 2018?\"\n}", "options": { "raw": { "language": "json" @@ -217,8 +217,8 @@ "listen": "test", "script": { "exec": [ - "pm.test('Status code should be 500', function () {", - " pm.response.to.have.status(500);", + "pm.test('Status code should be 400', function () {", + " pm.response.to.have.status(400);", "});", "", "const jsonData = pm.response.json();", @@ -475,31 +475,998 @@ "response": [] } ] + }, + { + "name": "Embeddings", + "item": [ + { + "name": "Delete DB", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "", + "pm.test('DB is reset', function () {", + " pm.expect(jsonData.created, 'DB is deleted and created').equals(true);", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings/db", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings", + "db" + ] + } + }, + "response": [] + }, + { + "name": "Test", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "", + "pm.test('Type is returned', function () {", + " pm.expect(jsonData.type, 'Type is \"embeddings\"').equals('embeddings');", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings/test", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings", + "test" + ] + } + }, + "response": [] + }, + { + "name": "Create Content Type", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "const seoContentTypeId = jsonData.entity[0].id;", + "pm.collectionVariables.set('seoContentTypeId', seoContentTypeId);", + "const seoContentTypeVar = jsonData.entity[0].variable;", + "pm.collectionVariables.set('seoContentTypeVar', seoContentTypeVar);", + "", + "const seos = JSON.parse(pm.collectionVariables.get('seos') || '[]');", + "const seoIndex = pm.collectionVariables.get('seoIndex');", + "const currentSeo = seos[seoIndex];", + "if (currentSeo) {", + " currentSeo.seoContentTypeId = seoContentTypeId;", + " currentSeo.seoContentTypeVar = seoContentTypeVar;", + " pm.collectionVariables.set('seoText', currentSeo.text);", + " pm.collectionVariables.set('seos', JSON.stringify(seos, null, 2));", + "}", + "", + "console.log('seoIndex', seoIndex);", + "console.log('currentSeo', JSON.stringify(currentSeo, null, 2));", + "", + "postman.setNextRequest('Add Field to Content Type');", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "const seoIndex = parseInt(pm.collectionVariables.get('seoIndex') || '0');", + "", + " if (seoIndex === 0) {", + " pm.collectionVariables.clear();", + " }", + " pm.collectionVariables.set('seoIndex', seoIndex);", + "", + "const initialSeos = [", + " {", + " id: 'stock-market',", + " text: 'The stock market has shown significant volatility over the past few months. Analysts attribute this to geopolitical tensions and economic uncertainty. Investors are advised to diversify their portfolios to mitigate risks.'", + " },", + " {", + " id: 'popular-novel',", + " text: 'J.K. Rowling\\'s \\'Harry Potter and the Sorcerer\\'s Stone\\' follows the journey of a young boy, Harry Potter, who discovers he is a wizard on his eleventh birthday. He attends Hogwarts School of Witchcraft and Wizardry, where he makes friends, learns about his past, and uncovers the truth about his parents\\' mysterious deaths.'", + " },", + " {", + " id: 'historical-event',", + " text: 'The signing of the Declaration of Independence on July 4, 1776, marked the Thirteen Colonies\\' formal separation from Great Britain. This historic document, primarily authored by Thomas Jefferson, outlined the colonies\\' grievances against the British crown and asserted their right to self-governance.'", + " }", + "];", + "", + "const collectionSeos = pm.collectionVariables.get('seos');", + "const seos = collectionSeos ? JSON.parse(collectionSeos) : initialSeos;", + "pm.collectionVariables.set('seoId', seos[seoIndex].id);", + "const seosJson = JSON.stringify(seos, null, 2);", + "pm.collectionVariables.set('seos', seosJson);", + "console.log('seos', seosJson);", + "", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"defaultType\":false,\n \"icon\":null,\n \"fixed\":false,\n \"system\":false,\n \"clazz\":\"com.dotcms.contenttype.model.type.ImmutableSimpleContentType\",\n \"description\":\"\",\n \"host\":\"8a7d5e23-da1e-420a-b4f0-471e7da8ea2d\",\n \"folder\":\"SYSTEM_FOLDER\",\n \"name\":\"{{seoId}}-ContentType\",\n \"systemActionMappings\":{\"NEW\":\"\"},\n \"workflow\":[\"d61a59e1-a49c-46f2-a929-db2b4bfa88b2\"]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v1/contenttype", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "contenttype" + ] + } + }, + "response": [] + }, + { + "name": "Add Field to Content Type", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "postman.setNextRequest('Create Contentlet');" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"layout\":[\n {\"divider\":{\n \"clazz\":\"com.dotcms.contenttype.model.field.ImmutableRowField\",\n \"contentTypeId\":\"{{seoContentTypeId}}\",\n \"dataType\":\"SYSTEM\",\n \"fieldContentTypeProperties\":[],\n \"fieldType\":\"Row\",\n \"fieldTypeLabel\":\"Row\",\n \"fieldVariables\":[],\n \"fixed\":false,\n \"iDate\":1667572217000,\n \"indexed\":false,\n \"listed\":false,\n \"modDate\":1667572217000,\n \"name\":\"Row Field\",\n \"readOnly\":false,\n \"required\":false,\n \"searchable\":false,\n \"sortOrder\":-1,\n \"unique\":false},\n \"columns\":[\n {\n \"columnDivider\":{\n \"clazz\":\"com.dotcms.contenttype.model.field.ImmutableColumnField\",\n \"contentTypeId\":\"{{seoContentTypeId}}\",\n \"dataType\":\"SYSTEM\",\n \"fieldContentTypeProperties\":[],\n \"fieldType\":\"Column\",\n \"fieldTypeLabel\":\"Column\",\n \"fieldVariables\":[],\n \"fixed\":false,\n \"iDate\":1667572217000,\n \"indexed\":false,\n \"listed\":false,\n \"modDate\":1667572217000,\n \"name\":\"Column Field\",\n \"readOnly\":false,\n \"required\":false,\n \"searchable\":false,\n \"sortOrder\":-1,\n \"unique\":false\n },\n \"fields\":[\n {\n \"clazz\":\"com.dotcms.contenttype.model.field.ImmutableTextField\",\n \"name\":\"seo\",\n \"dataType\":\"TEXT\",\n \"regexCheck\":\"\",\n \"defaultValue\":\"\",\n \"hint\":\"\",\n \"required\":false,\n \"searchable\":false,\n \"indexed\":false,\n \"listed\":false,\n \"unique\":false,\n \"id\":null\n }\n ]\n }\n ]\n }\n ]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v3/contenttype/{{seoContentTypeId}}/fields/move", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v3", + "contenttype", + "{{seoContentTypeId}}", + "fields", + "move" + ] + } + }, + "response": [] + }, + { + "name": "Create Contentlet", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Status code should be ok 200\", function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "const seos = JSON.parse(pm.collectionVariables.get('seos') || '[]');", + "", + "let seoIndex = pm.collectionVariables.get('seoIndex');", + "console.log('seoIndex', seoIndex);", + "", + "const currentSeo = seos[seoIndex];", + "if (currentSeo) {", + " if (!currentSeo.contentlets) {", + " currentSeo.contentlets = [];", + " }", + " currentSeo.contentlets.push(jsonData.entity.identifier);", + " console.log('currentSeo', JSON.stringify(currentSeo, null, 2));", + " pm.collectionVariables.set('seos', JSON.stringify(seos, null, 2));", + "}", + "", + "seoIndex++;", + "pm.collectionVariables.set('seoIndex', seoIndex);", + "console.log('New seoIndex', seoIndex);", + "let nextRequest = null;", + "if (seoIndex < seos.length) {", + " console.log('Continuing with next SEO');", + " nextRequest = 'Create Content Type'", + "} else {", + " console.log('SEO loading done');", + "pm.collectionVariables.set('seoIndex', null);", + " pm.collectionVariables.set('seoId', null);", + " pm.collectionVariables.set('seoContentTypeId', null);", + " pm.collectionVariables.set('seoContentTypeVar', null);", + " pm.collectionVariables.set('seoText', null);", + " nextRequest = 'Create Embeddings without query';", + "}", + "postman.setNextRequest(nextRequest);", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{ \n \"contentlet\" : {\n \"title\" : \"content_{{seoId}}\",\n \"languageId\" : 1,\n \"stInode\": \"{{seoContentTypeId}}\",\n \"seo\": \"{{seoText}}\"\n }\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v1/workflow/actions/default/fire/PUBLISH", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "workflow", + "actions", + "default", + "fire", + "PUBLISH" + ] + } + }, + "response": [] + }, + { + "name": "Create Embeddings without query", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 400', function () {", + " pm.response.to.have.status(400);", + "});", + "", + "const jsonData = pm.response.json();", + "", + "pm.test('Error message is returned', function () {", + " pm.expect(jsonData.message, 'Error message is included in response').equals('query cannot be null');", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "packages": {}, + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings" + ] + } + }, + "response": [] + }, + { + "name": "Create Embeddings", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "", + "const seos = JSON.parse(pm.collectionVariables.get('seos') || '[]');", + "let seoIndex = parseInt(pm.collectionVariables.get('seoIndex') || '0');", + "const currentSeo = seos[seoIndex];", + "if (currentSeo) {", + " if (!currentSeo.embedded) {", + " currentSeo.embedded = jsonData.totalToEmbed > 0;", + " }", + " ", + " console.log('currentSeo', JSON.stringify(currentSeo, null, 2));", + " pm.collectionVariables.set('seos', JSON.stringify(seos, null, 2));", + "}", + "", + "pm.test('Emebeddings are created', function () {", + " pm.expect(jsonData.indexName, 'Index name should be \"default\"').equals('default');", + " pm.expect(parseInt(jsonData.timeToEmbeddings.split('ms')[0]), 'Time to embeddings must be greater than zero').greaterThan(0);", + " if (currentSeo.embedded) {", + " pm.expect(jsonData.totalToEmbed, 'Total to embed is greater than zero').greaterThan(0);", + " } else {", + " pm.expect(jsonData.totalToEmbed, 'Total to embed is greater than zero').equals(0);", + " }", + "});", + "", + "seoIndex++;", + "pm.collectionVariables.set('seoIndex', seoIndex);", + "console.log('New seoIndex', seoIndex);", + "let nextRequest = null;", + "if (seoIndex < seos.length) {", + " console.log('Continuing with next SEO');", + " nextRequest = 'Create Embeddings';", + "} else {", + " console.log('Embeddings creation done');", + " pm.collectionVariables.set('seoIndex', null);", + " pm.collectionVariables.set('seoContentTypeVar', null);", + " pm.collectionVariables.set('seoText', null);", + " nextRequest = 'Count Embeddings without prompt';", + "}", + "postman.setNextRequest(nextRequest);", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "const seos = JSON.parse(pm.collectionVariables.get('seos') || '[]');", + "const seoIndex = parseInt(pm.collectionVariables.get('seoIndex') || '0');", + "const currentSeo = seos[seoIndex];", + "if (currentSeo) {", + " pm.collectionVariables.set('seoContentTypeVar', currentSeo.seoContentTypeVar);", + "}", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"query\": \"+contentType:{{seoContentTypeVar}}\",\n \"fields\": \"seo\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings" + ] + } + }, + "response": [] + }, + { + "name": "Count Embeddings without prompt", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 400', function () {", + " pm.response.to.have.status(400);", + "});", + "", + "const jsonData = pm.response.json();", + "", + "pm.test('Error message is returned', function () {", + " pm.expect(jsonData.message).equals('query/prompt cannot be null')", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"prompt\": \"\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings/count", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings", + "count" + ] + } + }, + "response": [] + }, + { + "name": "Count Embeddings", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "", + "pm.test('Embeddings are counted', function () {", + " pm.expect(jsonData.embeddingsCount, 'Embeddings count should be 1').equals(1);", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "const seos = JSON.parse(pm.collectionVariables.get('seos'));", + "pm.collectionVariables.set('seoContentTypeVar', seos[0].seoContentTypeVar);", + "pm.collectionVariables.set('seoText', seos[0].text);" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"prompt\": \"{{seoText}}\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings/count", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings", + "count" + ] + } + }, + "response": [] + }, + { + "name": "Index Count", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "const seos = JSON.parse(pm.collectionVariables.get('seos'));", + "", + "pm.test('Embeddings are counted by index', function () {", + " const defaultIndexCount = jsonData.indexCount['default'];", + " pm.expect(defaultIndexCount, 'Embeddings by index count should exist').not.undefined;", + " pm.expect(defaultIndexCount.contentTypes.split(',').length, 'Embeddings by index content types splitted by comma should be 3').equals(3);", + " pm.expect(defaultIndexCount.contents, 'Embeddings by index contents count should be 3').equals(3);", + " seos.forEach(seo => pm.expect(defaultIndexCount.contentTypes.includes(seo.seoContentTypeVar), 'Each seo content type should exist in resonse `contentTypes`').is.true);", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings/indexCount", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings", + "indexCount" + ] + } + }, + "response": [] + }, + { + "name": "Delete Embeddings", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test('Status code should be ok 200', function () {", + " pm.response.to.have.status(200);", + "});", + "", + "const jsonData = pm.response.json();", + "", + "pm.test('Embeddings are deleted', function () {", + " pm.expect(jsonData.deleted, 'Number of embeddings deleted must be greater than zero').greaterThan(0);", + "});", + "" + ], + "type": "text/javascript", + "packages": {} + } + }, + { + "listen": "prerequest", + "script": { + "exec": [ + "const seos = JSON.parse(pm.collectionVariables.get('seos'));", + "pm.collectionVariables.set('seoContentTypeVar', seos[0].seoContentTypeVar);", + "" + ], + "type": "text/javascript", + "packages": {} + } + } + ], + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "admin", + "type": "string" + }, + { + "key": "username", + "value": "admin@dotcms.com", + "type": "string" + } + ] + }, + "method": "DELETE", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"deleteQuery\": \"+contentType:{{seoContentTypeVar}}\",\n \"indexName\": \"default\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{serverURL}}/api/v1/ai/embeddings", + "host": [ + "{{serverURL}}" + ], + "path": [ + "api", + "v1", + "ai", + "embeddings" + ] + } + }, + "response": [] + } + ] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "packages": {}, + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "packages": {}, + "exec": [ + "" + ] + } } ], "variable": [ { - "key": "contentTypeID", + "key": "seoIndex", "value": "" }, { - "key": "contentTypeVAR", + "key": "seos", "value": "" }, { - "key": "contentTypeFieldID", + "key": "seoId", "value": "" }, { - "key": "contentTypeId", + "key": "seoContentTypeId", "value": "" }, { - "key": "contentTypeVar", + "key": "seoContentTypeVar", "value": "" }, { - "key": "announcementDate", + "key": "seoText", "value": "" } ] diff --git a/dotcms-postman/src/test/resources/mappings/historical-event.json b/dotcms-postman/src/test/resources/mappings/historical-event.json new file mode 100644 index 000000000000..596f851a2e87 --- /dev/null +++ b/dotcms-postman/src/test/resources/mappings/historical-event.json @@ -0,0 +1,1574 @@ +{ + "request": { + "method": "POST", + "url": "/e", + "headers": { + "Content-Type": { + "equalTo": "application/json" + }, + "Authorization": { + "equalTo": "Bearer some-api-key-1a2bc3" + } + }, + "bodyPatterns": [ + { + "matches": ".*\"model\":\"text-embedding-ada-002\",\"input\":.*791,16351,315,279,42021,315.*" + } + ] + }, + "response": { + "status": 200, + "jsonBody": { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": [ + -0.0009492633, + -0.0007335564, + -0.019092355, + -0.037156656, + -0.016191784, + 0.001082359, + -0.024220364, + 0.014882245, + -0.004617045, + -0.005381963, + 0.011534964, + 0.01811326, + -0.010378408, + -0.006327402, + -0.009907219, + 0.026851682, + 0.029788967, + -0.030865973, + 0.008126489, + -0.0043080184, + -0.021429943, + -0.011718544, + 0.008756782, + 0.021760387, + 0.032457, + 0.002865383, + 0.014502846, + -0.037107702, + 0.023718579, + 0.015053587, + 0.000099917415, + -0.0025334086, + -0.0042039896, + 0.0004061715, + -0.0409017, + 0.0014051545, + -0.024599764, + -0.013731808, + 0.012275404, + 0.0068842624, + 0.0032983266, + -0.0055930805, + -0.007710374, + -0.0056481548, + -0.0017562518, + 0.0017302446, + 0.024342751, + -0.028981214, + -0.007587987, + 0.036813974, + 0.045674786, + 0.020793531, + -0.030131651, + -0.019337127, + -0.01390315, + -0.0086466335, + -0.0047271936, + 0.00354616, + -0.00550435, + -0.004356973, + -0.005054578, + -0.005645095, + 0.0042713024, + -0.0053574857, + -0.023681862, + -0.026190793, + -0.03360744, + 0.006945456, + -0.0016277456, + 0.013756285, + 0.045038372, + 0.015567612, + 0.048734456, + 0.014074491, + 0.009760354, + -0.009876622, + -0.005489052, + -0.023914397, + -0.03762173, + -0.002210613, + -0.00064979785, + -0.010304975, + -0.00050675817, + -0.008463053, + 0.0057185274, + 0.010941387, + -0.002062219, + 0.010084679, + -0.02062219, + -0.011106609, + -0.026557954, + 0.012226449, + -0.008463053, + 0.016926106, + -0.02380425, + 0.00979095, + -0.01745237, + 0.014013298, + 0.008897526, + -0.04386346, + 0.029274942, + 0.0032340735, + -0.018358033, + -0.010702733, + -0.026288703, + -0.0035859358, + -0.0055655437, + -0.024893492, + 0.0013477856, + -0.02827137, + -0.00261296, + 0.015824623, + 0.003977574, + -0.023375895, + 0.0047730887, + -0.017342221, + -0.035614584, + -0.0132912155, + 0.0071229166, + -0.033387143, + 0.01017647, + -0.0019306531, + 0.008077535, + -0.0013890911, + 0.0025777738, + 0.00969916, + 0.007789925, + -0.009338119, + -0.003714442, + -0.001985727, + 0.013425841, + -0.004721074, + 0.0066762045, + -0.006455908, + 0.016571185, + 0.037009794, + -0.03257939, + 0.011669589, + -0.010158111, + -0.007771567, + 0.0066578467, + 0.009191255, + -0.0015818505, + -0.0038215304, + 0.0057644225, + -0.011645112, + 0.012214211, + 0.011326906, + 0.01642432, + 0.0043171975, + 0.018590568, + 0.012850623, + -0.00038245902, + 0.013303454, + 0.036471292, + 0.017733859, + 0.009589013, + 0.015029109, + 0.027218843, + 0.008946481, + 0.030743586, + -0.015567612, + 0.0124161495, + -0.009197375, + 0.021209648, + 0.023118883, + 0.003509444, + 0.010402885, + -0.0072820196, + -0.004060185, + -0.006048972, + 0.016509991, + -0.00401123, + 0.00031858837, + -0.011094371, + 0.024183648, + 0.0094972225, + 0.022152025, + -0.010513034, + -0.015555373, + -0.042957798, + 0.05017862, + 0.01250182, + 0.01567776, + -0.029544193, + -0.0020866964, + 0.027757345, + -0.004057125, + 0.0015925594, + -0.031208655, + 0.0084508145, + -0.023730816, + 0.023828726, + -0.0084997695, + -0.6579519, + -0.022090832, + 0.003227954, + 0.0033472814, + 0.0051647266, + 0.016216261, + 0.016204024, + 0.024575286, + -0.012581372, + 0.010800643, + -0.009289164, + 0.0076308222, + 0.01194496, + -0.014098969, + -0.0094972225, + -0.004647642, + -0.019557424, + -0.02314336, + 0.013535989, + 0.005140249, + 0.0039806333, + 0.012055108, + 0.00037328, + 0.0056603933, + 0.0022794558, + 0.00578584, + 0.006663966, + 0.00016311876, + -0.022237698, + 0.018957729, + -0.023559475, + -0.017097447, + -0.0009201964, + 0.016644616, + 0.03610413, + 0.00041496803, + -0.025750201, + 0.021209648, + 0.010109156, + 0.045234192, + -0.008836333, + 0.009154539, + 0.026557954, + 0.013009726, + -0.007214707, + -0.003723621, + 0.028589576, + 0.0020316222, + 0.040632445, + -0.003965335, + -0.0025165803, + -0.0028715022, + -0.020671144, + 0.012385553, + -0.010935268, + -0.007055604, + 0.014906722, + -0.00057560083, + 0.013303454, + 0.011210639, + -0.0058347946, + 0.015457463, + 0.00010269025, + 0.010213185, + -0.020463087, + 0.000057464465, + 0.0021723672, + 0.0052014426, + 0.005568603, + -0.00007921682, + -0.005908227, + 0.016069397, + -0.017807292, + -0.033019982, + 0.012385553, + 0.0011932722, + 0.02406126, + -0.005124951, + 0.0060887476, + -0.0070678424, + -0.013107635, + -0.007924551, + -0.029911354, + 0.011908243, + 0.051549356, + -0.008634395, + -0.019618617, + -0.007881715, + -0.014686426, + 0.014821052, + -0.007857238, + 0.0036165325, + 0.014821052, + -0.008512008, + -0.018272363, + 0.020218313, + 0.0051127123, + -0.023033211, + -0.0024599764, + 0.010610943, + 0.001045643, + -0.022555903, + -0.0019428917, + -0.0036410098, + 0.0077287317, + 0.004057125, + -0.0023024033, + -0.0014196879, + 0.032236706, + -0.01931265, + -0.012024512, + 0.006486505, + -0.022996496, + 0.008175444, + -0.0030948583, + -0.014319265, + 0.018321317, + -0.0032799684, + -0.01922698, + -0.016314171, + 0.02528513, + -0.0067496365, + 0.015824623, + -0.046849698, + 0.022984257, + 0.0024966924, + 0.010207066, + -0.03500265, + -0.025823632, + 0.029323898, + 0.008089773, + 0.042198997, + 0.014600756, + 0.014074491, + -0.008977078, + 0.008444695, + 0.007624703, + -0.0016935285, + -0.003971454, + 0.00625091, + -0.0113452645, + 0.009338119, + -0.011228996, + -0.011534964, + 0.0032646703, + -0.0040663043, + 0.0043141376, + -0.018235646, + -0.01939832, + 0.028295849, + -0.002268747, + 0.0048220432, + -0.029935831, + -0.01846818, + -0.012789429, + 0.001063236, + -0.003405415, + -0.012275404, + 0.018455943, + -0.014245833, + -0.01745237, + 0.02538304, + 0.012875101, + -0.014918962, + -0.0032126557, + -0.01193884, + -0.023461565, + 0.029128078, + 0.00022144377, + -0.020940395, + 0.011375861, + 0.02491797, + 0.006055091, + 0.0030076576, + 0.020365177, + 0.014808813, + -0.012373314, + -0.0134380795, + 0.026851682, + -0.004090782, + -0.0049230126, + -0.029568672, + -0.001791438, + -0.018761909, + -0.000117510535, + 0.009943934, + 0.010041844, + -0.0024890432, + 0.00030118646, + -0.0016200964, + 0.011896005, + 0.00084599934, + 0.029788967, + -0.008407979, + 0.013744047, + 0.012085705, + 0.011112729, + 0.014025537, + 0.028344803, + 0.022506949, + 0.016607901, + 0.008383501, + 0.032040887, + -0.012985248, + 0.010060202, + -0.003564518, + -0.004301899, + -0.018688478, + 0.011541083, + 0.0111984, + -0.0013217784, + 0.0058653913, + -0.01595925, + -0.01193884, + -0.0030979181, + 0.025897065, + -0.006021435, + -0.0045589115, + -0.013988821, + -0.011626754, + -0.005905167, + 0.016473275, + 0.0049046543, + 0.011118849, + -0.039065894, + 0.0028393758, + 0.0039500366, + -0.013425841, + 0.019373843, + -0.015457463, + -0.0023987829, + -0.00979707, + -0.014637471, + 0.0054095, + 0.008658872, + 0.020108165, + -0.004002051, + -0.04330048, + 0.013915389, + -0.006865904, + -0.0062845666, + 0.001782259, + 0.014209118, + -0.0021876656, + -0.01101482, + -0.0064069536, + 0.0134870345, + 0.0065171015, + -0.014098969, + 0.028785395, + 0.014074491, + 0.010415124, + -0.00063602935, + -0.0076675382, + 0.015604327, + -0.0152616445, + 0.027953165, + 0.00690262, + 0.00013443435, + 0.01821117, + 0.014172401, + -0.011932721, + 0.0069760527, + -0.008817975, + 0.005449276, + 0.008046938, + -0.00522592, + 0.010409005, + -0.003491086, + -0.01129019, + 0.0096440865, + -0.010256021, + 0.019998018, + -0.018786388, + -0.023094404, + -0.007257542, + 0.016485514, + 0.009325881, + 0.0010150463, + 0.0044089877, + -0.015384031, + 0.0008743013, + -0.0059296447, + 0.050619215, + 0.0017899082, + -0.032628343, + -0.0029372852, + 0.016350888, + -0.0061958362, + 0.034733396, + 0.0038031724, + 0.02511379, + -0.002788891, + -0.022323368, + 0.0049689077, + 0.008915884, + 0.027390184, + -0.0019949062, + -0.00025548262, + -0.0114431735, + -0.0065109823, + -0.0066456078, + 0.0004788387, + -0.007165752, + 0.045234192, + -0.0016828197, + -0.020401893, + -0.0019643095, + 0.008652753, + -0.020854725, + -0.0071963486, + 0.003331983, + -0.012789429, + -0.021283079, + -0.0046048067, + -0.024734389, + -0.0115166055, + 0.013083158, + 0.037548296, + -0.004858759, + -0.009472745, + -0.032212228, + 0.011039297, + -0.009974531, + 0.10584018, + 0.007110678, + -0.011124968, + 0.012556895, + -0.010231543, + -0.005002564, + -0.0006605067, + -0.031771634, + 0.031967454, + 0.034635488, + 0.008297831, + 0.016167307, + 0.021503376, + 0.0058837496, + -0.010941387, + 0.029152555, + 0.00513107, + -0.031086268, + -0.005075996, + -0.01576343, + -0.016767003, + -0.024391707, + 0.021185169, + 0.013927627, + -0.025064833, + -0.014098969, + 0.018615045, + 0.015298361, + 0.010213185, + 0.012924055, + -0.00410608, + -0.0012965361, + 0.0028898604, + -0.009968412, + 0.007887835, + 0.031208655, + 0.009338119, + -0.008701707, + 0.007961267, + -0.00091790163, + 0.024342751, + -0.00802246, + -0.016093876, + -0.016999539, + -0.0075145545, + 0.0031851188, + -0.012850623, + -0.0026466164, + -0.0056420355, + -0.01073333, + 0.009136181, + -0.005418679, + -0.006865904, + -0.0009936285, + 0.013144352, + 0.019900108, + 0.017060732, + 0.01166347, + -0.0010150463, + -0.00858544, + -0.016106114, + -0.042492725, + 0.027023025, + 0.0029632924, + 0.019949062, + -0.03255491, + -0.015836863, + -0.018835342, + -0.008707827, + -0.0040754834, + 0.02015712, + -0.010041844, + 0.009013794, + 0.012006153, + 0.01959414, + 0.005381963, + -0.0013049501, + 0.00018664, + 0.008144847, + 0.016081637, + -0.025603335, + -0.0345131, + -0.0018954668, + -0.008946481, + 0.00923409, + 0.035663538, + 0.0074778385, + -0.0058837496, + -0.011602277, + 0.027659437, + -0.023253508, + 0.015127019, + 0.006290686, + -0.007716493, + 0.004675179, + -0.007624703, + -0.00045742097, + -0.03556563, + -0.00038762222, + -0.020120405, + 0.0057827802, + -0.010843478, + 0.002322291, + -0.0034451908, + 0.007551271, + 0.018578328, + -0.0033075055, + 0.017378937, + -0.047069997, + -0.0022794558, + 0.01922698, + -0.03789098, + 0.0021142333, + 0.0008612977, + -0.007575748, + 0.016522229, + -0.010855717, + -0.005430918, + 0.004347794, + -0.002091286, + -0.013572706, + -0.004525255, + -0.00083605543, + 0.04134229, + -0.020169359, + 0.0073493323, + -0.030302992, + -0.0104457205, + -0.008609917, + -0.021625763, + -0.00044632968, + 0.0070372457, + -0.004684358, + 0.0043080184, + -0.022286652, + 0.02827137, + 0.0011129557, + 0.011057655, + -0.0048771175, + -0.02304545, + -0.0034788472, + -0.016558945, + -0.0047975658, + -0.0000013311367, + -0.026827205, + -0.016485514, + -0.018602807, + -0.01949623, + -0.027120933, + 0.026827205, + -0.001091538, + -0.010782285, + -0.006376357, + 0.010586466, + -0.005366665, + -0.026019452, + -0.014417175, + -0.0068169497, + 0.03431728, + 0.025138266, + -0.012067347, + -0.008218279, + 0.053066954, + 0.008879169, + -0.0013179538, + -0.0151882125, + 0.018859819, + -0.015567612, + -0.015102542, + -0.016497752, + 0.0154085085, + 0.0033748182, + 0.008622156, + 0.02304545, + 0.017232073, + 0.01427031, + -0.0068720235, + -0.009252449, + 0.009350358, + -0.040436625, + 0.015665522, + 0.007539032, + 0.009582893, + -0.010757807, + -0.028026596, + 0.0013990351, + 0.059088387, + 0.01837027, + 0.004583389, + 0.010855717, + 0.0072453036, + -0.006104046, + 0.023498282, + -0.00056871655, + -0.02025503, + -0.02379201, + 0.004173393, + -0.021723673, + -0.0132912155, + 0.0063029244, + 0.01203675, + 0.0069209784, + -0.01474762, + -0.016265217, + -0.02155233, + 0.0029082184, + -0.019826675, + 0.01594701, + -0.01931265, + -0.000012836281, + -0.00052129163, + -0.025774678, + 0.021613523, + -0.021784866, + -0.00848753, + -0.010280498, + 0.009429909, + 0.003573697, + 0.00063143985, + -0.039702304, + 0.003527802, + -0.018761909, + 0.0016200964, + -0.0027368767, + 0.024244841, + -0.0034390714, + 0.0076858965, + -0.024660958, + 0.015983727, + -0.01597149, + -0.011926602, + 0.016620139, + 0.0004497718, + 0.00653546, + -0.001044878, + -0.02060995, + 0.021026067, + -0.023914397, + -0.007379929, + 0.0132177835, + 0.018272363, + -0.019924585, + 0.0009309052, + -0.007881715, + 0.01035393, + 0.041146472, + -0.0010280499, + -0.007306497, + -0.014245833, + -0.014233595, + -0.022910824, + 0.022225458, + -0.02408574, + 0.0223968, + -0.01821117, + -0.03740143, + -0.02025503, + -0.0010685904, + -0.018027589, + 0.009185135, + -0.021356512, + -0.011700186, + -0.019520707, + 0.008273354, + -0.009827667, + 0.024709912, + -0.030743586, + 0.0003706028, + -0.0153105995, + 0.025994975, + -0.011412577, + 0.011363622, + -0.0052289795, + 0.034929216, + 0.0067435172, + 0.0049872654, + -0.009172897, + -0.009038271, + -0.014453891, + -0.0007473249, + 0.01082512, + 0.007294258, + 0.0036716065, + -0.0105191525, + 0.006498744, + -0.01708521, + -0.014698665, + -0.019765481, + 0.0014212177, + 0.0114431735, + -0.0077654477, + 0.008383501, + -0.019826675, + 0.0054003214, + 0.014074491, + 0.0072820196, + -0.016252978, + 0.018174453, + 0.006829188, + 0.01586134, + -0.007251423, + 0.03622652, + -0.0076675382, + -0.015800146, + 0.020512043, + -0.0122937625, + 0.044940464, + -0.019067876, + -0.014980155, + -0.007263662, + 0.026606908, + -0.016877152, + -0.010672136, + -0.013841957, + 0.014001059, + -0.00270475, + 0.006504863, + 0.01921474, + -0.028883304, + 0.018896535, + -0.012948533, + 0.015273883, + -0.00005464383, + 0.0039928723, + 0.01017647, + 0.0010402885, + 0.01969205, + -0.005590021, + 0.003855187, + -0.005345247, + -0.0015894996, + 0.023020973, + -0.025603335, + 0.014698665, + -0.026631387, + -0.033705346, + -0.0011894476, + 0.030914927, + -0.011767499, + -0.022103071, + 0.00970528, + 0.024220364, + 0.02893226, + 0.023498282, + 0.007918431, + -0.020548757, + -0.0028898604, + -0.00013663348, + -0.029177032, + -0.0046231644, + -0.0036532485, + 0.020010255, + 0.002406432, + 0.003032135, + -0.0012429918, + -0.031306565, + -0.0388456, + -0.0016568125, + -0.0053605456, + -0.015298361, + 0.053066954, + 0.030156128, + 0.0017837888, + 0.009270807, + 0.0022947541, + 0.003469668, + -0.005308531, + -0.013572706, + 0.034023553, + -0.0035033245, + -0.0035614583, + 0.018321317, + -0.007135155, + 0.003469668, + 0.020022495, + -0.032457, + -0.00859156, + 0.0027108695, + -0.0013049501, + 0.02063443, + -0.0050056237, + 0.0023681861, + 0.021980684, + 0.027586004, + 0.039800216, + -0.023265747, + -0.004506897, + -0.014698665, + 0.004870998, + -0.026509, + -0.020597713, + -0.034880262, + -0.014808813, + 0.0025395278, + -0.014343743, + -0.018358033, + -0.0059663607, + -0.001978078, + 0.013425841, + 0.01557985, + -0.014625233, + 0.01837027, + -0.035149515, + 0.0103478115, + 0.0024752747, + -0.0042315265, + -0.00550741, + 0.000023724411, + -0.017207596, + -0.033705346, + -0.00029583205, + 0.0038888433, + 0.007814403, + -0.028295849, + -0.0005495936, + -0.008664992, + 0.013548228, + -0.039579917, + 0.020781294, + 0.027292276, + -0.034219373, + 0.00840186, + -0.015249406, + -0.01959414, + -0.006027554, + -0.026729295, + -0.021540092, + -0.024563048, + -0.0071718716, + 0.0044732406, + -0.01763595, + -0.0022886347, + 0.01987563, + 0.0012728235, + -0.0062447907, + 0.014258072, + 0.20776397, + -0.015004632, + 0.022298891, + 0.040632445, + 0.008658872, + 0.026484521, + 0.014539562, + 0.012752714, + -0.020499803, + -0.00065094524, + -0.014417175, + 0.006541579, + -0.03341162, + 0.00041496803, + 0.011094371, + -0.0113881, + -0.01427031, + -0.031110747, + -0.042982273, + 0.0012682341, + -0.0049964446, + 0.028344803, + -0.0012712937, + -0.021050544, + 0.031771634, + -0.011602277, + -0.011161684, + 0.0134380795, + 0.0078205215, + 0.026337657, + -0.048930276, + 0.0037205613, + 0.0059969574, + 0.01597149, + -0.029568672, + -0.006951575, + 0.0018679298, + 0.009429909, + -0.007814403, + 0.017672665, + -0.0057154675, + -0.022617096, + -0.011265713, + -0.026680341, + 0.031086268, + 0.028711963, + 0.0026206092, + 0.0028975096, + -0.021760387, + 0.01474762, + -0.01605716, + -0.0030657914, + 0.010947507, + 0.023583952, + 0.008554843, + -0.011791976, + 0.024783345, + 0.018761909, + 0.013731808, + 0.0017195357, + -0.022641573, + 0.0102988565, + -0.021943968, + 0.012446746, + 0.008340666, + 0.05292009, + -0.013854195, + 0.023534998, + -0.0038796642, + -0.01977772, + -0.011027059, + -0.006865904, + -0.02482006, + -0.014404937, + -0.012850623, + -0.03032747, + 0.019165786, + 0.018725194, + -0.0075573903, + 0.0041764523, + -0.0013692033, + 0.00205304, + -0.015004632, + -0.009185135, + -0.010041844, + -0.01614283, + 0.010072441, + 0.011430935, + -0.024281558, + 0.017232073, + 0.009999009, + -0.017966395, + -0.0041917507, + 0.0045895083, + 0.0043508536, + 0.03539429, + -0.0061071054, + 0.021760387, + -0.019838914, + 0.009246329, + -0.00419787, + 0.009093345, + 0.012813907, + 0.0021371809, + -0.020071449, + 0.016314171, + -0.009429909, + -0.0012177496, + -0.0017853187, + -0.00042605936, + -0.020915918, + -0.0053942017, + 0.025603335, + 0.011534964, + 0.010537511, + 0.009062748, + -0.0010150463, + -0.024514092, + 0.0010066321, + -0.025260653, + -0.015029109, + -0.0388456, + -0.010470198, + 0.0053421874, + -0.000045584333, + -0.0116389925, + -0.010409005, + 0.04019185, + -0.0048648785, + -0.023461565, + -0.010317215, + -0.014307027, + 0.025578858, + -0.006015315, + -0.032334615, + 0.010678256, + -0.021123976, + -0.00063985394, + -0.037474863, + -0.013523751, + -0.026386613, + -0.0014632882, + -0.0053421874, + 0.010164231, + 0.010959745, + 0.00063947146, + 0.022972018, + -0.02761048, + -0.012581372, + -0.0045527923, + -0.0103722885, + -0.0011970967, + -0.007496197, + -0.0026833324, + 0.028320326, + -0.013633899, + -0.001194037, + -0.03639786, + -0.0023482984, + 0.018162213, + -0.032995503, + -0.011969437, + 0.013046442, + -0.035247423, + -0.0011779738, + 0.0008712416, + -0.14950782, + 0.018921012, + 0.03571249, + -0.005271815, + 0.021723673, + 0.0005411795, + 0.024183648, + 0.0011726193, + 0.014502846, + -0.01185317, + 0.035467718, + 0.011957198, + -0.034757875, + 0.0083773825, + -0.004620105, + 0.004965848, + -0.030596722, + 0.016216261, + 0.027071979, + 0.019532947, + 0.018455943, + -0.025823632, + 0.00905663, + -0.020144882, + -0.0015894996, + -0.01595925, + -0.012703759, + 0.008897526, + 0.00289292, + -0.0011986266, + -0.012226449, + 0.011241236, + 0.0055992, + -0.010231543, + 0.0016812899, + -0.0013225432, + -0.01614283, + -0.012740475, + -0.007392168, + 0.009876622, + 0.01708521, + -0.004093841, + 0.023437088, + -0.0076063448, + -0.008873049, + 0.009729757, + 0.0018709895, + 0.023473805, + 0.020891441, + 0.000036979007, + -0.007496197, + -0.032236706, + -0.02518722, + 0.011743021, + 0.022935303, + 0.027071979, + -0.009221852, + 0.02284963, + -0.011100491, + -0.0019214741, + 0.002492103, + -0.012397791, + -0.0049995044, + 0.0022932242, + -0.002865383, + -0.002482924, + -0.021062782, + 0.0015680819, + -0.01624074, + -0.0014380459, + 0.010213185, + -0.05010519, + 0.014111208, + -0.019373843, + 0.008444695, + 0.018676238, + -0.015555373, + 0.015090303, + 0.0008574731, + -0.019043399, + -0.009589013, + 0.02155233, + -0.017391177, + 0.004965848, + 0.010476317, + 0.026753774, + -0.015628805, + 0.0066578467, + -0.032138795, + -0.019202502, + 0.015420748, + -0.04729029, + -0.014625233, + -0.008456933, + 0.00354616, + 0.027463617, + -0.002863853, + -0.013682853, + -0.009429909, + 0.003052023, + 0.005608379, + -0.011339145, + -0.014331504, + 0.012483463, + 0.041831836, + 0.005779721, + -0.018761909, + 0.0010892432, + 0.043055706, + 0.014735381, + -0.011186161, + -0.0016919987, + -0.00223968, + 0.022360085, + 0.016681332, + 0.019104593, + -0.0019214741, + -0.016620139, + 0.026949592, + 0.0059143463, + 0.047241338, + 0.003368699, + 0.0003719414, + 0.008108131, + 0.01632641, + -0.01269152, + -0.11827469, + -0.03182059, + 0.012887339, + 0.016644616, + 0.018137736, + 0.011320787, + -0.015457463, + 0.027561527, + -0.004142796, + 0.014086731, + -0.03172268, + -0.003331983, + 0.023657385, + -0.023743056, + 0.049224004, + -0.009919457, + -0.022237698, + -0.018321317, + 0.0017302446, + 0.0029709416, + -0.020181598, + -0.03106179, + 0.0018969967, + -0.015298361, + 0.015800146, + -0.008897526, + -0.040632445, + 0.032726254, + 0.018553851, + 0.0007358511, + -0.02417141, + 0.01035393, + 0.0062356116, + -0.004084662, + 0.0013057151, + -0.006774114, + -0.019275934, + -0.0029816504, + 0.012238689, + -0.02976449, + -0.0016185666, + -0.01613059, + 0.029128078, + -0.010115276, + 0.0010073971, + -0.0132912155, + -0.01539627, + 0.01269152, + 0.010561988, + -0.015151496, + -0.028589576, + 0.003116276, + -0.018272363, + -0.013450319, + -0.009191255, + 0.018358033, + 0.004534434, + -0.0064803855, + -0.008977078, + 0.025431994, + -0.014307027, + 0.005663453, + -0.0075267935, + -0.008664992, + -0.009387074, + 0.008756782, + 0.011957198, + -0.012569133, + 0.0066027725, + -0.011216758, + -0.014478369, + 0.024232604, + -0.013083158, + 0.013242261, + -0.02174815, + -0.00021188229, + -0.048367295, + -0.0010395236, + 0.014527324, + -0.028883304, + -0.019704288, + -0.009717518, + 0.004926072, + 0.018431464, + 0.024783345, + 0.012569133, + 0.009729757, + -0.007814403, + 0.008310069, + -0.02631318, + -0.011363622, + 0.041513633, + -0.00041841017, + 0.00961349, + -0.01680372, + 0.010617062, + 0.018492658, + -0.01846818, + -0.007343213, + -0.015530895, + -0.013817479, + 0.0049138335, + -0.062466267, + 0.01185317, + 0.006419192, + -0.007881715, + 0.01697506, + 0.006364118, + -0.011840931, + -0.015628805, + -0.020267269, + 0.0123671945, + -0.005302412, + 0.019789958, + -0.017281028, + 0.005489052, + -0.0151147805, + -0.03573697, + 0.012452866, + 0.032408047, + 0.0038429482, + 0.0042131683, + 0.0016751705, + -0.02146666, + 0.023669623, + 0.024991402, + -0.03368087, + 0.010286618, + 0.013511512, + 0.026925115, + -0.013744047, + -0.010770046, + -0.008707827, + -0.026386613, + 0.0013370768, + 0.003631831, + -0.02063443, + 0.011400338, + 0.0027093396, + 0.037744116, + 0.018749671, + 0.019863391, + 0.012764952, + -0.02294754, + 0.023167837, + -0.00914842, + -0.0068536657, + 0.0060336734, + 0.0001140684, + 0.017391177, + 0.021221885, + 0.0036593678, + 0.013915389, + 0.026460044, + -0.0012047458, + -0.015922533, + 0.0038184708, + -0.022543665, + 0.02053652, + 0.0054921117, + 0.000090834015, + -0.043887936, + 0.04210109, + -0.005216741, + 0.047021043, + 0.013780763, + 0.0041948105, + -0.017391177, + -0.019018922, + 0.0046415227, + -0.010127515, + -0.009858264, + 0.015592089, + -0.017844008, + 0.012006153, + -0.014319265, + 0.032212228, + 0.01259361, + -0.0014166281, + 0.02827137, + -0.008922004, + 0.00345131, + 0.013144352, + -0.020879202, + -0.04281093, + 0.03341162, + 0.03480683, + 0.008181564, + -0.02863853, + 0.010971984, + -0.024832299, + 0.008469173, + -0.007710374, + 0.010225425, + 0.011186161, + -0.0045895083, + -0.012752714, + -0.0013516102, + -0.0018128557, + 0.0046262243, + 0.0048342817, + 0.021503376, + 0.010304975, + -0.0020040853, + -0.004607866, + -0.02284963, + -0.03333819, + 0.014160163, + -0.0075084353, + -0.03275073, + -0.01632641, + 0.019202502, + 0.004136677, + 0.028026596, + -0.015445225, + 0.009436029, + -0.018541614, + 0.0014342213, + 0.004647642, + 0.023033211, + -0.015249406, + 0.025603335, + 0.008964839, + 0.0051280106, + 0.007991863, + -0.006400834, + 0.03358296, + -0.0024156112, + 0.0007985744, + 0.008995436, + -0.025138266, + 0.0154819405, + -0.017525801, + 0.019080115, + 0.005060698, + 0.019178025, + 0.014698665, + -0.012110182, + -0.0039989916, + 0.032824162, + 0.00662725, + 0.020756816, + 0.017819531, + -0.017684905, + 0.022213219, + 0.0085976785, + 0.031796113, + 0.024734389, + 0.015849102, + -0.028981214, + -0.008224399, + 0.023926636, + 0.003977574, + -0.007924551, + -0.029519716, + -0.028809873, + 0.019092355, + 0.016387604, + 0.003631831, + -0.012887339, + 0.011222878, + 0.031184178, + 0.011228996, + 0.008371263, + 0.0037664564, + -0.027488094, + -0.025138266, + 0.00923409, + -0.03348505, + -0.022812916, + -0.008383501, + 0.010935268, + 0.00064329605, + -0.024954686, + -0.0039928723, + -0.0009844495, + -0.015163735, + 0.0070678424, + -0.022617096, + 0.011173923, + 0.023155598, + 0.009185135, + 0.019532947, + -0.035688017, + 0.0029005692, + -0.006413073, + 0.02165024, + 0.0036134727, + 0.009925576, + -0.01567776 + ] + } + ], + "model": "text-embedding-ada-002", + "usage": { + "prompt_tokens": 58, + "total_tokens": 58 + } + } + } +} \ No newline at end of file diff --git a/dotcms-postman/src/test/resources/mappings/popular-novel.json b/dotcms-postman/src/test/resources/mappings/popular-novel.json new file mode 100644 index 000000000000..827d5b2277fa --- /dev/null +++ b/dotcms-postman/src/test/resources/mappings/popular-novel.json @@ -0,0 +1,1574 @@ +{ + "request": { + "method": "POST", + "url": "/e", + "headers": { + "Content-Type": { + "equalTo": "application/json" + }, + "Authorization": { + "equalTo": "Bearer some-api-key-1a2bc3" + } + }, + "bodyPatterns": [ + { + "matches": ".*\"model\":\"text-embedding-ada-002\",\"input\":.*41,11606,13,96607,596,364.*" + } + ] + }, + "response": { + "status": 200, + "jsonBody": { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": [ + 0.02250356, + -0.027679253, + -0.020110905, + -0.02211318, + -0.004816795, + 0.020211648, + -0.01591746, + -0.032338638, + -0.028460015, + -0.011176223, + 0.021193895, + 0.0029735048, + -0.0067435126, + -0.0054968125, + 0.0056857066, + -0.0047758673, + 0.024808066, + -0.033849787, + 0.0036771346, + -0.023347287, + -0.009652479, + -0.012064024, + -0.011805869, + -0.02004794, + 0.0036991723, + -0.0048703146, + 0.0070520393, + -0.02237763, + 0.04014625, + -0.011390302, + 0.0063814656, + -0.0036236148, + -0.01230329, + -0.0136003615, + -0.025185853, + 0.0034536102, + -0.010729174, + -0.010867696, + -0.008009101, + -0.0038376944, + 0.038358055, + 0.0047506816, + -0.017050823, + -0.002868039, + -0.020614622, + 0.0043414114, + -0.007952433, + -0.02951782, + -0.024619171, + 0.008752084, + 0.008147623, + 0.0152122555, + -0.014519645, + -0.01260552, + 0.00065404514, + -0.0058431183, + -0.009350249, + 0.013260352, + 0.018272337, + -0.02417842, + 0.0019707931, + -0.011283263, + -0.010968439, + -0.010974736, + -0.0034158314, + 0.011598086, + -0.01582931, + -0.019304957, + -0.007813911, + -0.014469273, + 0.016975265, + 0.0066364724, + -0.002051073, + -0.015564858, + 0.00069851393, + -0.012932936, + -0.02237763, + -0.002310802, + 0.0036078736, + -0.018851612, + 0.015653009, + -0.024946589, + -0.011818462, + 0.009853966, + 0.009381731, + 0.0039919578, + 0.0048608696, + 0.027956298, + -0.016156726, + 0.0000060013167, + -0.019594595, + 0.009362841, + -0.009180244, + 0.000523, + -0.008607266, + -0.004769571, + -0.0065546185, + 0.05248732, + -0.006888331, + -0.021936879, + 0.008896903, + -0.02026202, + -0.004879759, + -0.006875738, + -0.024241384, + 0.003299347, + -0.00012671633, + 0.009545439, + 0.022150958, + -0.014078893, + -0.0045145643, + 0.017995292, + 0.022906534, + -0.019783488, + -0.006951296, + -0.0048293876, + -0.016673036, + -0.026772562, + -0.0031041566, + -0.030928228, + 0.025739944, + 0.006970185, + 0.023888782, + -0.026193287, + 0.021760577, + 0.008393186, + -0.024946589, + -0.013323316, + 0.013222573, + -0.009961005, + 0.023347287, + -0.0032710128, + -0.0002609097, + 0.012983307, + -0.025626607, + 0.028560758, + -0.019758303, + -0.0013080903, + -0.017718248, + -0.02004794, + 0.0121081, + 0.008027991, + -0.023221357, + -0.012202546, + -0.012945529, + 0.008135031, + 0.021345012, + 0.006806477, + 0.004712903, + -0.009721739, + 0.02916522, + 0.004209186, + 0.0036204665, + -0.0024414537, + 0.023460623, + 0.019179028, + 0.015086327, + 0.016861929, + -0.013889998, + -0.025274005, + 0.006642769, + 0.012126989, + 0.012441812, + -0.00268859, + -0.0022163552, + 0.0102191605, + 0.018322708, + 0.014859654, + 0.0025044184, + 0.022528747, + -0.01582931, + 0.0004797118, + -0.021962065, + 0.0077509466, + -0.0006752957, + -0.006875738, + 0.02624366, + 0.005043467, + -0.018687904, + -0.0006737216, + -0.0037652852, + 0.0012443386, + 0.019380515, + 0.026193287, + -0.027855555, + -0.011843648, + 0.00017787509, + 0.019153843, + -0.002674423, + 0.014481866, + -0.0058651557, + 0.023662109, + -0.017453797, + -0.0011782257, + -0.66893625, + -0.038483985, + -0.018310117, + -0.019468665, + 0.016761186, + 0.015010769, + -0.0016418028, + 0.031129716, + -0.0016323582, + -0.007077225, + 0.00054975995, + 0.0144063085, + 0.019519037, + -0.0072472296, + -0.008361704, + 0.0007894191, + -0.0033812008, + -0.023473216, + 0.0033182362, + 0.0039573275, + 0.006592397, + 0.03777878, + -0.019254586, + -0.033472, + 0.012378847, + 0.03996995, + -0.005380328, + -0.017088601, + 0.0029656342, + 0.011698829, + 0.017970107, + 0.016068574, + 0.010508797, + 0.03626763, + 0.029442264, + 0.014683353, + -0.034177203, + 0.025286598, + 0.0047569782, + 0.054451816, + -0.0074613094, + -0.018574568, + 0.014179636, + 0.006198868, + -0.023725074, + -0.022125773, + 0.016081167, + -0.0061768307, + -0.011119555, + 0.0033654596, + 0.014695946, + -0.02271764, + 0.0033087917, + -0.008512818, + 0.01062843, + 0.0038943626, + 0.00980989, + 0.0024414537, + 0.016509328, + -0.005802191, + -0.007089818, + 0.026168102, + 0.0036078736, + 0.020828702, + 0.007133893, + 0.015967831, + -0.012196249, + 0.0025421972, + -0.007845393, + -0.01927977, + 0.02482066, + 0.024379907, + -0.008821345, + 0.0013970279, + 0.0023973784, + 0.010716581, + 0.036595047, + 0.0071905614, + -0.003137213, + -0.0010286847, + 0.0023186726, + 0.004215482, + -0.02542512, + -0.019229399, + 0.03196085, + -0.017327867, + -0.013864812, + 0.013184794, + -0.0053614387, + 0.01557745, + 0.0011310022, + -0.011925502, + -0.010508797, + -0.012234028, + 0.00097201654, + -0.013247759, + -0.0086891195, + -0.0056699654, + -0.005232361, + -0.018725682, + 0.018096035, + -0.009173947, + -0.021823542, + -0.0004930918, + -0.008072066, + 0.014872246, + -0.005078098, + -0.010294718, + 0.051353958, + -0.030399326, + 0.0356128, + -0.011824759, + -0.01342406, + -0.0062586847, + 0.007662796, + -0.014771503, + 0.0146077955, + 0.0052355095, + 0.01664785, + -0.02976968, + 0.021345012, + 0.006806477, + -0.0025233077, + -0.01819678, + -0.011516232, + 0.0022242258, + -0.019443478, + 0.01609376, + -0.016131539, + 0.00083034614, + 0.041506287, + -0.00651684, + -0.019304957, + -0.0069638886, + 0.0028585945, + -0.009526549, + 0.01807085, + 0.0047380887, + 0.026571076, + 0.012932936, + -0.012523666, + 0.0057801534, + -0.006642769, + 0.011919205, + 0.0036897275, + -0.024455464, + 0.00350713, + -0.0021392235, + -0.015879681, + 0.0054307, + -0.025576234, + -0.01013101, + -0.030197838, + -0.0038219534, + -0.015841901, + -0.0066364724, + -0.0010397035, + 0.0063122045, + 0.003897511, + -0.009129872, + -0.0013867961, + 0.01730268, + -0.030046724, + 0.008078363, + 0.0050623566, + -0.03304384, + -0.000815392, + 0.02508511, + -0.0047380887, + -0.013839627, + 0.000977526, + 0.011339931, + 0.011692532, + 0.02903929, + 0.010578059, + 0.019758303, + 0.0067309192, + 0.017353054, + 0.009331359, + -0.0072346367, + -0.010313607, + -0.019229399, + -0.020853886, + 0.009690258, + 0.019959789, + 0.013927777, + 0.01837308, + -0.014078893, + 0.0031073047, + 0.0096146995, + -0.0012065598, + 0.037955083, + 0.011761794, + -0.0037715817, + -0.0068505523, + -0.0025217335, + 0.014053706, + -0.016156726, + -0.0043130773, + 0.04173296, + 0.018020479, + -0.0017803251, + 0.022390224, + -0.026873305, + -0.01926718, + -0.038735844, + 0.0062996116, + -0.016194504, + 0.01746639, + -0.0022635786, + 0.00909839, + -0.024984367, + -0.008978757, + -0.028334085, + 0.009054314, + 0.025576234, + -0.0011758646, + 0.0040454776, + -0.01914125, + 0.008556894, + 0.018146407, + -0.0021990398, + 0.026923677, + 0.005348846, + -0.018637532, + 0.032791983, + 0.012624409, + 0.012945529, + 0.031230459, + -0.010596948, + -0.006123311, + 0.0022478374, + -0.0028853544, + 0.008141328, + -0.024002118, + 0.0053740316, + 0.014519645, + -0.040876642, + 0.036242444, + 0.004917538, + -0.022125773, + 0.007650203, + 0.009073203, + -0.026369588, + 0.01105659, + -0.02469473, + 0.004250113, + -0.009923226, + -0.015010769, + 0.013147016, + -0.015955238, + 0.012359958, + -0.004174555, + -0.016660443, + 0.012290697, + -0.016282655, + 0.029694121, + 0.0025972913, + 0.0051945825, + 0.03510908, + 0.0014623536, + -0.0076124244, + 0.008147623, + -0.0026807194, + 0.0075998316, + 0.020803515, + 0.0069638886, + 0.010225457, + -0.01987164, + -0.021911694, + -0.015564858, + -0.024455464, + 0.0070394464, + -0.0062933154, + 0.014116671, + -0.0043162256, + 0.0022856162, + 0.015048548, + -0.0066994373, + 0.016836744, + -0.009778407, + -0.021244267, + 0.0031576764, + 0.01570338, + 0.003165547, + -0.029920794, + 0.0024760843, + -0.004089553, + -0.0063688727, + 0.0053299563, + 0.023435436, + 0.018108629, + 0.015753752, + -0.016131539, + -0.00722834, + -0.010653616, + 0.02654589, + -0.018700497, + 0.015816716, + 0.00372121, + -0.013222573, + -0.0013010068, + -0.017667877, + -0.028711874, + 0.029820051, + 0.0069072205, + -0.005150507, + -0.0018763461, + 0.0045428984, + 0.012492184, + -0.012995901, + -0.008878013, + -0.020463506, + 0.013801848, + -0.0001356691, + 0.011925502, + -0.0007248804, + -0.0039195484, + 0.021936879, + 0.016484141, + 0.0039352896, + -0.034353506, + -0.014318158, + 0.0026728488, + 0.10839991, + 0.0036330593, + -0.0076124244, + 0.0026571075, + -0.00094919186, + 0.0024493244, + -0.010168789, + -0.0069764815, + 0.018259743, + -0.0024162678, + 0.015678193, + 0.009866558, + 0.0055881115, + 0.0077509466, + -0.040473666, + 0.0113273375, + 0.021647241, + -0.013562582, + 0.003938438, + -0.03480685, + -0.0066112867, + -0.0060383086, + 0.008059474, + -0.0034536102, + -0.007826504, + -0.03196085, + 0.0030490623, + 0.009979894, + -0.013373689, + -0.013046272, + -0.021269454, + -0.00020247065, + 0.015854495, + -0.010363979, + -0.006863145, + 0.022251703, + 0.027351838, + 0.04143073, + 0.009847669, + -0.029190404, + 0.017453797, + 0.0054905163, + 0.0206524, + -0.012114395, + 0.013021086, + -0.0034693514, + 0.0060918285, + 0.030424511, + 0.032288264, + 0.011421785, + 0.008600969, + -0.006331094, + -0.017541947, + 0.011560307, + -0.012404033, + 0.0016669887, + 0.019254586, + 0.0025752536, + 0.003137213, + 0.01116363, + -0.017705655, + -0.024896216, + 0.0064916536, + 0.0044106725, + -0.013701105, + -0.029417077, + -0.010811028, + -0.013751476, + -0.011440674, + 0.029870423, + -0.008449854, + -0.010357683, + -0.00372121, + 0.011780683, + 0.020677585, + 0.0028743355, + 0.021269454, + -0.008204292, + -0.006261833, + 0.018133815, + 0.0029798013, + -0.037678037, + -0.0074739023, + -0.023649517, + 0.0029010954, + 0.012586631, + -0.0007902062, + 0.018599752, + -0.014595202, + 0.001005073, + 0.006749809, + 0.013071458, + -0.01333591, + -0.033472, + -0.016169319, + -0.0000071265636, + -0.005581815, + 0.015804123, + 0.0035386125, + -0.020904258, + -0.021156117, + -0.0066238795, + 0.011975873, + -0.018360488, + 0.012838489, + 0.0015937923, + 0.004007699, + 0.044805635, + -0.020979816, + -0.006504247, + 0.010477316, + -0.026747378, + 0.039793648, + 0.0046279007, + -0.0040045506, + 0.028107412, + 0.010452129, + 0.022037622, + 0.017365646, + -0.030903043, + -0.012920343, + -0.020979816, + 0.029870423, + 0.028510386, + -0.016244875, + 0.008890606, + -0.0014379548, + 0.0027137757, + -0.012120692, + -0.019670151, + 0.011667347, + 0.02568957, + 0.008544301, + 0.0030616554, + -0.01303368, + -0.009998784, + -0.0031498058, + 0.0047380887, + 0.009860261, + 0.0004198954, + -0.012171064, + -0.013889998, + 0.0053992174, + -0.021760577, + 0.00020040463, + -0.019947195, + -0.006630176, + -0.02861113, + -0.012215139, + -0.009463585, + 0.01187513, + -0.007870579, + -0.012234028, + 0.0013096645, + 0.013109237, + -0.013814441, + -0.0033339774, + -0.016081167, + 0.013084051, + 0.02994598, + 0.02697405, + -0.0037306547, + 0.014645574, + 0.0009090519, + -0.015753752, + -0.002825538, + -0.005745523, + 0.0017205087, + -0.015980424, + 0.023296915, + 0.017504169, + 0.0005749458, + 0.02259171, + -0.007857987, + 0.02422879, + 0.02001016, + 0.01621969, + -0.0013017938, + -0.01695008, + -0.045762695, + -0.025865871, + 0.009318766, + -0.005043467, + 0.022893941, + -0.021231676, + -0.012435515, + 0.00009744761, + -0.011566604, + -0.005761264, + -0.013978149, + 0.027200723, + -0.003548057, + -0.008254664, + -0.0124732945, + 0.016244875, + -0.022402817, + 0.024770288, + -0.024745101, + 0.00025913882, + 0.010376572, + 0.032716423, + -0.008538004, + -0.004933279, + 0.0076879817, + 0.025891058, + 0.00048443416, + 0.005380328, + -0.0026838675, + 0.025739944, + 0.0050340225, + -0.022604303, + -0.026344404, + 0.026646633, + -0.0056038527, + -0.008317628, + -0.0033528667, + -0.012227732, + 0.0048325355, + -0.029366706, + -0.0030002648, + 0.008978757, + -0.031205272, + 0.04543528, + 0.033723857, + 0.014368529, + 0.012945529, + -0.000815392, + 0.0007917803, + 0.029971166, + 0.027351838, + -0.005266992, + 0.00722834, + -0.0055188504, + 0.013789255, + -0.0311549, + -0.030097095, + -0.012832193, + -0.029794864, + -0.031381574, + 0.008922089, + -0.0017409722, + -0.030575627, + 0.00044901654, + -0.0043854867, + -0.019090878, + 0.014242601, + -0.016924893, + 0.0111447405, + -0.019355329, + -0.021219082, + -0.020073125, + -0.0022588563, + -0.0098161865, + -0.0011609105, + -0.00089016254, + -0.007782429, + 0.007392048, + -0.018133815, + -0.0004033672, + -0.02004794, + -0.012227732, + 0.01518707, + -0.019304957, + 0.008336518, + 0.032540124, + 0.0015339759, + 0.023120614, + 0.012126989, + -0.013386281, + 0.02237763, + 0.0017441204, + -0.015388557, + -0.0031561023, + 0.022944313, + -0.025588827, + 0.0031214717, + -0.015678193, + -0.028283713, + -0.0052008787, + 0.0053110668, + 0.030953415, + 0.020677585, + -0.010829917, + -0.018901983, + -0.014821875, + -0.012592927, + -0.014330751, + -0.022893941, + -0.0021943175, + -0.03206159, + -0.03470611, + -0.01290775, + -0.021105746, + -0.002132927, + -0.021067968, + -0.004221779, + 0.016244875, + 0.041783333, + -0.025160668, + -0.014066299, + 0.0074613094, + -0.0053519937, + 0.0096146995, + 0.005729782, + -0.0028082228, + -0.031557877, + 0.032111965, + 0.0008342814, + -0.012064024, + -0.0066175833, + 0.014192228, + -0.015539672, + 0.013260352, + -0.00035693077, + 0.0026051619, + -0.002405249, + 0.009255801, + 0.008034287, + 0.003356015, + -0.0041210353, + 0.002350155, + -0.00651684, + 0.017101195, + -0.030600812, + 0.011018811, + 0.01764269, + 0.027628882, + -0.011585493, + -0.0409522, + -0.012756635, + -0.017919734, + 0.0038251015, + -0.01363814, + 0.0014655018, + -0.021798357, + 0.002432009, + -0.008922089, + 0.0028381308, + 0.004725496, + -0.006938703, + 0.00034099285, + 0.04027218, + 0.02435472, + 0.0019125508, + -0.005093839, + 0.0010932235, + -0.0013600361, + -0.01742861, + -0.033623114, + -0.0046404935, + -0.012466998, + 0.039264746, + 0.01557745, + 0.009180244, + -0.019594595, + -0.012038838, + -0.016736, + -0.002350155, + 0.009961005, + 0.022956906, + 0.04845758, + 0.020551657, + 0.012618112, + 0.005078098, + -0.004089553, + -0.011881427, + -0.019934604, + 0.001113687, + 0.00038526487, + 0.02964375, + 0.032716423, + 0.016937487, + -0.00532366, + -0.0074927914, + 0.012164768, + -0.009709147, + -0.0075872387, + 0.014003335, + -0.0062555363, + -0.00051158766, + -0.0070331497, + 0.021345012, + 0.009784704, + 0.008166513, + 0.018813834, + -0.025488084, + 0.0033906456, + -0.011371413, + -0.016534513, + -0.024745101, + 0.009230616, + -0.0025233077, + -0.017277496, + 0.025437713, + 0.0051631, + -0.019808674, + -0.013436653, + 0.0042060376, + 0.03843361, + 0.0034819443, + 0.002499696, + 0.00039156133, + 0.00014373646, + -0.0033245326, + -0.004089553, + 0.0102191605, + -0.0062964633, + -0.015640415, + -0.02861113, + -0.022893941, + 0.0061484966, + -0.016333027, + -0.012762931, + -0.0024398796, + -0.013801848, + -0.019783488, + 0.010445833, + -0.026294032, + 0.043999687, + -0.004684569, + 0.002691738, + -0.010370275, + -0.0056290384, + -0.0136003615, + 0.0041934447, + -0.038483985, + -0.0040580705, + 0.0035512054, + -0.0038754733, + 0.0013135996, + -0.0000074586037, + -0.0048671663, + -0.0005588111, + -0.001589857, + 0.0027609991, + 0.0049301307, + 0.21277009, + 0.008764677, + 0.004886056, + 0.0079839155, + -0.008890606, + 0.022793198, + 0.026319217, + 0.0028097967, + -0.005887193, + -0.021395383, + -0.03463055, + 0.032514937, + -0.013197388, + 0.0055188504, + -0.00583997, + -0.03906326, + -0.031003786, + -0.02521104, + -0.009998784, + -0.03656986, + -0.005544036, + -0.014645574, + 0.002214781, + -0.021533905, + 0.001955052, + 0.0229695, + -0.014796689, + -0.0041493694, + 0.038584728, + 0.0025484937, + 0.0020132943, + 0.0011994763, + -0.022150958, + -0.011188815, + -0.000102120764, + -0.011629568, + 0.026268845, + -0.008934681, + -0.0023375622, + 0.015136698, + -0.013222573, + -0.0021124636, + -0.0204761, + -0.002090426, + 0.004429562, + 0.016660443, + 0.0067561055, + 0.0040832567, + -0.00038585515, + -0.0029971167, + -0.01961978, + -0.03626763, + 0.048734628, + 0.020123497, + -0.017781213, + 0.012215139, + 0.023397658, + 0.01755454, + -0.0047317925, + -0.014444088, + -0.0009310895, + 0.008103549, + -0.030021537, + 0.017630098, + 0.028862989, + 0.025374748, + -0.024531022, + 0.012769228, + -0.0006752957, + -0.003041192, + -0.02271764, + -0.010855103, + -0.021370197, + -0.005660521, + -0.029291147, + -0.014922619, + 0.017151566, + -0.00007747601, + -0.006598694, + 0.03626763, + 0.011868834, + -0.0030915635, + 0.020664994, + 0.020765737, + -0.0178064, + -0.027729625, + -0.001848012, + -0.020035347, + -0.009104686, + 0.012725153, + 0.011176223, + 0.0058431183, + -0.0056731137, + -0.019632373, + 0.022919128, + 0.019292364, + 0.005040319, + 0.046493087, + -0.0027263686, + 0.007902062, + -0.021659834, + -0.015867088, + 0.00021703122, + -0.009161354, + -0.014570016, + 0.0047034584, + 0.0084876325, + 0.0022132068, + 0.018901983, + -0.0011310022, + 0.018511603, + -0.0059690475, + 0.011037701, + 0.002284042, + -0.016924893, + 0.032968283, + -0.038483985, + -0.00077446504, + -0.012769228, + -0.029719308, + -0.011761794, + -0.0061453483, + -0.012819599, + 0.008632451, + -0.00028766968, + 0.0034536102, + 0.0042469646, + 0.015653009, + -0.0088087525, + -0.036796533, + 0.010464722, + -0.028384456, + 0.00453975, + 0.0154137425, + 0.013688511, + 0.0046404935, + -0.0037275064, + -0.0038628804, + -0.034655735, + -0.008468743, + -0.004945872, + -0.00888431, + -0.008355407, + 0.028283713, + 0.010811028, + -0.005348846, + -0.0072661187, + -0.00858208, + -0.009746926, + -0.01394037, + -0.032666054, + -0.039038073, + -0.007996509, + -0.022956906, + 0.015325592, + -0.027049607, + -0.035083894, + -0.025236225, + 0.011868834, + 0.01742861, + -0.017667877, + 0.039038073, + 0.009671368, + -0.0064035035, + 0.004184, + 0.015552265, + -0.15715973, + 0.01178698, + 0.023498401, + -0.03342163, + 0.03989439, + -0.0066238795, + 0.024165826, + 0.010401757, + 0.009797297, + 0.016572291, + 0.008015398, + 0.006192572, + -0.03815657, + -0.017000452, + -0.011805869, + 0.014507052, + 0.011031404, + 0.017592318, + 0.03256531, + 0.006318501, + 0.02715035, + -0.01497299, + 0.015098919, + 0.020199055, + 0.030147467, + 0.008613562, + 0.013650733, + -0.012624409, + -0.009450992, + -0.018473824, + -0.012668485, + -0.0028066486, + -0.01730268, + -0.00532366, + 0.017378239, + -0.016660443, + 0.014116671, + 0.012492184, + 0.001086927, + 0.040045507, + 0.030525254, + 0.010093231, + 0.037703224, + 0.016685627, + -0.005660521, + 0.022528747, + 0.0028066486, + 0.006400355, + 0.0062366473, + -0.014834468, + 0.018964948, + -0.017730841, + 0.008890606, + -0.008204292, + 0.020602029, + -0.010042859, + 0.001955052, + 0.017995292, + 0.00692611, + -0.009891744, + -0.020324985, + -0.005273288, + 0.0015261053, + 0.008311332, + -0.0027358134, + -0.0071087074, + 0.029492635, + 0.020312391, + -0.030575627, + 0.0055471845, + -0.01518707, + -0.028888175, + 0.011402896, + -0.00858208, + -0.022856163, + 0.004306781, + 0.015199663, + -0.0051158764, + -0.003900659, + 0.020186462, + -0.0041525178, + 0.01803307, + 0.0075557563, + -0.00105938, + -0.0037275064, + 0.00014196557, + -0.021974657, + -0.005295326, + -0.025286598, + -0.008953571, + 0.005106432, + -0.020161277, + -0.044276733, + -0.004180852, + 0.0057958947, + 0.010691395, + 0.010489908, + -0.013877406, + 0.023208763, + -0.02013609, + 0.014544831, + 0.018360488, + -0.004498823, + -0.0064727645, + 0.052739177, + 0.008210588, + 0.016370805, + -0.0064601717, + 0.024505835, + 0.017705655, + -0.018750869, + -0.005736078, + 0.02052647, + 0.012504776, + 0.0024650653, + 0.017907143, + -0.0052606952, + -0.01695008, + 0.008040584, + 0.0022053362, + 0.058179323, + 0.013071458, + -0.027956298, + -0.0067875874, + 0.00057966815, + 0.006535729, + -0.10890363, + -0.021584276, + -0.01828493, + 0.006447579, + -0.0007724974, + 0.02138279, + -0.0031025824, + 0.0012522092, + -0.009853966, + 0.0154137425, + -0.0045554913, + -0.021785764, + 0.010533984, + -0.015993018, + 0.002798778, + -0.0072031543, + 0.00088858843, + -0.018020479, + -0.032817166, + 0.0049080933, + -0.012769228, + 0.0044043763, + 0.0027751662, + -0.0026460888, + -0.010981033, + -0.026571076, + -0.033144582, + 0.016710814, + 0.030575627, + 0.0062838704, + 0.006869442, + 0.0047066063, + -0.014330751, + -0.024971774, + 0.023397658, + 0.011459564, + -0.01458261, + 0.014847061, + 0.032791983, + -0.042312235, + 0.008235774, + -0.004671976, + 0.00038251016, + -0.011705126, + 0.0058242287, + 0.010748063, + -0.04251372, + -0.008852827, + 0.0063814656, + -0.0043382635, + -0.0332957, + -0.0035260196, + -0.016937487, + -0.014821875, + 0.0076942784, + -0.0065294327, + -0.0012191527, + -0.00201172, + 0.0077761323, + 0.0055660736, + -0.010301014, + -0.033018656, + 0.005408662, + -0.0037526921, + -0.005071801, + 0.0010184529, + -0.0020857034, + -0.010905474, + 0.014834468, + -0.028233342, + -0.005052912, + 0.009532846, + -0.016257469, + 0.021924285, + -0.011289559, + 0.01729009, + -0.009048018, + 0.008859124, + 0.01198217, + -0.030903043, + -0.0056982995, + -0.023548773, + 0.01146586, + -0.03248975, + 0.045762695, + 0.017529353, + 0.01725231, + 0.02262949, + 0.025752535, + -0.019053098, + 0.009230616, + 0.017756026, + 0.008544301, + 0.0019188472, + -0.010068045, + 0.01789455, + 0.006274426, + 0.0046247523, + 0.04367227, + 0.014318158, + -0.014066299, + 0.016395992, + -0.055610366, + 0.014507052, + -0.0018369933, + -0.015224849, + -0.006246092, + -0.007920951, + 0.018473824, + -0.007713168, + 0.0008767825, + 0.021571685, + -0.027830368, + 0.002228948, + 0.0036015771, + -0.004649938, + -0.0134618385, + 0.0017834733, + 0.010955847, + 0.00023080474, + -0.010414351, + -0.01730268, + -0.037552107, + -0.0076187206, + 0.029820051, + -0.0054842196, + -0.023548773, + 0.015124105, + -0.0034724995, + 0.016446363, + -0.019632373, + 0.003639356, + 0.001766158, + -0.03583947, + 0.01974571, + 0.01579153, + 0.00091692246, + -0.0025563643, + 0.017390832, + 0.0025721053, + 0.015287814, + 0.062057942, + -0.019720523, + -0.018952355, + 0.030953415, + -0.025362154, + -0.0010302588, + 0.018259743, + -0.01280071, + 0.028762246, + 0.008909496, + -0.004171407, + 0.016395992, + 0.041254427, + 0.0058840453, + -0.016899709, + -0.019959789, + -0.00826096, + 0.021093152, + -0.012649595, + -0.0028381308, + -0.03316977, + 0.006724623, + -0.022062808, + 0.009167651, + 0.0054495893, + 0.0054968125, + -0.030877857, + 0.009784704, + -0.001386009, + 0.010357683, + 0.006044605, + -0.011925502, + -0.0089913495, + 0.002732665, + 0.038886957, + -0.01280071, + 0.021181304, + -0.018083444, + 0.023548773, + -0.017995292, + 0.009148762, + -0.00012661795, + -0.0016543958, + -0.014859654, + 0.01241033, + 0.020199055, + 0.025790315, + 0.00325842, + -0.010590652, + 0.0035889843, + 0.020199055, + -0.00023277238, + -0.006085532, + 0.00402344, + 0.009438398, + 0.02220133, + -0.007857987, + -0.0077068713, + 0.0008138179, + 0.0025469195, + 0.020438321, + -0.019644966, + -0.0108614, + 0.000100546655, + -0.023863597, + -0.020337578, + -0.0054779234, + -0.009161354, + -0.046442714, + -0.0072346367, + 0.0044358587, + 0.013675919, + -0.0063688727, + 0.00011097517, + -0.0071842647, + -0.02594143, + 0.020249426, + 0.008235774, + -0.025840687, + 0.0043540043, + 0.028107412, + 0.009224319, + -0.0060634944, + 0.029140033, + -0.022818383, + 0.009728036, + 0.004851425, + 0.028359272, + -0.016710814, + -0.0006359428, + -0.003220641, + -0.02040054, + -0.015967831, + 0.0034189797, + 0.008273553, + 0.0010349812, + -0.021848729, + -0.03055044, + 0.01919162, + -0.00061626633, + 0.038005453, + 0.013285538, + -0.010829917, + 0.0013773513, + -0.022428002, + 0.021458348, + 0.009299876, + -0.0194057, + -0.0006737216, + -0.023435436, + 0.011956984, + 0.0040391814, + 0.016836744, + 0.0034158314, + -0.019556815, + -0.011195112, + 0.017239718, + 0.012769228, + -0.008915792, + -0.0019345884, + 0.027855555, + 0.014015928, + 0.016622664, + 0.006863145, + -0.016030796, + -0.009841372, + 0.035990585, + -0.015501893, + 0.012781821, + -0.031860106, + -0.012196249, + 0.011667347, + -0.022893941, + -0.0017881956, + 0.029971166, + -0.009104686, + 0.008896903, + -0.0013946666, + 0.012920343, + 0.025022145, + -0.0050749495, + 0.04022181, + -0.018045664, + -0.0037558405, + -0.028409643, + 0.00042737246, + -0.004961613, + -0.005852563, + 0.0057958947 + ] + } + ], + "model": "text-embedding-ada-002", + "usage": { + "prompt_tokens": 71, + "total_tokens": 71 + } + } + } +} \ No newline at end of file diff --git a/dotcms-postman/src/test/resources/mappings/stock-market.json b/dotcms-postman/src/test/resources/mappings/stock-market.json new file mode 100644 index 000000000000..cb21c1eb5f53 --- /dev/null +++ b/dotcms-postman/src/test/resources/mappings/stock-market.json @@ -0,0 +1,1574 @@ +{ + "request": { + "method": "POST", + "url": "/e", + "headers": { + "Content-Type": { + "equalTo": "application/json" + }, + "Authorization": { + "equalTo": "Bearer some-api-key-1a2bc3" + } + }, + "bodyPatterns": [ + { + "matches": ".*\"model\":\"text-embedding-ada-002\",\"input\":.*791,5708,3157,706,6982,5199.*" + } + ] + }, + "response": { + "status": 200, + "jsonBody": { + "object": "list", + "data": [ + { + "object": "embedding", + "index": 0, + "embedding": [ + -0.020780154, + -0.029951563, + 0.015717031, + -0.028142408, + -0.03402216, + 0.0015209778, + -0.043771494, + 0.0076700626, + 0.0017746049, + -0.029046984, + 0.000005472026, + 0.009717925, + -0.007795698, + 0.010302131, + 0.017413115, + 0.016985953, + 0.022451108, + -0.012613829, + 0.018154366, + -0.01908407, + -0.013216881, + 0.019172015, + -0.009931506, + -0.015415506, + -0.015201925, + 0.022262655, + 0.019423287, + -0.01894587, + 0.024976388, + -0.012594984, + 0.0023572408, + -0.029549528, + -0.02583071, + -0.007412509, + -0.0117343785, + 0.007004193, + 0.024963824, + -0.004811849, + 0.006702667, + -0.020076593, + -0.010352386, + 0.0052484334, + -0.008455286, + 0.005006585, + -0.008216578, + 0.0034801103, + -0.0016254125, + 0.0019787631, + 0.012425375, + 0.024825623, + 0.032288387, + 0.018795108, + -0.025780456, + -0.0028252339, + 0.0101262415, + -0.016533665, + 0.011866297, + -0.009749334, + 0.009403836, + -0.012362557, + -0.014196839, + -0.0007993574, + -0.0048432583, + 0.0068094577, + -0.012525884, + -0.028795714, + -0.010942874, + 0.01658392, + 0.0018311411, + 0.017815148, + 0.03482623, + 0.026132235, + -0.002924172, + 0.010490585, + -0.0017620414, + 0.012953046, + -0.016935699, + -0.00019336127, + 0.0028739178, + -0.0004424734, + 0.0034204333, + -0.010898901, + -0.011715533, + -0.012525884, + -0.003605746, + -0.0019834745, + -0.01472451, + -0.0065456224, + -0.016646737, + 0.0029822786, + 0.017413115, + -0.0013992682, + 0.011728097, + 0.0003482466, + -0.014448111, + 0.0154406335, + 0.007858516, + 0.0123060215, + -0.009887533, + -0.04452531, + 0.02526535, + 0.0047458904, + -0.0155788325, + -0.0054840003, + -0.035328772, + -0.013819932, + 0.02147115, + -0.0067843306, + -0.012940482, + -0.03658513, + -0.0016662441, + -0.0016913713, + 0.0034832512, + -0.036861528, + 0.0368364, + 0.020013776, + 0.006171856, + 0.020089157, + 0.00038063707, + 0.0006831444, + 0.0024797355, + -0.011081073, + 0.01795335, + 0.0052798423, + 0.015993431, + -0.014573747, + -0.036962036, + -0.011935396, + -0.021998819, + 0.0027765501, + -0.002628928, + 0.013719424, + 0.00832965, + -0.010804675, + -0.01961174, + 0.01187886, + -0.010145087, + -0.00074596226, + -0.0049971617, + -0.03015258, + -0.0028377974, + 0.010735575, + -0.01732517, + 0.008599767, + 0.0009925225, + -0.0011150172, + 0.035228264, + 0.01802873, + -0.009265636, + -0.0069665024, + 0.014825018, + -0.015742159, + 0.0010160791, + 0.00030152578, + -0.025780456, + 0.025981473, + 0.013895314, + -0.012048468, + -0.014435547, + -0.024159754, + 0.0007408583, + -0.0070481654, + 0.0036528595, + 0.03145919, + -0.013694297, + 0.012268331, + -0.0046265363, + 0.0021483712, + 0.008210296, + -0.006646131, + 0.006445114, + 0.0016301238, + -0.011533362, + 0.015980868, + -0.0073748184, + 0.03728869, + -0.012927919, + 0.008543231, + -0.022501362, + -0.012796001, + -0.01974994, + -0.013870187, + 0.03015258, + 0.020202229, + 0.0022206118, + -0.011457981, + 0.028318297, + 0.00074125093, + 0.009127437, + -0.019511232, + 0.009127437, + -0.0065456224, + -0.010038297, + -0.020403245, + -0.6794381, + -0.005317533, + -0.022149583, + 0.030454105, + -0.0074690455, + -0.011344908, + 0.006376014, + 0.008461568, + -0.0014000534, + 0.019737376, + 0.00012583206, + -0.009309609, + -0.022375727, + -0.021760112, + -0.006206406, + -0.014309912, + -0.001890818, + -0.038821448, + 0.024901005, + 0.009108592, + 0.010842365, + 0.0241095, + -0.0016992235, + 0.005160488, + 0.018104112, + -0.0034141515, + -0.0016458284, + -0.030529488, + -0.0083547775, + 0.03542928, + 0.0016521101, + 0.0034455603, + -0.0039732307, + 0.010936592, + 0.03841941, + 0.0068345848, + -0.026132235, + 0.023644648, + 0.0057855262, + 0.033142712, + -0.0063037737, + -0.008266833, + 0.0028063885, + -0.0006266083, + -0.007418791, + 0.020365555, + 0.027539356, + -0.005465155, + 0.005436887, + -0.0037470863, + 0.020252483, + 0.012796001, + -0.006121602, + 0.004909217, + 0.005465155, + 0.00039280803, + 0.0033544744, + -0.020164538, + -0.020252483, + -0.0021436599, + 0.0000030412073, + -0.001961488, + -0.0032979385, + -0.040504966, + -0.009372427, + 0.01799104, + -0.008072097, + 0.027388593, + 0.011407726, + -0.0057572583, + -0.0005700722, + 0.03500212, + -0.020516317, + 0.008706558, + 0.023431066, + 0.011074792, + 0.019850448, + -0.0009830997, + 0.013204318, + 0.04444993, + -0.00432187, + -0.019146888, + -0.029549528, + -0.012412812, + 0.01648341, + 0.020151975, + 0.0027702684, + -0.013468152, + 0.0042621926, + 0.0024797355, + -0.0004393325, + 0.020918353, + 0.018757418, + -0.028896222, + 0.0036183095, + 0.03173559, + 0.005257856, + 0.009856124, + 0.029248003, + -0.0057227085, + -0.003929258, + -0.016244702, + 0.005936289, + 0.010760702, + 0.0041239937, + 0.03299195, + -0.007996716, + 0.011640152, + 0.00998176, + -0.015754722, + 0.017651822, + 0.0024624607, + 0.008863602, + -0.01317919, + -0.00019964305, + -0.034298558, + 0.030956648, + -0.0010537698, + 0.0012108146, + -0.023393376, + 0.0090080835, + 0.012387685, + 0.009290763, + -0.005386633, + -0.009441527, + -0.01335508, + -0.0044098147, + -0.00046171137, + -0.004460069, + -0.021169623, + 0.0032037117, + -0.0018405637, + 0.028720332, + -0.0046548047, + -0.013380207, + 0.0076072444, + 0.008637458, + -0.015189362, + -0.008254269, + -0.023657212, + -0.014008386, + 0.011640152, + 0.0074753272, + -0.010170214, + -0.0015555276, + -0.03809276, + -0.017865403, + -0.0011927544, + -0.0013898455, + 0.019699685, + 0.022300346, + 0.006476523, + -0.00063446054, + 0.0033262065, + 0.0019834745, + 0.017023643, + 0.008335932, + -0.008819629, + 0.0124693485, + -0.0039826534, + -0.0063100555, + -0.0027105913, + -0.024586916, + -0.0021844916, + -0.01704877, + -0.02062939, + -0.033268347, + 0.0026242167, + 0.009780743, + -0.014448111, + -0.008210296, + -0.01282741, + -0.000073369316, + 0.0118977055, + -0.011169018, + 0.007487891, + -0.013216881, + 0.0072743096, + -0.0021028284, + -0.014862709, + 0.0041208523, + -0.01925996, + -0.025780456, + -0.010955437, + 0.030202834, + 0.026609652, + 0.012105004, + 0.026634779, + 0.007236619, + 0.015139108, + 0.016810063, + 0.020742463, + 0.0022221822, + 0.008254269, + -0.014196839, + 0.0009885964, + -0.015830105, + -0.008241705, + 0.004281038, + 0.0144606745, + 0.039525006, + 0.010189059, + -0.003988935, + -0.009284481, + -0.008160042, + -0.007927616, + 0.0044223783, + -0.027790628, + -0.02143346, + 0.02962491, + 0.021094242, + -0.028469061, + -0.017212098, + -0.005414901, + -0.044299167, + 0.024687424, + 0.009887533, + -0.011589898, + 0.0011440705, + -0.003008976, + -0.008549512, + -0.016433155, + 0.027564483, + -0.0038475948, + -0.014272221, + 0.0029901308, + 0.016558792, + -0.012557293, + 0.0030199692, + -0.0038947081, + -0.011916551, + 0.010798393, + 0.006903684, + 0.01577985, + 0.018141802, + 0.0038381722, + 0.0020745604, + -0.028393678, + 0.034700595, + 0.0039386805, + -0.0065644677, + 0.0024216291, + 0.005006585, + -0.008731685, + 0.024210008, + 0.00952319, + 0.026232744, + 0.005160488, + -0.021521404, + 0.0038790037, + -0.0017761753, + 0.0017039349, + 0.018091548, + -0.010710448, + 0.01071673, + -0.042841792, + 0.019925829, + -0.009039492, + 0.04143467, + 0.0064105643, + 0.0203153, + -0.0050945296, + 0.019473542, + 0.014498365, + 0.017978476, + -0.00815376, + -0.006551904, + 0.0031393233, + 0.005135361, + 0.012324867, + -0.006262942, + -0.0149506545, + 0.03394678, + -0.0037250998, + 0.017362861, + -0.015691904, + 0.0110371, + -0.0070418837, + -0.013128935, + 0.017563878, + -0.007481609, + -0.029222876, + 0.010019451, + 0.043495096, + -0.00082841073, + -0.014272221, + 0.0027844023, + 0.0022614435, + -0.009504344, + 0.039273735, + 0.0025174264, + -0.015968304, + -0.022275219, + 0.019762503, + 0.015026036, + -0.01912176, + 0.011646434, + 0.0014660121, + 0.038143013, + -0.011627588, + 0.024448717, + -0.013116372, + 0.015415506, + -0.007412509, + 0.012412812, + 0.033293474, + -0.0087630935, + 0.0025315604, + 0.0038601584, + 0.006533059, + 0.034248304, + -0.03623335, + -0.02319236, + -0.0006411349, + 0.0020305878, + 0.011300935, + 0.007833389, + -0.0012532166, + 0.035755932, + 0.016910572, + 0.030479232, + -0.007619808, + -0.039952166, + 0.01233743, + 0.10392589, + 0.0136691695, + -0.007714035, + 0.0096613895, + 0.037690725, + 0.0002449897, + -0.009447808, + -0.031785846, + 0.0056284815, + -0.024323082, + -0.008480413, + -0.030504359, + -0.019511232, + 0.0070230383, + 0.035203137, + 0.0220742, + -0.010032015, + -0.0020949761, + -0.0070481654, + -0.013644042, + 0.009479217, + -0.00478044, + -0.005609636, + 0.024059245, + 0.0184182, + 0.021873184, + 0.03015258, + 0.03068025, + 0.00068942615, + -0.0043815468, + -0.010553403, + -0.002083983, + -0.03176072, + 0.03412267, + 0.0020918353, + 0.007186365, + -0.0038350313, + 0.008825911, + 0.0008111358, + 0.00038495578, + 0.010842365, + -0.0039575263, + 0.004350138, + -0.0042433473, + -0.0029304537, + 0.00028719546, + 0.013933005, + 0.025290476, + -0.0067215124, + 0.0051730517, + -0.00006448648, + 0.0016929418, + -0.042339247, + -0.00039104128, + 0.0004452217, + 0.005945712, + 0.0025221377, + -0.008656303, + -0.040530093, + -0.035203137, + -0.011822324, + -0.016357774, + -0.0035900415, + -0.007858516, + 0.0061938423, + -0.017061334, + -0.016784936, + 0.0034172924, + -0.015541142, + -0.026609652, + 0.032665294, + -0.017576441, + -0.0053991964, + -0.035404153, + 0.029951563, + 0.015415506, + -0.007588399, + -0.011929114, + -0.020139411, + 0.026132235, + -0.0020965466, + 0.0019253679, + -0.015629087, + -0.034223177, + -0.017086461, + -0.00079307565, + -0.0027718388, + 0.010647629, + -0.009479217, + 0.025365857, + -0.018393073, + -0.0032194161, + 0.0028927631, + -0.009510626, + 0.007688908, + -0.0077517256, + 0.016558792, + 0.01106851, + 0.012601266, + 0.013417898, + -0.0057195676, + -0.0009878111, + -0.0359067, + -0.023632085, + 0.006551904, + -0.006589595, + 0.0007593111, + -0.011520798, + 0.009673953, + 0.018970998, + 0.017903095, + -0.02326774, + -0.046007812, + 0.001922227, + -0.015214489, + -0.021533968, + 0.036183096, + 0.016722118, + 0.010308413, + -0.0016866599, + 0.0014887836, + -0.0013686444, + -0.0045417324, + 0.024260264, + 0.018669473, + -0.00442866, + 0.0026085123, + -0.02393361, + -0.013229445, + -0.007795698, + 0.018003603, + 0.024260264, + -0.015754722, + -0.0005414116, + -0.00025441239, + 0.0073434096, + -0.013631479, + -0.012814847, + -0.0013058266, + -0.022765197, + -0.010484303, + 0.0037062545, + 0.013329953, + -0.032589912, + -0.0030388148, + -0.02534073, + 0.0032728112, + -0.008266833, + -0.0014181135, + 0.025780456, + -0.030303342, + 0.0077203168, + -0.014008386, + 0.0035586327, + 0.010603657, + -0.019737376, + 0.007996716, + -0.0050097257, + 0.013983259, + 0.024235137, + 0.021131933, + -0.0039166943, + 0.022576744, + 0.01609394, + 0.0013191754, + -0.025906092, + -0.0020934057, + -0.0018546977, + -0.029901309, + 0.035203137, + 0.02049119, + 0.014108894, + -0.009535753, + -0.02512715, + 0.0043312926, + -0.002291282, + -0.0055970727, + 0.0063854367, + -0.03068025, + -0.010339822, + -0.010484303, + 0.004852681, + -0.009158846, + 0.022953652, + -0.029876182, + -0.008693994, + 0.018820236, + 0.007148674, + -0.0027765501, + -0.020503754, + 0.023996428, + -0.0020368695, + 0.0066335676, + -0.014397857, + -0.0071926466, + -0.016420592, + -0.002938306, + -0.044475056, + -0.0118977055, + -0.011803479, + -0.0054494506, + 0.049224086, + 0.00046092615, + 0.020089157, + -0.013430461, + 0.016119067, + -0.015465761, + 0.011514517, + 0.031685337, + -0.028644951, + 0.00056025694, + -0.004846399, + -0.0070670107, + 0.02495126, + -0.0046202545, + 0.014510929, + -0.0069288113, + 0.00829196, + -0.026282998, + -0.01908407, + -0.005769822, + 0.017815148, + 0.024021555, + -0.01789053, + 0.026760414, + -0.005615918, + 0.008134915, + -0.036107715, + -0.010898901, + 0.018217184, + 0.009686517, + 0.013719424, + 0.018568963, + -0.0025394126, + -0.029599782, + 0.011294654, + 0.012488194, + -0.007990434, + -0.0008590344, + 0.02305416, + 0.0025818145, + 0.016119067, + -0.009780743, + -0.010942874, + 0.0010372802, + 0.02653427, + -0.02252649, + 0.038997337, + 0.021081679, + -0.04264077, + 0.005669313, + -0.00060697773, + -0.023782847, + 0.021056551, + -0.0012626393, + 0.0024624607, + 0.00093048974, + -0.005970839, + -0.0070984196, + 0.02414719, + 0.0013592218, + 0.006445114, + -0.0066147223, + 0.020214792, + -0.004987739, + 0.0015539571, + -0.005675595, + -0.017413115, + -0.027966518, + 0.023468757, + -0.042691026, + -0.01015765, + 0.003310502, + -0.022187274, + -0.013166627, + 0.01753875, + -0.012808565, + -0.034223177, + -0.0003087891, + 0.0032728112, + 0.016458282, + 0.0063446052, + -0.0061624334, + 0.0060367975, + -0.0077203168, + -0.017689513, + -0.025592001, + -0.011439135, + 0.016722118, + 0.00020494331, + -0.02182293, + -0.010327258, + -0.011313499, + 0.0077517256, + 0.013769678, + -0.0025959488, + -0.012280894, + 0.016784936, + -0.025001515, + -0.0034110106, + 0.008693994, + 0.026132235, + -0.023066724, + 0.00593943, + -0.016005995, + -0.018506145, + 0.011169018, + -0.018568963, + 0.000058891757, + -0.017551314, + -0.0063037737, + 0.009485499, + -0.0023085568, + 0.009579726, + -0.011300935, + 0.014925527, + -0.013631479, + -0.020466063, + -0.014385293, + 0.03015258, + -0.015365252, + -0.003401588, + -0.018066421, + -0.028092153, + 0.009140001, + -0.009975478, + 0.01560396, + -0.016910572, + 0.0038947081, + 0.0139958225, + -0.018581526, + 0.0139958225, + 0.0026524847, + 0.003012117, + -0.005138502, + 0.002347818, + -0.0003246899, + 0.0076009627, + 0.009655108, + 0.01229974, + 0.025566874, + 0.01335508, + 0.02164704, + -0.0013497991, + -0.0058797533, + -0.025642257, + -0.0047458904, + -0.010308413, + -0.010377513, + 0.008706558, + -0.02080528, + 0.017174406, + 0.028393678, + -0.03862043, + -0.026408635, + 0.017111588, + -0.04610832, + -0.009290763, + 0.011018255, + 0.0065833135, + 0.024687424, + 0.025906092, + 0.004526028, + 0.035931826, + 0.011074792, + -0.010327258, + -0.013882751, + 0.013480715, + -0.005769822, + -0.030529488, + 0.030077199, + 0.0110371, + -0.022991342, + -0.015151671, + 0.011834888, + 0.0017541891, + -0.0055468185, + 0.027463974, + -0.01258242, + -0.02565482, + 0.002580244, + 0.028494189, + -0.009617416, + 0.029725417, + -0.009717925, + -0.054073628, + -0.00593943, + 0.016332647, + -0.004786722, + -0.020968607, + 0.034951866, + -0.014837582, + -0.01929765, + -0.0018845362, + -0.010898901, + -0.0001324083, + 0.012079877, + -0.0028519316, + -0.015377816, + 0.013468152, + -0.009586007, + 0.016571356, + 0.011055946, + -0.0013631479, + -0.0067654853, + -0.017262353, + -0.009045774, + 0.010880056, + 0.00042245022, + -0.02133295, + -0.012318585, + -0.004758454, + 0.00027345406, + 0.0060713477, + -0.0008535379, + -0.0027577046, + 0.00054808595, + -0.024473844, + 0.025956346, + -0.0023870792, + -0.0069225295, + 0.019498669, + -0.038042504, + -0.007268028, + -0.004755313, + -0.024046682, + 0.008034406, + -0.035956953, + 0.006240956, + -0.0049437666, + -0.007154956, + 0.0051950384, + -0.006972784, + -0.018581526, + -0.026735287, + -0.0003380387, + 0.20966093, + 0.0020619968, + -0.0011668421, + 0.025730202, + 0.020089157, + 0.0042967424, + 0.018229747, + 0.017023643, + 0.0014589451, + 0.006382296, + -0.0033073612, + 0.008122351, + -0.009284481, + -0.0006690104, + -0.008279396, + 0.002052574, + -0.02758961, + -0.02696143, + -0.028720332, + 0.038545046, + 0.015101417, + 0.0000063492676, + -0.0010867493, + -0.016068812, + 0.04256539, + -0.0051008114, + 0.009001802, + 0.03145919, + 0.008386186, + -0.0036088869, + -0.011539644, + -0.009271918, + -0.00021966625, + 0.00043344335, + -0.008461568, + -0.0044160965, + 0.003630873, + -0.004098866, + 0.010245595, + -0.004453787, + 0.010886338, + 0.016445719, + 0.011696688, + -0.009140001, + 0.022513926, + 0.007764289, + -0.0112443995, + 0.0028299452, + -0.013882751, + -0.017827712, + -0.031810973, + 0.006401141, + -0.018920744, + 0.037665598, + -0.0052735605, + 0.029147495, + 0.027639864, + 0.004651664, + -0.0063100555, + -0.008901292, + -0.0012728472, + 0.005999107, + -0.0073496914, + 0.021621913, + -0.011376317, + 0.017664386, + -0.012978173, + 0.009196537, + -0.0034926739, + 0.012067313, + 0.017475933, + 0.007594681, + -0.015478324, + 0.0029791377, + -0.0011205139, + -0.020403245, + 0.011715533, + 0.005289265, + 0.021245005, + -0.0014730792, + -0.0040109213, + 0.009064619, + -0.021546531, + 0.0011644864, + 0.004928062, + -0.020855535, + 0.034775976, + -0.0068157394, + -0.011181582, + 0.0076700626, + 0.014071204, + 0.0025095742, + -0.013166627, + -0.0026352098, + 0.021910874, + 0.021245005, + 0.0024294814, + 0.025642257, + -0.033645254, + -0.015930614, + -0.025780456, + 0.036610257, + 0.0030639418, + -0.0012924777, + 0.0105345575, + -0.010000606, + -0.004912358, + 0.013606352, + 0.006272365, + -0.008606049, + -0.0062535196, + -0.017475933, + 0.0315597, + -0.020403245, + -0.0029618628, + -0.0034141515, + 0.015993431, + -0.023292867, + 0.0184182, + 0.00088887295, + 0.007707753, + -0.0049531893, + 0.0036968319, + -0.012789719, + 0.006551904, + -0.017161842, + -0.009341018, + 0.0018531273, + 0.0076763444, + -0.010993128, + 0.035831317, + -0.038017377, + -0.0038570175, + -0.010647629, + 0.0062283925, + -0.018405637, + 0.01974994, + -0.0152773075, + 0.0005135361, + 0.016935699, + -0.0038507357, + 0.008185169, + 0.011451699, + -0.0061090384, + -0.0033167838, + -0.004164825, + 0.013757114, + -0.0026399211, + -0.025227658, + 0.01799104, + -0.0012602836, + -0.005691299, + -0.011225554, + 0.006683822, + -0.013066118, + -0.025014078, + -0.016508538, + -0.01912176, + 0.00815376, + 0.013920441, + -0.02446128, + 0.015566269, + 0.020830408, + 0.013078681, + -0.016458282, + 0.0011652716, + -0.15709494, + 0.043520223, + 0.013040991, + -0.0011189434, + 0.015415506, + 0.0027545637, + 0.03377089, + -0.012431657, + -0.027740374, + 0.015239616, + 0.018807672, + 0.018531272, + -0.027338339, + -0.009812152, + 0.010691602, + -0.014548619, + 0.00009358882, + -0.0016976531, + 0.016294956, + 0.023355685, + 0.02076759, + -0.014711946, + 0.008957829, + -0.0059268665, + 0.0042087976, + 0.0075507085, + -0.027740374, + 0.016433155, + -0.000752244, + -0.01887049, + -0.018996125, + 0.0004723119, + 0.041510053, + 0.037690725, + 0.0015570981, + -0.00797787, + 0.00060737034, + -0.034424197, + -0.012632675, + 0.01370686, + 0.03623335, + 0.023770284, + 0.015943177, + 0.00685343, + 0.0031047734, + -0.0017526187, + -0.012042186, + -0.013367644, + -0.009717925, + -0.010107396, + 0.02512715, + 0.008342214, + 0.00221433, + -0.022162147, + 0.025642257, + 0.039198354, + 0.01771464, + 0.0005959846, + 0.024222573, + -0.02309185, + -0.01724979, + 0.0103712315, + -0.014247094, + -0.03904759, + -0.020076593, + -0.009975478, + -0.0042936015, + 0.009045774, + -0.018041294, + 0.009322173, + 0.015767286, + 0.010924028, + 0.008888729, + -0.006771767, + 0.012808565, + 0.0044663507, + -0.013618915, + 0.0051447838, + -0.0076386537, + -0.004573141, + -0.0017447665, + 0.025491493, + -0.016596483, + 0.011275808, + -0.0064294096, + 0.01939816, + 0.021559095, + -0.008059533, + -0.0071612378, + -0.004318729, + 0.016370337, + -0.016533665, + -0.008656303, + 0.0011958953, + 0.008461568, + 0.0010569107, + 0.012268331, + 0.020340428, + 0.0167975, + -0.009830997, + -0.0067843306, + -0.0000061621636, + -0.023167232, + -0.0023321137, + 0.018393073, + 0.010854929, + -0.004070598, + 0.020930916, + 0.023669776, + -0.00839875, + -0.014272221, + 0.00446321, + 0.010597375, + 0.0062598013, + -0.0042590518, + 0.026433762, + 0.0038538766, + 0.0007086641, + 0.029298257, + -0.0016568215, + 0.02309185, + -0.017061334, + -0.00074517704, + 0.0035366463, + -0.008455286, + -0.028695205, + -0.113876246, + -0.018104112, + 0.010892619, + 0.00505998, + 0.0013207458, + 0.005531114, + 0.0019866154, + -0.0008951547, + -0.0041114297, + 0.02305416, + -0.0012147407, + 0.0036591412, + -0.012783437, + -0.0077014714, + 0.023368249, + -0.021672167, + 0.021169623, + -0.014196839, + 0.0060807704, + 0.0034172924, + -0.0056536086, + -0.021973692, + 0.0011605602, + -0.016119067, + -0.012136414, + -0.007996716, + -0.020591699, + -0.002804818, + 0.0004522887, + 0.0027765501, + -0.015704468, + -0.021697294, + 0.013128935, + -0.026986558, + 0.010735575, + -0.00015812437, + -0.03384627, + -0.021408333, + 0.007261746, + -0.0015374675, + 0.0067529213, + 0.0260066, + 0.038821448, + -0.04037933, + -0.008731685, + -0.023694903, + -0.028443934, + 0.015867796, + -0.000021949449, + 0.0045417324, + -0.01953636, + -0.013430461, + -0.022928525, + -0.0049814573, + 0.020352991, + 0.040429585, + 0.0035649145, + 0.037715852, + 0.0092279455, + 0.012915355, + 0.0071675195, + 0.0037753542, + -0.02635838, + 0.003546069, + -0.0128776645, + -0.008317087, + -0.013719424, + -0.010911465, + 0.021295259, + -0.004698777, + -0.023519013, + 0.029951563, + -0.022111893, + 0.005458873, + -0.032162752, + 0.011640152, + -0.027715245, + 0.0018060139, + 0.02186062, + 0.02186062, + -0.012400248, + -0.018154366, + 0.003922976, + -0.019222269, + 0.024586916, + 0.033544745, + 0.012532166, + -0.0069288113, + 0.013656606, + -0.008147478, + -0.0042182202, + 0.027966518, + -0.0022111891, + -0.025177404, + -0.003602605, + -0.0033293474, + 0.012657802, + -0.02137064, + 0.009077183, + 0.022815453, + -0.007004193, + 0.00720521, + -0.038469665, + 0.028268043, + -0.024210008, + 0.00078993477, + -0.025981473, + 0.018857926, + 0.019058943, + 0.0041805296, + -0.008492976, + -0.0065644677, + -0.025416112, + -0.0034832512, + -0.0021358076, + 0.010057142, + -0.009780743, + -0.027639864, + 0.009994323, + 0.017073898, + 0.009761898, + 0.004808708, + -0.01106851, + -0.0007165164, + 0.024008991, + 0.013769678, + -0.02741372, + -0.007538145, + -0.0072303372, + 0.009642543, + -0.010459176, + -0.014196839, + 0.024260264, + -0.010069706, + -0.0047772992, + 0.0022708662, + -0.018493582, + -0.03781636, + 0.00033313103, + 0.04733955, + 0.017802585, + 0.03862043, + -0.050128665, + -0.026509143, + 0.026107108, + -0.03862043, + -0.027916264, + -0.013794805, + -0.0017981617, + 0.0025080037, + 0.012645238, + -0.006803176, + 0.018682037, + 0.005000303, + -0.010810956, + -0.022338036, + -0.0034801103, + -0.01630752, + 0.02252649, + -0.020365555, + -0.011935396, + -0.027363466, + 0.00033902022, + 0.00829196, + 0.005735272, + -0.015717031, + 0.019925829, + 0.011790915, + -0.014900399, + -0.02111937, + 0.0048589627, + 0.004676791, + -0.0030136874, + -0.0037941996, + 0.012463067, + -0.023820538, + -0.0011370035, + -0.011018255, + 0.025026642, + -0.01071673, + -0.00864374, + 0.003191148, + -0.0051008114, + 0.012400248, + -0.030881267, + 0.015566269, + 0.015415506, + 0.024699988, + -0.009045774, + -0.009146282, + 0.00001831779, + 0.020013776, + -0.0353539, + 0.007852234, + -0.035454407, + -0.009121155, + -0.0011519227, + -0.005207602, + -0.03085614, + 0.014033513, + -0.001507629, + 0.011903987, + 0.007456482, + -0.0046391, + 0.0024891582, + -0.034172922, + -0.021998819, + -0.013053554, + -0.013066118, + -0.01626983, + -0.006262942, + -0.01229974, + -0.005355224, + 0.0026524847, + 0.0046139727, + -0.012450502, + -0.01704877, + 0.00056379044, + 0.0067654853, + -0.008367341, + 0.005851485, + 0.027011685, + 0.023833102, + 0.031986862, + 0.0038193269, + 0.00875053, + 0.009542035, + -0.01630752, + 0.0035020965, + -0.020051466, + -0.0034235741, + 0.0019285087, + 0.00829196, + 0.01335508, + -0.0012249486, + -0.01194796, + -0.009183973, + -0.027891137, + -0.0147622, + 0.023343122, + -0.00010757561, + 0.030428978, + 0.02358183, + 0.005386633, + -0.0006124743, + -0.0069916295, + 0.03640924, + -0.003486392, + 0.024901005, + 0.0061530108, + -0.010653911, + -0.00260066, + -0.0004255911, + -0.005882894, + -0.015804978, + 0.0016929418, + 0.033218093, + 0.015164235, + 0.023242613, + -0.016282393, + 0.018744854, + 0.032489404, + -0.010320976, + 0.024348209, + 0.016156757, + -0.020076593, + -0.029499274, + 0.025780456, + -0.008116069, + -0.015892923, + -0.029775672, + -0.006269224, + -0.0064388323, + -0.015830105, + -0.01588036, + -0.014046077, + -0.008737966, + 0.01683519, + -0.031408936, + 0.01591805, + 0.01799104, + -0.021056551, + 0.00369055, + 0.0084364405, + -0.026157362, + -0.027815755, + -0.009265636, + -0.012789719, + 0.012990736, + 0.012167823 + ] + } + ], + "model": "text-embedding-ada-002", + "usage": { + "prompt_tokens": 36, + "total_tokens": 36 + } + } + } +} \ No newline at end of file