LogoLogo
  • 👋Welcome to Groclake
  • ⏩Jump right in
  • 🗣️Introduction to Groclake
  • 🧠High level Concepts
    • Agent Discovery
    • Agent Registry
    • Agent Communication
      • Agent Text Transfer Protocol - ATTP
    • Agent Security
      • Agent Private Cloud - APC
      • Authentication & Encryption
      • Zero Trust Policy
  • 💽Installation & Guide
  • 🏗️Groclake Use Cases
  • 📰Groclake Records
  • Example Codes
  • GrocAgent
    • What is GrocAgent?
    • Example Chat Agent
    • Reflections in GrocAgent
      • Workflow of Reflection Handler
  • Lakes
    • 💾Data & Model Management
      • Datalake
        • Create Datalake
        • Retrieve Document
        • Upload Documents
        • Datalake Connections
          • Snowflake integration
      • Vectorlake
        • Creating vector
        • Generating Vector
        • Pushing Vector
        • Retrieve Document
        • Searching Vector
      • Modellake
        • Create Modellake
        • Language Translation
        • Conversation AI
        • Text to Speech
        • Chat Completion
      • Knowledgelake
        • Create Knowledge Base
        • Push Documents from a URL
        • Push Documents from Local Storage
        • Searching for Information
    • ⚒️Tool Management & Gateway
      • Toollake
        • Tools
        • Salesforce CRM Integration
        • Slack Communication Module
        • New Relic Integration
        • Google Calendar Integration
          • Check Slot Availability
          • Get Available Slots
          • Delete Event
          • Create new event
          • Create new calendar event
    • 🤖Agent Management & Deployment
      • Agentlake
        • Register your agent
        • Fetch agent details & categories
        • Create Agent Private Cloud (APC)
        • Assign Agent Private Cloud (APC) to an Agent
      • Promptlake
        • Setting Connection & Initializing
        • Storing a Prompt
        • Fetching a Prompt
        • Example API Calls
      • Memorylake
        • Context Component Examples
        • Value Structure
        • Setup & Guide
        • Storing & Retrieving Memory
        • Wildcard Search
        • Updating Memory Quality
    • 🗃️Index Stores
      • Cataloglake
        • Create catalog
        • Generate Product Data
        • Fetch Catalog Data
        • Push Product Data
        • Optimize Data Retrieval with Catalog Caching
        • Search for Products
        • Filter Product Search
        • Update Product Data
        • Recommend Products Based on Product Name
        • Update Inventory in Catalog
        • Fetch Inventory Details from Catalog
        • Fetch Product Price
        • Update Product Price in Catalog
        • Cache Image in Catalog
        • Sync Your Catalog with external ecomm platforms
        • Deleting items
        • Address Parsing and Intent Extraction
        • Creating Mapper
        • Convert Mapper's Metadata
        • Fetching Mapper
        • Updating Mapper
        • Example use case of Cataloglake
      • Joblake
        • Joblake Mapping
        • Creating a Joblake
      • Resumelake
        • Resumelake Mapping
        • Creating a Resumelake
Powered by GitBook
On this page
  1. Lakes
  2. Index Stores
  3. Cataloglake

Convert Mapper's Metadata

The convert_mapper method in the Cataloglake allows users to apply an existing metadata mapper to a given set of metadata. It translates the input metadata keys into the mapped keys as defined in the specified mapper, enabling seamless integration and standardized metadata processing.

Example Payload

metadata_convert_payload = {
                          "customer_id": "121287096096",
                          "mapper_id": "79ca0c06-bd0f-4df9-af23-aa3dd126839f",
                          "input_type": "key_value",
                          "metadata": {
                            "address_of_manufacturer": "236, society, Bangalore",
                            "fssai_number": "12331233",
                            "marketing_fssai_num": "33443344",
                            "fssai_number_of_manufacturer": "66776677",
                            "fabric_colour": "red"
                                      }
                          }

Usage Example

metadata_convert_response = cataloglake.convert_mapper(metadata_convert_payload)
print(metadata_convert_response)

Example Response

{
  "customer_id": "121287096096",
  "mapper_id": "79ca0c06-bd0f-4df9-af23-aa3dd126839f",
  "input_type": "key_value",
  "product_metadata_data": {
    "items": [
      {
        "client_item_id": "",
        "client_category": "",
        "client_category_id": "",
        "product_type": "",
        "name": "",
        "description": "",
        "short_description": "",
        "category": "",
        "provider": "",
        "variant_group_id": "",
        "variant": "",
        "brand": "",
        "location_id": [],
        "inventory_info": {
          "qty": "",
          "min_qty": "",
          "max_qty": "",
          "is_in_stock": "1"
        },
        "pricing_info": {
          "mrp": null,
          "sale_price": "",
          "discount_start_date": "",
          "discount_end_date": "",
          "discounted_price": ""
        },
        "attributes": {
          "manufacturer_address": "",
          "fssai_number": "",
          "marketing_fssai_number": "33443344",
          "colour": "red"
        }
      }
    ]
  }
}
PreviousCreating MapperNextFetching Mapper

Last updated 4 months ago

🗃️