Overview: Vector Store Training
This document outlines the complete process to train the Vector Store for the casters namespace, covering:
- Executing the vector store training endpoint
- Resetting the trained flag if retraining is needed
- Viewing partitions created after training
-
Train the Vector Store
- To train the Vector Store for an entity, use the endpoint:
[PUT]: /vector-store/entity/records- storename: Always use "casters"
- entity: Use the appropriate entity name (e.g., products, posts, etc.)
- To train the Vector Store for an entity, use the endpoint:
-
Retrain after a failed/invalid run
-
If the previous training did not work as expected, clear the trained flag for all documents before re-running the training.
[DELETE]: /woocommerce-store/entity/vector-train-flag/- storename: Always use "casters"
- entity: Use the same entity name you want to retrain.
-
After clearing the trained flag, repeat Step 1 to re-run training.
-
-
View created partitions
- To view all partitions created for the namespace, use the endpoint from the Kray Doc Search server:
[GET]: /kb/namespace/partitions- namespace: Always use "casters"
- To view all partitions created for the namespace, use the endpoint from the Kray Doc Search server:
Now you are done with the Vector Store Training 🎉.