mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-14 23:21:20 +00:00
store full info
This commit is contained in:
parent
a87030b88b
commit
0f3d5c4fc6
1 changed files with 12 additions and 1 deletions
|
|
@ -126,7 +126,18 @@ app.post(
|
|||
|
||||
await batchCreateChunksAndEmbeddings({
|
||||
store,
|
||||
body,
|
||||
body: {
|
||||
url: body.url,
|
||||
user: body.user,
|
||||
type: "image",
|
||||
description:
|
||||
imageDescriptions.length > 1
|
||||
? `A group of ${imageDescriptions.length} images on ${body.url}`
|
||||
: imageDescriptions[0],
|
||||
space: body.space,
|
||||
pageContent: imageDescriptions.join("\n"),
|
||||
title: "Image content from the web",
|
||||
},
|
||||
chunks: [
|
||||
imageDescriptions,
|
||||
...(body.text ? chunkText(body.text, 1536) : []),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue