Legacy
Legacy Client Methods
Deprecated legacy Python SDK API. Moorcheh no longer supports these methods-use the resource-based client instead.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Deprecated legacy Python SDK API. Moorcheh no longer supports these methods-use the resource-based client instead.
MoorchehClient with client.namespaces, client.documents, client.answer, etc.) as shown in the Python SDK introduction and the migration table below.| Deprecated Method | New Method |
|---|---|
create_namespace | client.namespaces.create |
delete_namespace | client.namespaces.delete |
list_namespaces | client.namespaces.list |
upload_documents | client.documents.upload |
get_documents | client.documents.get |
delete_documents | client.documents.delete |
upload_vectors | client.vectors.upload |
delete_vectors | client.vectors.delete |
search | client.similarity_search.query |
get_generative_answer | client.answer.generate |
client.namespaces.create instead.client.create_namespace(namespace_name="my-ns", type="text")
client.namespaces.delete instead.client.delete_namespace("my-ns")
client.namespaces.list instead.client.list_namespaces()
client.documents.upload instead.client.upload_documents("my-ns", [{"id": "1", "text": "hello"}])
client.documents.get instead.client.get_documents("my-ns", ["1"])
client.documents.delete instead.client.delete_documents("my-ns", ["1"])
client.vectors.upload instead.client.upload_vectors("my-ns", [{"id": "1", "vector": [0.1, 0.2]}])
client.vectors.delete instead.client.delete_vectors("my-ns", ["1"])
client.similarity_search.query instead.client.search(namespaces=["my-ns"], query="hello")
client.answer.generate instead.client.get_generative_answer("my-ns", "What is...?")
Was this page helpful?