Add search and RAG workspace flows
This commit is contained in:
@@ -12,7 +12,8 @@ const TASK_TYPE_LABELS: Record<TaskType, string> = {
|
||||
sync_filings: 'Filing sync',
|
||||
refresh_prices: 'Price refresh',
|
||||
analyze_filing: 'Filing analysis',
|
||||
portfolio_insights: 'Portfolio insight'
|
||||
portfolio_insights: 'Portfolio insight',
|
||||
index_search: 'Search indexing'
|
||||
};
|
||||
|
||||
const STAGE_LABELS: Record<TaskStage, string> = {
|
||||
@@ -38,6 +39,11 @@ const STAGE_LABELS: Record<TaskStage, string> = {
|
||||
'analyze.extract': 'Extract context',
|
||||
'analyze.generate_report': 'Generate report',
|
||||
'analyze.persist_report': 'Persist report',
|
||||
'search.collect_sources': 'Collect sources',
|
||||
'search.fetch_documents': 'Fetch documents',
|
||||
'search.chunk': 'Chunk content',
|
||||
'search.embed': 'Generate embeddings',
|
||||
'search.persist': 'Persist search index',
|
||||
'insights.load_holdings': 'Load holdings',
|
||||
'insights.generate': 'Generate insight',
|
||||
'insights.persist': 'Persist insight'
|
||||
@@ -75,6 +81,16 @@ const TASK_STAGE_ORDER: Record<TaskType, TaskStage[]> = {
|
||||
'analyze.persist_report',
|
||||
'completed'
|
||||
],
|
||||
index_search: [
|
||||
'queued',
|
||||
'running',
|
||||
'search.collect_sources',
|
||||
'search.fetch_documents',
|
||||
'search.chunk',
|
||||
'search.embed',
|
||||
'search.persist',
|
||||
'completed'
|
||||
],
|
||||
portfolio_insights: [
|
||||
'queued',
|
||||
'running',
|
||||
|
||||
Reference in New Issue
Block a user