Olaverse Lab
v0.3.1Document extraction, decisions, language ID (608), diacritics, questions in 324 languages.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
extract_document
Turn a document into JSON shaped like `template`, with a calibrated confidence (0-1) for every field. template: the shape of the answer; each leaf names a type: "verbatim-string" (copied exactly), "string", "number", "integer", "date" (YYYY-MM-DD), "date-time", "boolean", ["a", "b"] (pick one), [["a", "b"]] (pick any), ["string"] (a list), or [{...}] (a list of objects, e.g. line items). Example: {"merchant": "verbatim-string", "total": "number", "date": "date", "items": [{"name": "verbatim-string", "price": "number"}]} Give the document as exactly on…
| Parameter | Type | Description |
|---|---|---|
template * | object | |
file_path | ||
image | ||
instructions | ||
pdf | ||
text |
get_extraction_job
The result of a long-document extraction job that extract_document left running (by its id, exj_...).
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
decide
Answer typed questions about a message, ticket, record or form, with a calibrated probability for each answer. state: the thing to decide about: a string (e.g. a customer message) or a JSON object (a record). questions: {question_id: {...}}, each one of: {"type": "noul", "instructions": "The customer is asking for a refund."} -> probability it's true {"type": "choice", "instructions": "Which team?", "criteria": {"billing": "payments", "delivery": "orders"}} {"type": "score", "instructions": "How urgent?", "criteria": ["can wait", "today", "immediately"]}…
| Parameter | Type | Description |
|---|---|---|
questions * | object | |
state * |
detect_language
Identify the language of a text among 608 languages (built African-first; good on very short text). mode: "traffic" (user messages and chat; favours languages people actually use) or "coverage" (all languages equal, for building corpora). Returns the ISO 639-3 code, script, name, confidence and runners-up.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
mode | string | |
top_k | integer |
restore_diacritics
Put back diacritics, tone marks or Arabic vowel marks in text typed without them. language: yor (Yorùbá), ibo (Igbo), hau (Hausa), vie, pol, tur, por, spa, fra, ita or ara (Arabic). Example: "se eranko naa si gbo o?" (yor) -> "ṣé ẹranko náà sì gbọ́ ọ?"
| Parameter | Type | Description |
|---|---|---|
language * | string | |
text * | string |
generate_questions
Write the questions a passage answers (MIST-QG-1.1, passages in 324 languages). Useful for FAQs, study cards and search or RAG training data. passage: up to 100,000 characters (long ones are split into ~2,000-character chunks and the questions spread over them). n: 1 to 100 (at most 5 per 2,000 characters), or "auto" to write as many as the passage supports. language: the passage's language (detected when left out). question_language: write the questions in another language: English or French for any passage, or one of 30 widely spoken languages (Spanish, Hindi, Chinese, S…
| Parameter | Type | Description |
|---|---|---|
passage * | string | |
language | ||
n | ||
question_language |