Start Docker + call API from Python (embeds text locally)
MoorchehEdgeApiClient
Talk to an already running server (raw HTTP)
SDK example (text store)
from moorcheh_edge import MoorchehEdgewith MoorchehEdge(port=8080) as edge: print(edge.health()) edge.upload_documents([{"id": "doc-1", "text": "Hello world"}]) for hit in edge.search_text("Hello world", top_k=5): print(hit["id"], hit["score"]) result = edge.answer_text("Who won the football match?", top_k=5) print(result["answer"])
from moorcheh_edge import MoorchehEdgeApiErrortry: client.upload({"store_mode": "vector", "items": [...]})except MoorchehEdgeApiError as exc: if exc.is_item_limit_exceeded: print(exc.body)