cocoindex icon indicating copy to clipboard operation
cocoindex copied to clipboard

[FEATURE] Make cocoindex APIs friendly for Python REPL

Open badmonster0 opened this issue 8 months ago • 1 comments

Problems:

  • Flow definition happens in a structured function. Users cannot do it step-by-step if they want.
  • Setup is mainly done by CLI now, and API not smooth. Also setup and update have to happen in separate processes for now.

TODOs:

  • Allow users to create flow builder and build flows by manually creating a FlowBuilder without defining a function using the decorator.
  • Flow objects should display something meaningful (e.g. schema / scope for a DataSlice) when users show it.
  • Make setup API well supported.
  • Properly handle setup-related states, so that after setup done users can do update in the same process.

After solving the problems, both Python REPL and Colab can be more interactive in performing mini steps and showing intermediate results.

badmonster0 avatar Apr 22 '25 05:04 badmonster0