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. Data & Model Management
  3. Modellake

Language Translation

Translate text seamlessly across languages using the ModelLake().translate() method. Specify the source and target language codes, input text, and model (e.g., OpenAI) for accurate and efficient translations. Example: Translate "red shirt under Rs 500" from English (en) to Malayalam (ml). Request Payload & Method

translate_request={
                  "text": [
                      "red shirt under Rs 500"
                  ],
                  "source_lang_code": "en",
                  "target_lang_code": "ml",
                  "model": "openai"
              }

text = modellake.translate(translate_request)
print("Translated Text:", text)

Example Response

Translated Text: {'translated_text': ['500 เดฐเต‚เดชเดฏเดฟเตฝ เดคเดพเดดเต†เดฏเตเดณเตเดณ เดšเตเดตเดจเตเดจ เดทเตผเดŸเตเดŸเต']}
PreviousCreate ModellakeNextConversation AI

Last updated 4 months ago

๐Ÿ’พ