Moorcheh icon

Moorcheh

Interact with Moorcheh Vector Store API

Actions11

Namespace → Create

AI-generated

Overview

This node operation creates a new namespace in the Moorcheh Vector Store API. It allows users to define a namespace with a specific name and type, either 'text' or 'vector'. For vector namespaces, users can also specify the vector dimension. This operation is useful for organizing and categorizing data within the Moorcheh vector store, enabling efficient storage and retrieval of text or vector data.

Use Case Examples

  1. Creating a text namespace named 'CustomerData' to store textual information.
  2. Creating a vector namespace named 'ImageVectors' with a dimension of 1536 for storing image embeddings.

Properties

Name Meaning
Namespace Name The name of the namespace to be created.
Type The type of the namespace, either 'text' or 'vector'.
Vector Dimension The dimension of the vectors if the namespace type is 'vector'.

Output

JSON

  • json - The response from the Moorcheh API after creating the namespace, containing details of the created namespace.

Dependencies

  • Moorcheh API key credential for authentication

Troubleshooting

  • Ensure the 'Namespace Name' is unique and valid to avoid conflicts.
  • If 'Type' is set to 'vector', ensure 'Vector Dimension' is a positive integer.
  • Check API key credentials if authentication errors occur.
  • Handle JSON parsing errors if metadata input is malformed.

Discussion