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 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 |
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.
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
search
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...?")