Repository navigation
feat(server): POST /extract, POST /import, GET /export endpoints - #610
Merged
Merged
Conversation
…#605 #606) Move Extractor from uteke-cli to uteke-core for server reuse. Add three new HTTP endpoints to uteke-serve: - POST /extract: LLM fact extraction + auto-store (1MB limit) - POST /import: JSONL import with re-embedding (5MB limit) - GET /export: JSONL export (optional ?namespace= filter) Extraction reads [extraction] config from uteke.toml. API key never accepted from request body (config/env only). Write token required for all three endpoints. Closes #604, #605, #606
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-cli · BYOK · MIT |
…onfig.model is String CI caught E0308: if/else arms had incompatible types. Explicit annotate as String and use .to_owned() for the &str branch.
E0433 in /export handler — Header::from_bytes used without import.
- handlers.rs: if let Err(_) → .is_err() (2x redundant pattern matching) - handlers.rs: &ctx → ctx (needless borrow) - types.rs: #[allow(dead_code)] on ImportRequest.tags (not yet wired) - extract.rs: #[allow(unused_imports)] on re-exports module
This was referenced Jul 7, 2026
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…xport feat(server): POST /extract, POST /import, GET /export endpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move
Extractorfromuteke-clitouteke-core(shared module), then add three new HTTP endpoints touteke-serve:/extract/import/export?namespace=filter)Changes
extraction.rsmodule (Extractor moved from uteke-cli)Details
[extraction]config fromuteke.tomlCloses #604, #605, #606