|
1 |
| -# XRecommend |
| 1 | +# Recommendations Module |
2 | 2 |
|
3 |
| -## Overview |
4 |
| - |
5 |
| -Short overview of what the new module is. |
6 |
| - |
7 |
| -- What is the new or updated experience? |
| 3 | +Recommendations Module adds an extendable query to VirtoCommerce Platform that lets you display recommendations. |
8 | 4 |
|
9 |
| -- Does this module replace an existing module/experience? If yes, what is the transition plan? |
10 |
| - |
11 |
| -- Does this module has dependency on other ? If yes, list/explain the dependencies. |
12 |
| - |
13 |
| -- List the key deployment scenarios - why would people use this module? |
| 5 | +## Overview |
14 | 6 |
|
15 |
| -## Functional Requirements |
| 7 | +Recommendations Module adds XAPI product recommendations query to VirtoCommerce Platform GraphQL schema. The API provides a list of recommended products based on semantic similarities in product names and other searchable properties. The module is designed to be plug-and-play, integrating seamlessly with back-end and front-end to enhance the user experience by offering intelligent product recommendations. |
16 | 8 |
|
17 |
| -Short description of the new module functional requirements. |
18 | 9 |
|
19 |
| -## Scenarios |
| 10 | + |
20 | 11 |
|
21 |
| -List of scenarios that the new module implements |
| 12 | + |
22 | 13 |
|
23 |
| -1. [Scenario 1](/doc/scenario-name1.md) |
24 |
| -1. [Scenario 2](/doc/scenario-name2.md) |
25 |
| -1. [Scenario 3](/doc/scenario-name3.md) |
26 |
| - 1. [Scenario 3.1](/doc/scenario-name31.md) |
27 |
| - 1. [Scenario 3.2](/doc/scenario-name32.md) |
28 |
| -1. [Scenario 4](/doc/scenario-name4.md) |
| 14 | +## Requirements |
29 | 15 |
|
30 |
| -## Web API |
| 16 | +* [VirtoCommerce.Xapi](https://github.com/VirtoCommerce/vc-module-x-api) module version 3.800 or higher |
| 17 | +* [VirtoCommerce.XCatalog](https://github.com/VirtoCommerce/vc-module-x-catalog) module version 3.800 or higher |
| 18 | +* [VirtoCommerce.ElasticSearch8](https://github.com/VirtoCommerce/vc-module-elastic-search-8) module module version 3.805 or higher |
| 19 | +* **Semantic Search and ELSER Model** should be set up for Elastic Search 8 module. See: [Semantic Search and ELSER Model Setup](https://github.com/VirtoCommerce/vc-module-elastic-search-8?tab=readme-ov-file#semantic-search-and-elser-model-setup) |
31 | 20 |
|
32 |
| -Web API documentation for each module is built out automatically and can be accessed by following the link bellow: |
33 |
| -<https://link-to-swager-api> |
| 21 | +## Features |
34 | 22 |
|
35 |
| -## Database Model |
| 23 | +* **Semantic Similarity**: Utilizes Elastic Search machine learning model to recommend products that are semantically similar to the given product. |
| 24 | +* **Customizable**: Parameters such as the number of recommendations can be easily adjusted. |
| 25 | +* **Extendable**: You can extend the current `related-products` model or add your own custom recommendation algorithms. |
| 26 | +* **Easy Integration**: Provides a toggle setting to your store setting to enable or disable recommendations on your front-end app. |
36 | 27 |
|
37 |
| - |
38 | 28 |
|
39 |
| -## Related topics |
| 29 | +## XAPI Specification |
40 | 30 |
|
41 |
| -[Some Article1](some-article1.md) |
| 31 | +### Query |
42 | 32 |
|
43 |
| -[Some Article2](some-article2.md) |
| 33 | +```js |
| 34 | +query { |
| 35 | + recommendations( |
| 36 | + storeId:"Electronics" |
| 37 | + cultureName: "en-US" |
| 38 | + model: "related-products" |
| 39 | + productId: "Product-ID-12345" |
| 40 | + currencyCode: "USD" |
| 41 | + maxRecommendations: 5 |
| 42 | + ) |
| 43 | + { |
| 44 | + products |
| 45 | + { |
| 46 | + id |
| 47 | + name |
| 48 | + code |
| 49 | + } |
| 50 | + } |
| 51 | +} |
| 52 | +``` |
44 | 53 |
|
45 | 54 | ## License
|
46 | 55 |
|
|
0 commit comments