Pages do not duplicate the same copy just for SEO—RAG pulls facts from one knowledge base. Update prices or terms and both the AI site and chat answer using the fresh data without manual rewrites.
// rag-content.config.ts
sources = [
"content/uslugi/**.mdx",
"content/faq/**.md",
"storage/docs/**.pdf",
]
rag.index({
project: "my-project",
filters: ["ru", "prod"],
})
The AI chat works with databases and dashboards. When a user logs in, the assistant shows order status, requests, plans, and personal terms directly in the conversation—no manual dashboard search.
// fastapi + rag-chat
@app.post("/api/chat")
async def chat(q: ChatQuery, user: User) {
ctx = rag.build_context(user.id)
return chat_model.reply(q.text, ctx)
}
A stack built for top speed and SEO: Astro delivers pure HTML, FastAPI handles APIs and RAG, and caching plus separate bundles keep the site lightweight. Ready for traditional SEO and future AI search engines.
// astro.config.mjs
export default defineConfig({
output: "static",
integrations: [sitemap()],
})