Skip to main content

answer.generate

Generate AI-powered answers with RAG (retrieve from a text namespace) or direct LLM calls. Configure the LLM provider (Ollama, OpenAI, or Cohere) with moorcheh configure before use.
API: POST /answer — see Generate AI Answer

Search Mode (RAG)

Direct AI Mode

Use an empty namespace string:

With chat history

Structured output

Parameters

Response