Skip to content

Commit b1709d7

Browse files
authored
docs: add read me (#2)
1 parent 3a866e6 commit b1709d7

File tree

4 files changed

+38
-29
lines changed

4 files changed

+38
-29
lines changed

README.md

+38-29
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,55 @@
1-
# XRecommend
1+
# Recommendations Module
22

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.
84

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
146

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.
168

17-
Short description of the new module functional requirements.
189

19-
## Scenarios
10+
![image](./docs/media/recommendations_frontend.png)
2011

21-
List of scenarios that the new module implements
12+
![image](./docs/media/recommendations_setting.png)
2213

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
2915

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)
3120

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
3422

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.
3627

37-
![DB model](./docs/media/diagram-db-model.png)
3828

39-
## Related topics
29+
## XAPI Specification
4030

41-
[Some Article1](some-article1.md)
31+
### Query
4232

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+
```
4453

4554
## License
4655

docs/media/.keep

Whitespace-only changes.
339 KB
Loading
107 KB
Loading

0 commit comments

Comments
 (0)