An example code uses a vector store for the embedded model and GPT-4o OpenAI API
I use the Indonesian EyD version 5 document for the knowledge base. EyD (Ejaan yang Disempurnakan) mean Improved Spelling for the Indonesian Language
Node version 20
pnpm install
node --env-file=.env index.cjs
Vector Store objects give the File Search tool the ability to search your files. Adding a file to a vector_store automatically parses, chunks, embeds, and stores the file in a vector database that's capable of both keyword and semantic search.
https://platform.openai.com/docs/assistants/tools/file-search/vector-stores
https://badanbahasa.kemdikbud.go.id/resource/doc/files/SK_EYD_Edisi_V_16082022.pdf