Top Picks on Amazon

Top Amazon Picks for You

Curated by Luis β€’ Powered by Amazon

Product 1

Echo Dot (5th Gen)

Smart speaker with Alexa β€” perfect for home automation and voice control.

View on Amazon
Product 2

Fire TV Stick 4K

Stream your favorite shows in stunning 4K β€” fast, responsive, and easy to use.

View on Amazon

Affiliate Disclosure: As an Amazon Associate, I earn from qualifying purchases.

πŸ”₯ Trending Best Sellers on Amazon

Vitamin D3 Supplements

Vitamin D3 5000IU Supplements

Addresses widespread deficiency β€” top health pick this month.

View on Amazon
Silicone Food Bags

Reusable Silicone Food Storage Bags

Eco-friendly and cost-saving β€” perfect alternative to plastic.

View on Amazon
USB-C Multi-Port Charger

USB-C Multi-Port Charger

Charge all your devices at once β€” EU standardization ready.

View on Amazon
Air Fryer Oven Combo

Air Fryer Oven Combo

Healthy cooking with 75% less oil β€” crispy results, guilt-free.

View on Amazon
Top Amazon Picks

πŸ”₯ Amazon Best Sellers

Curated by Luis β€’ Powered by Amazon

Echo Dot

Echo Dot (5th Gen)

Smart speaker with Alexa β€” perfect for home automation and voice control.

View on Amazon
Fire TV Stick

Fire TV Stick 4K

Stream your favorite shows in stunning 4K β€” fast, responsive, and easy to use.

View on Amazon
Vitamin D3

Vitamin D3 5000IU Supplements

Addresses widespread deficiency β€” top health pick this month.

View on Amazon
Silicone Food Bags

Reusable Silicone Food Storage Bags

Eco-friendly and cost-saving β€” perfect alternative to plastic.

View on Amazon
USB-C Charger

USB-C Multi-Port Charger

Charge all your devices at once β€” EU standardization ready.

View on Amazon
Air Fryer

Air Fryer Oven Combo

Healthy cooking with 75% less oil β€” crispy results, guilt-free.

View on Amazon

Affiliate Disclosure: As an Amazon Associate, I earn from qualifying purchases.

# Node 18+ npx create-next-app ai-site cd ai-site "use client"; import { useState } from "react"; export default function Home() { const [messages, setMessages] = useState<{role:"user"|"assistant";content:string}[]>([]); const [input, setInput] = useState(""); async function send() { const userMsg = { role: "user" as const, content: input }; setMessages(prev => [...prev, userMsg]); setInput(""); const res = await fetch("/api/chat", { method: "POST", headers: {"Content-Type":"application/json"}, body: JSON.stringify({ messages: [...messages, userMsg] }) }); const reader = res.body!.getReader(); let assistantText = ""; for (;;) { const { value, done } = await reader.read(); if (done) break; assistantText += new TextDecoder().decode(value); // Optional: stream partial text to UI setMessages(prev => { const base = prev.filter(m => m.role !== "assistant"); return [...base, { role: "assistant", content: assistantText }]; }); } } return (

My AI Website

{messages.map((m, i) => (
{m.role === "user" ? "You" : "AI"}: {m.content}
))}
setInput(e.target.value)} placeholder="Ask something…" style={{flex:1, padding:12, border:"1px solid #ddd", borderRadius:8}} />
); } import { NextRequest } from "next/server"; export const runtime = "edge"; // or 'nodejs' export async function POST(req: NextRequest) { const { messages } = await req.json(); const apiKey = process.env.OPENAI_API_KEY; // set in your hosting dashboard, never in the client if (!apiKey) return new Response("Missing OPENAI_API_KEY", { status: 500 }); const r = await fetch("https://api.openai.com/v1/chat/completions", { method: "POST", headers: { "Authorization": `Bearer ${apiKey}`, "Content-Type": "application/json" }, body: JSON.stringify({ model: "gpt-4o-mini", messages, stream: true, }) }); if (!r.ok || !r.body) { const text = await r.text().catch(()=> "Upstream error"); return new Response(text, { status: 502 }); } // Pipe the OpenAI stream straight through return new Response(r.body, { headers: { "Content-Type": "text/plain; charset=utf-8", "Cache-Control": "no-cache", } }); } npm run dev // 1) embed(query) -> vector // 2) db.similaritySearch(vector, k=5) -> docs // 3) build a system prompt: "Use ONLY the provided docs..."