add llm AI EXTRACT extension feature - #818
Conversation
|
Feel free to keep the discussion going. We are sure we can reach the most ideal state. The prior implementation draws inspiration from DuckDB. LadybugDB/extensions#60 |
|
Looks good. Merging. Please update the PR description. Suggested description in the comment below. |
Refactor: add
|
…aitOrError Groundwork for the LLM AI EXTRACT extension: the extraction pipeline may need to schedule and await tasks outside the processor execution context. The new overload operates on a main::ClientContext directly, so callers who hold only a client context can wait on scheduled tasks without fabricating an ExecutionContext. The AI EXTRACT feature itself lands in a follow-up commit. Signed-off-by: ericyuanhui <285521263@qq.com>
done. Please help to review the extension PR :LadybugDB/extensions#60 thx . |
Refactor: add
ClientContextoverload ofTaskScheduler::scheduleTaskAndWaitOrErrorSummary
Adds a
scheduleTaskAndWaitOrErroroverload that takes amain::ClientContext*directly, so task scheduling no longer requires a
processor::ExecutionContext.The existing
ExecutionContextoverload now simply delegates to the new one.Motivation / Context
Groundwork for the LLM "AI EXTRACT" extension: the extraction pipeline may need
to schedule and await tasks extending beyond the regular execution context. Callers
who only hold a
ClientContext(noExecutionContextin scope) can now use thescheduler without building a fake context. This is the groundwork refactor; the
AI EXTRACT extension itself will land in a follow-up commit.