Self-hosted, open-source Moorcheh - The Information-Theoretic Search Engine for RAG & Agentic Memory
PyPI · Documentation · Contributing · Apache 2.0
Install
pip install moorcheh-client
Requirements: Python 3.10+, Docker, and an embedding provider (Ollama, OpenAI, or Cohere).
Quick start
moorcheh up # first run prompts for embedding/LLM config
moorcheh status # health + quota
API: http://localhost:8080 · Data: ~/.moorcheh/data
from moorcheh import MoorchehClient
client = MoorchehClient("http://localhost:8080")
client.namespaces.create("docs", type="text")
job = client.documents.upload("docs", documents=[
{"id": "doc-1", "text": "Hello from Moorcheh on-prem"},
])
# poll job["job_id"] until completed, then search or answer
results = client.similarity_search.query(
namespaces=["docs"],
query="Hello",
top_k=5,
)
answer = client.answer.generate(
namespace="docs",
query="What is in my documents?",
)
moorcheh down # stops containers; data is kept
CLI
Common commands: moorcheh up, moorcheh down, moorcheh status, moorcheh namespace-create, moorcheh upload-documents, moorcheh search, moorcheh answer.
Run moorcheh --help or see docs.moorcheh.ai/on-prem for the full CLI and API reference.
Test endpoints
With the server running:
python test.py
Project layout
| Path | Purpose |
|---|---|
moorcheh/client/ |
Python SDK |
moorcheh/cli/ |
CLI and Docker runtime |
test.py |
Live endpoint integration test |
Contributing
See CONTRIBUTING.md.
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moorcheh_client-0.1.5.tar.gz.
File metadata
- Download URL: moorcheh_client-0.1.5.tar.gz
- Upload date:
- Size: 51.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5061ba32065e66ffa19375c51887465a644652eeb3814fd8872cb9c049083747
|
|
| MD5 |
ec7cd92a29034e76f57bfbc6080bcc48
|
|
| BLAKE2b-256 |
f7a951298d66df8b3912a8b593743c3401616f09f87d2a8fc6d5dbe52b05e860
|
File details
Details for the file moorcheh_client-0.1.5-py3-none-any.whl.
File metadata
- Download URL: moorcheh_client-0.1.5-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cc315625f1630cb671f786d26adac8cc02b031cc90b637bc904d8b3813f2f44
|
|
| MD5 |
3e9dded27bfa82a944707190c8c7b51e
|
|
| BLAKE2b-256 |
654111c6714f9fdcd56ce30943ca829c4b1502505ba2489e98f2514aa6e5d802
|