added favicon
|
|
@ -17,6 +17,10 @@ export async function POST(request: Request, store: CloudflareVectorizeStore, _:
|
|||
if (!body.pageContent || !body.url) {
|
||||
return new Response(JSON.stringify({ message: 'Invalid Page Content' }), { status: 400 });
|
||||
}
|
||||
|
||||
// TODO: FIX THIS,BUT TEMPERORILY TRIM page content to 1000 words
|
||||
body.pageContent = body.pageContent.split(' ').slice(0, 1000).join(' ');
|
||||
|
||||
const newPageContent = `Title: ${body.title}\nDescription: ${body.description}\nURL: ${body.url}\nContent: ${body.pageContent}`;
|
||||
|
||||
const ourID = `${body.url}-${body.user}`;
|
||||
|
|
@ -31,7 +35,7 @@ export async function POST(request: Request, store: CloudflareVectorizeStore, _:
|
|||
{
|
||||
pageContent: newPageContent,
|
||||
metadata: {
|
||||
title: body.title ?? '',
|
||||
title: body.title?.slice(0, 50) ?? '',
|
||||
description: body.description ?? '',
|
||||
space: body.space ?? '',
|
||||
url: body.url,
|
||||
|
|
|
|||
|
|
@ -122,6 +122,8 @@ export async function POST(request: Request, _: CloudflareVectorizeStore, embedd
|
|||
`You are an agent that summarizes a page based on the query. don't say 'based on the context'. I expect you to be like a 'Second Brain'. you will be provided with the context (old saved posts) and questions. Answer accordingly. Answer in markdown format` +
|
||||
`Context:\n${preparedContext ?? 'No context'}\n\nQuestion: ${query}\nAnswer:`;
|
||||
|
||||
console.log('Prompt', prompt);
|
||||
|
||||
// const output = await chat.sendMessageStream(prompt);
|
||||
|
||||
// const response = new Response(
|
||||
|
|
|
|||
BIN
apps/web/public/android-chrome-192x192.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
apps/web/public/android-chrome-512x512.png
Normal file
|
After Width: | Height: | Size: 204 KiB |
BIN
apps/web/public/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
apps/web/public/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 689 B |
BIN
apps/web/public/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
apps/web/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
19
apps/web/public/site.webmanifest
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"name": "",
|
||||
"short_name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
|
|
@ -272,7 +272,7 @@ export async function addMemory(
|
|||
},
|
||||
body: JSON.stringify({
|
||||
pageContent: content.content,
|
||||
title: content.title,
|
||||
title: content.title?.slice(0, 50),
|
||||
url: content.url,
|
||||
user: user.email,
|
||||
}),
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 25 KiB |
|
|
@ -6,8 +6,8 @@ const roboto = Roboto({ weight: ["300", "400", "500"], subsets: ["latin"] });
|
|||
const inter = Inter({ weight: ["300", "400", "500"], subsets: ["latin"] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Create Next App",
|
||||
description: "Generated by create next app",
|
||||
title: "Supermemory - Your second brain",
|
||||
description: "Save your memories forever, build your own second brain.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
|
|
|
|||