(fix:chunks) preserve paths

This commit is contained in:
ManishMadan2882 committed 2025-07-26 00:27:39 +05:30
1 parent e90e80c289
commit 2508d0fbb3
1 file changed
+7 -3
+7 -3
View File
@@ -156,14 +156,18 @@ const DocumentChunks: React.FC<DocumentChunksProps> = ({
const handleAddChunk = (title: string, text: string) => {
try {
const metadata = {
source: path || documentName,
source_id: documentId,
title: title,
};
userService
.addChunk(
{
id: documentId,
text: text,
metadata: {
title: title,
},
metadata: metadata,
},
token,
)