(fix:chunks) preserve paths

This commit is contained in:
ManishMadan2882
2025-07-26 00:27:39 +05:30
parent e90e80c289
commit 2508d0fbb3

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,
)