Spaces:
Sleeping
Sleeping
Update rag_routerv2.py
Browse files- rag_routerv2.py +3 -1
rag_routerv2.py
CHANGED
@@ -67,6 +67,8 @@ async def create_embedding_table(
|
|
67 |
|
68 |
if table_id is None:
|
69 |
table_id = str(uuid.uuid4())
|
|
|
|
|
70 |
#table_name = table_id #f"{user_id}__table__{table_id}"
|
71 |
|
72 |
# Create a directory for the uploaded files
|
@@ -125,7 +127,7 @@ async def create_embedding_table(
|
|
125 |
table_id=table_id,
|
126 |
message="Table created and documents indexed successfully",
|
127 |
status="success",
|
128 |
-
table_name=
|
129 |
)
|
130 |
|
131 |
|
|
|
67 |
|
68 |
if table_id is None:
|
69 |
table_id = str(uuid.uuid4())
|
70 |
+
table_name = f"knowledge-base-{str(uuid.uuid4())[:4]}" if not table_name else table_name
|
71 |
+
|
72 |
#table_name = table_id #f"{user_id}__table__{table_id}"
|
73 |
|
74 |
# Create a directory for the uploaded files
|
|
|
127 |
table_id=table_id,
|
128 |
message="Table created and documents indexed successfully",
|
129 |
status="success",
|
130 |
+
table_name=table_name
|
131 |
)
|
132 |
|
133 |
|