Add FTS lookup for seeded Civitai Krea2 prompt examples.

Index Assistent/civitai-examples.jsonl without embeddings and expose AssistentLookupExamples plus ask:examples hop for remix references.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 08:15:40 +03:00
co-authored by Cursor
parent 7aadb40a11
commit e2d48b4bf9
8 changed files with 454 additions and 3 deletions
+4
View File
@@ -414,6 +414,7 @@ public sealed partial class AssistentMemory : IDisposable
if (docs.Count == 0)
{
TryIndexTags();
TryIndexExamples();
return;
}
@@ -434,6 +435,7 @@ public sealed partial class AssistentMemory : IDisposable
if (!missing)
{
TryIndexTags();
TryIndexExamples();
return;
}
}
@@ -447,6 +449,7 @@ public sealed partial class AssistentMemory : IDisposable
{
Logs.Debug($"AssistentMemory seed defer (embed unavailable): {ex.Message}");
TryIndexTags();
TryIndexExamples();
return;
}
@@ -505,6 +508,7 @@ public sealed partial class AssistentMemory : IDisposable
}
}
TryIndexTags();
TryIndexExamples();
}
public void Upsert(string kind, string key, string text, string source, JToken meta, float[] embedding, string persona = null)