Skip to content

naderitegames/AI-API-Project-in-Unity

Repository files navigation

دفترچه خاطرات دیجیتال

‏ درآینده فایل README کامل تر و بهتری نوشته میشه

نکات ابتدایی :

  • اول نیاز به ساخت و دریافت یک API KEY از Google AI Studio داری
  • بعد اون رو در اینسپکتور Gemeni AI Manager قرار بدید. و اجرا کنید
  • مدل های embedding رو برای چت انتخاب نکنید. (میتونید کد رو تغییر بدید با دانش خودتون و ...)

(اون API Key که از قبل اونجا هست - که اگر باشه - قابل استفاده نیست و باید کلید خودتون رو قرار بدید)

ویژگی ها :

  • ذخیره خاطرات در دستگاه
  • امکان چت راجب یک یا چند خاطره انتخابی
  • حذف, اضافه] و ویرایش خاطرات
  • جست و جوی کلمه کلیدی آفلاین + جست و جوی مفهومی (semantic search) آنلاین (ولی مدل امبدینگ گول قشنگ فارسیو پشتیبانی نمیکنه)
  • ذخیره embedding خاطرات برای افزایش سرعت سرچ و کاهش ارسال درخواست به AI
  • حذف embedding یک خاطره در صورت تغییر خاطره
  • امکان Pin/Unpic کردن خاطرات
  • نمایش متون فارسی

Digital Diary Project

Note: A more comprehensive and polished README will be provided in the future.

Setup Instructions: Obtain an API Key from Google AI Studio. Add the API Key to the Gemini AI Manager inspector in Unity and run the project. Avoid selecting embedding models for chat functionality. (You can modify the code based on your knowledge if needed.) Important: Any pre-existing API Key in the project (if present) is not usable. You must use your own API Key.

Features:

  • Store diary entries locally on the device.
  • Chat about one or multiple selected diary entries using AI.
  • Add, edit, or delete diary entries.
  • Offline keyword search and online semantic search (note: Google’s embedding model has limited support for Persian).
  • Save embeddings of diary entries to improve search speed and reduce AI API requests.
  • Automatically remove embeddings when a diary entry is modified.
  • Pin or unpin diary entries for quick access.
  • Support for displaying Persian text.

About

An simple application that uses AI API inside itself (Diaries application).

Resources

Stars

Watchers

Forks