VectorsDB support for console#2923
Conversation
- Route delete/update/index operations through database-type-aware SDK (settings, indexes, activity, usage pages were hardcoding documentsDB) - Add updateEntity, deleteIndex methods to sdk.ts helper - Fix pagination and document loading to use correct SDK for vectorsdb - Fix realtime events to listen for both documentsdb and vectorsdb - Fix embeddings: pass number[] directly instead of JSON.stringify roundtrip - Auto-fold embeddings array in editor on document load
- Add !isVectorsDb guard to useMockSuggestions derivation - Use single sliceString for bracket matching instead of per-char rope traversal
Console (appwrite/console)Project ID: Tip Custom domains work with both CNAME for subdomains and NS records for apex domains |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR adds full VectorsDB support to the console: SDK integration for collections, documents, and HNSW indexes; a dimension field in the collection-create flow; an embedding editor with auto-fold; and VectorsDB assets/empty states. All five issues flagged in prior rounds (hardcoded embedding URL, missing dimension Confidence Score: 5/5Safe to merge — all prior blocking issues resolved; remaining findings are P2 style and UX polish. All five previously flagged P1 issues have been fixed. The three remaining findings are P2: a misleading type cast that has no runtime effect, command-centre labels that use the wrong terminology for VectorsDB/DocumentsDB but remain functional, and a
Important Files Changed
Reviews (7): Last reviewed commit: "fix: use collection-specific CreateIndex..." | Re-trigger Greptile |
…preview, metadata defaults
…embeddings, Object/HNSW send empty orders
…ordb # Conflicts: # bun.lock # package.json # src/routes/(console)/project-[region]-[project]/databases/database-[database]/(entity)/views/field/activity.svelte # src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/activity/+page.ts
…ordb # Conflicts: # src/routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/usage/[[period]]/+page.ts

Summary
Test plan