Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Stećak Oracle: Exploring Medieval Stone Monuments with Sanity and Gemini

说明与用途

Stećak Oracle 结合 Sanity、Next.js 和 Google Gemini,提供关于中世纪墓碑的基于证据的答案,确保 AI 区分已记录事实与解释。

问题

Provide accurate, evidence‑based answers about medieval tombstone monuments (stećci) without relying solely on AI hallucinations.

结果

The app delivers concise, evidence‑based answers about stećci, clearly marking interpretations and citing sources, while keeping the data layer separate from the AI layer.

工作流

  • Define content types in Sanity (Stećak, Motif, Source) with relationships.
  • Populate Sanity with records, motifs, and sources (e.g., UNESCO data).
  • Build Next.js frontend with pages for home, stećak details, motifs, sources, and an Oracle UI.
  • Create a Next.js API route that receives user questions.
  • In the API route, fetch the full knowledge base from Sanity (steći, motifs, sources).
  • Serialize the data and embed it in a Gemini prompt with explicit instructions to avoid hallucinations and distinguish facts from interpretations.
  • Send the prompt to Gemini via @google/genai using a server‑side API key.
  • Return Gemini’s answer to the frontend for display.
  • Iterate: add more records or refine prompts as needed.

证据

Store structured historical information in Sanity, then let an AI model answer questions using that information as its knowledge base.

来源

The application uses an environment variable for the API key: GEMINI_API_KEY=...

来源

I also explicitly tell the model: - Do not invent historical facts. - Distinguish documented facts from interpretation.

来源

  • 记录日期: 2026-09-22T01:30:16.656Z