Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt

Use this file to discover all available pages before exploring further.

Deprecated and unsupported. The legacy client methods on this page are not supported. They may be removed or break without notice. Do not use them in new code. Migrate to the resource-based client (MoorchehClient with client.namespaces, client.documents, client.answer, etc.) as shown in the Python SDK introduction and the migration table below.

Migration Guide

Deprecated MethodNew Method
create_namespaceclient.namespaces.create
delete_namespaceclient.namespaces.delete
list_namespacesclient.namespaces.list
upload_documentsclient.documents.upload
get_documentsclient.documents.get
delete_documentsclient.documents.delete
upload_vectorsclient.vectors.upload
delete_vectorsclient.vectors.delete
searchclient.similarity_search.query
get_generative_answerclient.answer.generate

Namespaces

create_namespace

Deprecated. Use client.namespaces.create instead.
Creates a new namespace.
client.create_namespace(namespace_name="my-ns", type="text")

delete_namespace

Deprecated. Use client.namespaces.delete instead.
Deletes a namespace and all its data.
client.delete_namespace("my-ns")

list_namespaces

Deprecated. Use client.namespaces.list instead.
Lists all available namespaces.
client.list_namespaces()

Documents

upload_documents

Deprecated. Use client.documents.upload instead.
Uploads text documents to a text-based namespace.
client.upload_documents("my-ns", [{"id": "1", "text": "hello"}])

get_documents

Deprecated. Use client.documents.get instead.
Retrieves documents by their IDs.
client.get_documents("my-ns", ["1"])

delete_documents

Deprecated. Use client.documents.delete instead.
Deletes documents by their IDs.
client.delete_documents("my-ns", ["1"])

Vectors

upload_vectors

Deprecated. Use client.vectors.upload instead.
Uploads pre-computed vectors to a vector-based namespace.
client.upload_vectors("my-ns", [{"id": "1", "vector": [0.1, 0.2]}])

delete_vectors

Deprecated. Use client.vectors.delete instead.
Deletes vectors by their IDs.
client.delete_vectors("my-ns", ["1"])

Search & Answer

Deprecated. Use client.similarity_search.query instead.
Performs a semantic search.
client.search(namespaces=["my-ns"], query="hello")

get_generative_answer

Deprecated. Use client.answer.generate instead.
Generates an AI answer based on a search query.
client.get_generative_answer("my-ns", "What is...?")