pvanand commited on
Commit
a5ed4c9
·
verified ·
1 Parent(s): 7012e9e

Update rag_routerv2.py

Browse files
Files changed (1) hide show
  1. rag_routerv2.py +3 -2
rag_routerv2.py CHANGED
@@ -123,11 +123,12 @@ async def create_embedding_table(
123
 
124
  return CreateTableResponse(
125
  table_id=table_id,
126
- message=f"Table created and documents indexed successfully",
127
  status="success",
128
- table_name=f"knowledge-base-{str(uuid.uuid4()[:4])}" if table_name is None else table_name
129
  )
130
 
 
131
  except Exception as e:
132
  raise HTTPException(status_code=500, detail=f"Table creation failed: {str(e)}")
133
 
 
123
 
124
  return CreateTableResponse(
125
  table_id=table_id,
126
+ message="Table created and documents indexed successfully",
127
  status="success",
128
+ table_name=f"knowledge-base-{str(uuid.uuid4())[:4]}" if table_name is None else table_name
129
  )
130
 
131
+
132
  except Exception as e:
133
  raise HTTPException(status_code=500, detail=f"Table creation failed: {str(e)}")
134