Buckets:
bbkdevops/unicosys-hypergraph-bucket / tinymind-native-colab-handoff /bundle /model /tinymind-orchestrator /api.py
| from __future__ import annotations | |
| from typing import Any | |
| from fastapi import FastAPI | |
| from pydantic import BaseModel | |
| from orchestrator import TinyMindOrchestrator | |
| class GenerateRequest(BaseModel): | |
| query: str | |
| top_k: int = 5 | |
| app = FastAPI(title="TinyMind Orchestrator", version="1.0.0") | |
| orch = TinyMindOrchestrator() | |
| def health() -> dict[str, Any]: | |
| return { | |
| "ok": True, | |
| "apex_retrieval": True, | |
| "neural_core": orch.apex.neural is not None, | |
| "tiny_12b_adapter_available": orch.has_12b(), | |
| "ollama_tinymind_apex_local_available": orch.has_ollama_model(), | |
| } | |
| def generate(req: GenerateRequest) -> dict[str, Any]: | |
| return orch.generate(req.query, req.top_k) | |
Xet Storage Details
- Size:
- 761 Bytes
- Xet hash:
- e55c850140e6899ccdc66ec69043f525691d2830f6c7a5ae63443f77ccf67278
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.