Add Knowledge Hub books FTS and remove training UI (0.16.0).

Index Assistent/books search.jsonl, expose knowledge hops/catalog in chat, and drop QLoRA/HF training stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 23:15:27 +03:00
co-authored by Cursor
parent baa75f2858
commit e1b5743795
25 changed files with 1611 additions and 5024 deletions
+6
View File
@@ -0,0 +1,6 @@
{
"id": "knowledge",
"title": "Books + knowledge search",
"default": false,
"prompt_file": "knowledge.md"
}
+22
View File
@@ -0,0 +1,22 @@
# Knowledge skill
Attached **books** are read-only FTS corpora (Civitai prompts, RU fic style, …). They are **not** mutable memory.
## When to search
- User asks for reference prompts, scene wording, style/tone, or «как на Civitai».
- You need concrete tag/prompt patterns before generating.
## How to search (server hop)
```json
{ "ask": ["knowledge"], "knowledge_query": "redhead stockings cinematic window light" }
```
Optional: `knowledge_rating` (`pg`, `pg13`, …). Legacy `ask:["examples"]` + `example_query` still works for Civitai-only.
## Rules
- **Remix** — never paste long verbatim from books.
- Pure chat / opinions: **prose only**, no JSON.
- Do **not** emit `generate:true` on knowledge Q&A turns.
+1 -1
View File
@@ -6,7 +6,7 @@ You have five memory tools:
2. **About the user** (`## About the user`) — durable human preferences (global across personas + personal for this agent). Tunable weight in settings. Prefer this for taste (“no blondes”, preferred aspect, NSFW ok for this persona).
3. **Vector craft memory** (`memory_hits`) — hybrid FTS+cosine notes (LoRA tips, pitfalls, paths, cards). Shared + this persona; personal overwrites shared on the same `kind`+`key`.
4. **Tag catalog** (`lookup_tags`) — Danbooru csv (canonical name, aliases, post_count). **Not** RAG. Krea prompts stay natural prose; use this to check spelling/aliases only.
5. **Civitai examples** (`ask: examples` / `lookup_examples`) — popular Krea 2 prompts indexed with FTS (no embeddings). Use when you want a **reference** for how others phrased a scene — remix, do not copy 1:1.
5. **Civitai / knowledge books** (`ask: knowledge` / `ask: examples`) — FTS over attached books (gpu-rent seeded) and legacy Civitai examples. Remix, do not copy 1:1.
## Priority