lilbee (0.6.90b420.dev725)

Download OpenAPI specification:

Local knowledge base REST API

HealthRoute

Responses

Response samples

Content type
application/json
{
  • "status": "string",
  • "version": "string",
  • "chat_ready": false,
  • "chat_status": "ready",
  • "chat_error": "string",
  • "chat_ctx": 0
}

WarmStreamRoute

Responses

Response samples

Content type
application/json
null

StatusRoute

Responses

Response samples

Content type
application/json
{
  • "command": "status",
  • "config": {
    },
  • "sources": [
    ],
  • "total_chunks": 0,
  • "entities": {
    }
}

ShutdownRoute

Responses

Response samples

Content type
application/json
{
  • "status": "shutting_down"
}

ConfigRoute

Responses

Response samples

Content type
application/json
{ }

ConfigUpdateRoute

Request Body schema: application/json
required
property name*
additional property
any

Responses

Request samples

Content type
application/json
{
  • "property1": null,
  • "property2": null
}

Response samples

Content type
application/json
{
  • "updated": [
    ],
  • "reindex_required": true
}

ConfigDefaultsRoute

Responses

Response samples

Content type
application/json
{ }

SourceContentRoute

query Parameters
source
required
string
raw
boolean
Default: false

Responses

Response samples

Content type
application/json
Example
{
  • "markdown": "string",
  • "content_type": "string",
  • "title": "string"
}

SearchRoute

query Parameters
q
required
string
top_k
integer [ 1 .. 100 ]
Default: 5
string or null

Responses

Response samples

Content type
application/json
[
  • {
    }
]

AskRoute

Request Body schema: application/json
required
question
required
string
top_k
integer [ 0 .. 100 ]
Default: 0
object or null
ChunkType (string) or null

Responses

Request samples

Content type
application/json
{
  • "question": "string",
  • "top_k": 0,
  • "options": {
    },
  • "chunk_type": "raw"
}

Response samples

Content type
application/json
{
  • "answer": "string",
  • "sources": [
    ],
  • "cited_sources": [
    ],
  • "compaction": {
    }
}

AskStreamRoute

Request Body schema: application/json
required
question
required
string
top_k
integer [ 0 .. 100 ]
Default: 0
object or null
ChunkType (string) or null

Responses

Request samples

Content type
application/json
{
  • "question": "string",
  • "top_k": 0,
  • "options": {
    },
  • "chunk_type": "raw"
}

Response samples

Content type
application/json
null

ChatRoute

Request Body schema: application/json
required
question
required
string
history
any
Default: []
integer or null <= 100
object or null
ChunkType (string) or null
summary
string
Default: ""
string or null

Responses

Request samples

Content type
application/json
{
  • "question": "string",
  • "history": [ ],
  • "top_k": 0,
  • "options": {
    },
  • "chunk_type": "raw",
  • "summary": "",
  • "session_id": "string"
}

Response samples

Content type
application/json
{
  • "answer": "string",
  • "sources": [
    ],
  • "cited_sources": [
    ],
  • "compaction": {
    }
}

ChatStreamRoute

Request Body schema: application/json
required
question
required
string
history
any
Default: []
integer or null <= 100
object or null
ChunkType (string) or null
summary
string
Default: ""
string or null

Responses

Request samples

Content type
application/json
{
  • "question": "string",
  • "history": [ ],
  • "top_k": 0,
  • "options": {
    },
  • "chunk_type": "raw",
  • "summary": "",
  • "session_id": "string"
}

Response samples

Content type
application/json
null

ListModelsEndpoint

Responses

Response samples

Content type
application/json
null

ChatCompletionsEndpoint

Request Body schema: application/json
required
model
required
string non-empty
required
Array of objects (CompletionsMessage) non-empty
Array of CompletionsTool (objects) or null
ToolChoiceMode (string) or CompletionsNamedToolChoice (object) or null
number or null <= 2
number or null <= 1
integer or null >= 1
integer or null >= 1
integer or null
number or null [ -2 .. 2 ]
number or null [ -2 .. 2 ]
integer or null >= 1
string or Array of strings or null
stream
boolean
Default: false
StreamOptions (object) or null

Responses

Request samples

Content type
application/json
{
  • "model": "string",
  • "messages": [
    ],
  • "tools": [
    ],
  • "tool_choice": "auto",
  • "temperature": 0,
  • "top_p": 0,
  • "top_k": 0,
  • "max_tokens": 0,
  • "seed": 0,
  • "frequency_penalty": 0,
  • "presence_penalty": 0,
  • "n": 0,
  • "stop": "string",
  • "stream": false,
  • "stream_options": {
    }
}

Response samples

Content type
application/json
null

SyncRoute

Request Body schema: application/json
required
One of
boolean or null
force_rebuild
boolean
Default: false
retry_skipped
boolean
Default: false

Responses

Request samples

Content type
application/json
Example
{
  • "enable_ocr": true,
  • "force_rebuild": false,
  • "retry_skipped": false
}

Response samples

Content type
application/json
null

AddRoute

Request Body schema: application/json
required
paths
required
Array of strings
force
boolean
Default: false
boolean or null
number or null

Responses

Request samples

Content type
application/json
{
  • "paths": [
    ],
  • "force": false,
  • "enable_ocr": true,
  • "ocr_timeout": 0
}

Response samples

Content type
application/json
null

AddUploadRoute

Request Body schema: multipart/form-data
required
files
Array of strings <binary> [ items <binary > ]

Responses

Response samples

Content type
application/json
null

ModelsListRoute

Responses

Response samples

Content type
application/json
{
  • "chat": {
    },
  • "embedding": {
    },
  • "vision": {
    },
  • "reranker": {
    }
}

ModelsExternalRoute

Responses

Response samples

Content type
application/json
{
  • "models": [
    ],
  • "error": "string"
}

ModelsSetChatRoute

Request Body schema: application/json
required
model
required
string

Responses

Request samples

Content type
application/json
{
  • "model": "string"
}

Response samples

Content type
application/json
{
  • "model": "string",
  • "reindex_required": false
}

ModelsSetEmbeddingRoute

Request Body schema: application/json
required
model
required
string

Responses

Request samples

Content type
application/json
{
  • "model": "string"
}

Response samples

Content type
application/json
{
  • "model": "string",
  • "reindex_required": false
}

ModelsSetVisionRoute

Request Body schema: application/json
required
model
required
string

Responses

Request samples

Content type
application/json
{
  • "model": "string"
}

Response samples

Content type
application/json
{
  • "model": "string",
  • "reindex_required": false
}

ModelsSetRerankerRoute

Request Body schema: application/json
required
model
required
string

Responses

Request samples

Content type
application/json
{
  • "model": "string"
}

Response samples

Content type
application/json
{
  • "model": "string",
  • "reindex_required": false
}

ModelsCatalogRoute

query Parameters
string or null
search
string
Default: ""
string or null
boolean or null
boolean or null
sort
string
Default: "featured"
limit
integer [ 1 .. 1000 ]
Default: 20
offset
integer >= 0
Default: 0

Responses

Response samples

Content type
application/json
{
  • "total": 0,
  • "limit": 0,
  • "offset": 0,
  • "models": [
    ],
  • "has_more": false
}

ModelsInstalledRoute

Responses

Response samples

Content type
application/json
{
  • "models": [
    ]
}

ModelsPullRoute

Request Body schema: application/json
required
model
required
string
source
string
Default: "native"
allow_unsupported
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "model": "string",
  • "source": "native",
  • "allow_unsupported": false
}

Response samples

Content type
application/json
null

ModelsShowRoute

Request Body schema: application/json
required
model
required
string

Responses

Request samples

Content type
application/json
{
  • "model": "string"
}

Response samples

Content type
application/json
{ }

ModelsDeleteRoute

path Parameters
model
required
string
query Parameters
source
string
Default: "native"

Responses

Response samples

Content type
application/json
{
  • "deleted": true,
  • "model": "string",
  • "freed_gb": 0
}

DocumentsListRoute

query Parameters
search
string
Default: ""
limit
integer [ 1 .. 1000 ]
Default: 50
offset
integer >= 0
Default: 0

Responses

Response samples

Content type
application/json
{
  • "documents": [
    ],
  • "total": 0,
  • "limit": 0,
  • "offset": 0,
  • "has_more": false
}

DocumentsRemoveRoute

Request Body schema: application/json
required
names
required
Array of strings <= 100 items
delete_files
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "names": [
    ],
  • "delete_files": false
}

Response samples

Content type
application/json
{
  • "removed": [
    ],
  • "not_found": [
    ]
}

MemoriesListRoute

Responses

Response samples

Content type
application/json
{
  • "memories": [
    ]
}

MemoriesRememberRoute

Request Body schema: application/json
required
text
required
string
kind
string (MemoryKind)
Enum: "preference" "fact"

Whether a memory is an always-injected preference or a similarity-recalled fact.

shared
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "text": "string",
  • "kind": "preference",
  • "shared": false
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "kind": "preference"
}

MemoriesRemoveRoute

path Parameters
memory_id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "deleted": true
}

MemoriesUpdateRoute

path Parameters
memory_id
required
string
Request Body schema: application/json
required
shared
required
boolean

Responses

Request samples

Content type
application/json
{
  • "shared": true
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "updated": true
}

SessionsListRoute

Responses

Response samples

Content type
application/json
{
  • "sessions": [
    ]
}

SessionCreateRoute

Request Body schema: application/json
required
model_ref
required
string
scope
required
string

Responses

Request samples

Content type
application/json
{
  • "model_ref": "string",
  • "scope": "string"
}

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "messages": [
    ],
  • "summary": ""
}

SessionGetRoute

path Parameters
session_id
required
string

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "messages": [
    ],
  • "summary": ""
}

SessionDeleteRoute

path Parameters
session_id
required
string

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "deleted": true
}

SessionRenameRoute

path Parameters
session_id
required
string
Request Body schema: application/json
required
title
required
string

Responses

Request samples

Content type
application/json
{
  • "title": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "title": "string"
}

SessionAddMessageRoute

path Parameters
session_id
required
string
Request Body schema: application/json
required
role
required
string (MessageRole)
Enum: "user" "assistant"

Author of a chat message.

content
required
string
sources
Array of strings
Default: []

Responses

Request samples

Content type
application/json
{
  • "role": "user",
  • "content": "string",
  • "sources": [ ]
}

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "messages": [
    ],
  • "summary": ""
}

SessionClaimRoute

path Parameters
session_id
required
string

Responses

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "messages": [
    ],
  • "summary": ""
}

SessionSetSummaryRoute

path Parameters
session_id
required
string
Request Body schema: application/json
required
summary
required
string

Responses

Request samples

Content type
application/json
{
  • "summary": "string"
}

Response samples

Content type
application/json
{
  • "meta": {
    },
  • "messages": [
    ],
  • "summary": ""
}

ExportRoute

query Parameters
format
string
Default: ""
source
string
Default: ""

Responses

Response samples

Content type
application/json
"string"

ImportRoute

query Parameters
format
string
Default: ""

Responses

Response samples

Content type
application/json
null

PlacementRoute

Responses

Response samples

Content type
application/json
{
  • "gpus": [
    ],
  • "roles": [
    ],
  • "unplaceable": [
    ],
  • "manual": true,
  • "spec_json": "string",
  • "skipped_not_installed": [ ],
  • "co_tenants": [ ],
  • "notice": "string"
}

PlacementSetRoute

Request Body schema: application/json
required
object or null

Responses

Request samples

Content type
application/json
{
  • "spec": {
    }
}

Response samples

Content type
application/json
{
  • "gpus": [
    ],
  • "roles": [
    ],
  • "unplaceable": [
    ],
  • "manual": true,
  • "spec_json": "string",
  • "skipped_not_installed": [ ],
  • "co_tenants": [ ],
  • "notice": "string"
}

PlacementClearRoute

Responses

Response samples

Content type
application/json
{
  • "gpus": [
    ],
  • "roles": [
    ],
  • "unplaceable": [
    ],
  • "manual": true,
  • "spec_json": "string",
  • "skipped_not_installed": [ ],
  • "co_tenants": [ ],
  • "notice": "string"
}

PlacementPreviewRoute

Request Body schema: application/json
required
object or null

Responses

Request samples

Content type
application/json
{
  • "spec": {
    }
}

Response samples

Content type
application/json
{
  • "gpus": [
    ],
  • "roles": [
    ],
  • "unplaceable": [
    ],
  • "manual": true,
  • "spec_json": "string",
  • "skipped_not_installed": [ ],
  • "co_tenants": [ ],
  • "notice": "string"
}

GpusRoute

Responses

Response samples

Content type
application/json
{
  • "gpus": [
    ],
  • "notice": "string"
}

GpuStatsStreamRoute

Responses

Response samples

Content type
application/json
null

CrawlRoute

Request Body schema: application/json
required
url
required
string
integer or null
integer or null
CrawlRenderMode (string) or null
include_subdomains
boolean
Default: false

Responses

Request samples

Content type
application/json
{
  • "url": "string",
  • "depth": 0,
  • "max_pages": 0,
  • "render_mode": "http",
  • "include_subdomains": false
}

Response samples

Content type
application/json
null

SetupCrawlerRoute

Responses

Response samples

Content type
application/json
null

SetupCrawlerStatusRoute

Responses

Response samples

Content type
application/json
{
  • "property1": null,
  • "property2": null
}

WikiListRoute

Responses

Response samples

Content type
application/json
[
  • {
    }
]

WikiReadRoute

path Parameters
slug
required
string

Responses

Response samples

Content type
application/json
Example
{
  • "slug": "string",
  • "title": "",
  • "content": ""
}

WikiDraftsRoute

Responses

Response samples

Content type
application/json
[
  • {
    }
]

WikiDraftDiffRoute

path Parameters
slug
required
string

Responses

Response samples

Content type
application/json
{
  • "slug": "string",
  • "diff": "string"
}

WikiDraftAcceptRoute

path Parameters
slug
required
string

Responses

Response samples

Content type
application/json
{
  • "slug": "string",
  • "requested_slug": "string",
  • "moved_to": "string",
  • "reindexed_chunks": 0
}

WikiDraftRejectRoute

path Parameters
slug
required
string

Responses

Response samples

Content type
application/json
{
  • "slug": "string"
}

WikiCitationsReverseRoute

query Parameters
source
string
Default: ""

Responses

Response samples

Content type
application/json
[
  • {
    }
]

WikiLintRoute

Responses

Response samples

Content type
application/json
{
  • "issues": [ ],
  • "errors": 0,
  • "warnings": 0
}

WikiPruneRoute

Responses

Response samples

Content type
application/json
{
  • "records": [ ],
  • "archived": 0,
  • "flagged": 0
}

WikiBuildRoute

Responses

Response samples

Content type
application/json
{
  • "paths": [ ],
  • "entities": 0,
  • "count": 0
}

WikiUpdateRoute

Responses

Response samples

Content type
application/json
{
  • "paths": [ ],
  • "entities": 0,
  • "count": 0
}

WikiStatusRoute

Responses

Response samples

Content type
application/json
{
  • "wiki_enabled": true,
  • "summaries": 0,
  • "drafts": 0,
  • "pages": 0,
  • "lint_errors": 0,
  • "lint_warnings": 0
}

WikiSynthesizeRoute

Responses

Response samples

Content type
application/json
{
  • "paths": [ ],
  • "count": 0
}