Skip to content

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

  1. Train the Vector Store

    1. 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.)
  2. Retrain after a failed/invalid run

    1. 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.
    2. After clearing the trained flag, repeat Step 1 to re-run training.

  3. View created partitions

    1. 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"

Now you are done with the Vector Store Training 🎉.