尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Frontend with vector-based similarity search for finding courses and events.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A web application that uses vector-based similarity search to find courses and events that best match a user's provided description. This application uses Next.js, MongoDB Atlas, LangChain, and OpenAI embeddings.
This is a Next.js project bootstrapped with create-next-app.
Copy the env.sample file to .env.local and fill in your MongoDB Atlas connection string and OpenAI API key:
cp env.sample .env.local
Then edit .env.local with your actual credentials:
MONGODB_URI=mongodb+srv://<username>:<password>@<cluster>.mongodb.net/<database>?retryWrites=true&w=majority
OPENAI_API_KEY=your_openai_api_key_here
EVENT_VECTOR_SEARCH_INDEX_NAME=event_vector_index
COURSE_VECTOR_SEARCH_INDEX_NAME=course_vector_index
Create a MongoDB Atlas cluster if you don't have one already
Create a database with the following collections:
events and event_embeddings for event datacourses for course data (includes embedded vectors)Set up vector search indexes with the following configurations:
For Events:
event_vector_index (or whatever you specified in EVENT_VECTOR_SEARCH_INDEX_NAME)event_embeddingsembeddingFor Courses:
course_vector_index (or whatever you specified in COURSE_VECTOR_SEARCH_INDEX_NAME)coursesembeddingInstall the dependencies:
npm install
To populate the database with sample content and generate embeddings:
For Events:
npx ts-node src/scripts/seed-events.ts
For Courses:
npx ts-node src/scripts/seed-courses.ts
To test without touching production, run a local MongoDB with Atlas Vector Search in Docker (docker-compose-local.yml, uses the mongodb/mongodb-atlas-local image).
First, point .env.local at the local database (not your Atlas/production URI):
MONGODB_URI=mongodb://localhost:27018/event-matcher?directConnection=true
Then:
npm run db:up # start the local database (host port 27018, override with MONGODB_LOCAL_PORT)
npm run db:init # create collections and vector search indexes (first time only)
npm run seed # seed local data
npm run db:down # stop (data persists); `npm run db:reset` also deletes the data
The seed scripts delete existing data, so they refuse to run unless MONGODB_URI points to a local host. Set ALLOW_REMOTE_DB=true to override this deliberately.
npm run dev
Open http://localhost:3000 with your browser to see the application.